forked from University/epr24pr42-ojanssen2
feat: ported old code and started working on ghost impl
This commit is contained in:
parent
90230422db
commit
14c43b4e13
19 changed files with 795 additions and 395 deletions
20
src/Entities/Entity.h
Normal file
20
src/Entities/Entity.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue