feat: ported old code and started working on ghost impl

This commit is contained in:
moonleay 2025-01-18 01:21:58 +01:00
parent 90230422db
commit 14c43b4e13
Signed by: moonleay
GPG key ID: 82667543CCD715FB
19 changed files with 795 additions and 395 deletions

20
src/Entities/Entity.h Normal file
View file

@ -0,0 +1,20 @@
#include "../Util/PositionVector.h"
#ifndef ENTITY_H
#define ENTITY_H
namespace game
{
class Maze;
class Entity {
private:
PositionVector pos;
char display_character;
public:
Entity(PositionVector starting_position, char display_character);
void move(const Maze& maze, const PositionVector& player_position);
bool is_at_position(const PositionVector& position) const;
};
} // game
#endif //ENTITY_H