Implemented a simple collision hash table.
This commit is contained in:
parent
dbc2a10933
commit
743f906bc7
7 changed files with 174 additions and 1 deletions
5
map.hpp
5
map.hpp
|
@ -15,10 +15,13 @@
|
|||
#define PLAYER_TILE "☺"
|
||||
#define ENEMY_TILE "Ω"
|
||||
|
||||
|
||||
struct Point {
|
||||
size_t x = 0;
|
||||
size_t y = 0;
|
||||
|
||||
bool operator==(const Point& other) const {
|
||||
return other.x == x && other.y == y;
|
||||
}
|
||||
};
|
||||
|
||||
struct Room {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue