Created a combat system to start with and also added a 'HEARING' mechanic where enemies can hear you from a certain distance before moving to you.
This commit is contained in:
parent
753bc70b77
commit
9102bdc8ad
9 changed files with 70 additions and 24 deletions
1
map.hpp
1
map.hpp
|
@ -57,6 +57,7 @@ public:
|
|||
int limit() { return $limit; }
|
||||
size_t width() { return $walls[0].size(); }
|
||||
size_t height() { return $walls.size(); }
|
||||
int distance(Point to) { return $paths[to.y][to.x]; }
|
||||
Room &room(size_t at) {
|
||||
return $rooms[at];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue