forked from University/epr24pr42-ojanssen2
feat: continued work on ghosts, started work on required recursive function
This commit is contained in:
parent
14c43b4e13
commit
11ab3ee46d
12 changed files with 150 additions and 32 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "../Util/PositionVector.h"
|
||||
|
||||
|
||||
#ifndef ENTITY_H
|
||||
#define ENTITY_H
|
||||
|
||||
|
@ -10,10 +11,15 @@ namespace game
|
|||
private:
|
||||
PositionVector pos;
|
||||
char display_character;
|
||||
bool move_left;
|
||||
|
||||
void handle_bowie(Maze& maze);
|
||||
void handle_connelly(Maze& maze, const PositionVector& player_position);
|
||||
public:
|
||||
Entity(PositionVector starting_position, char display_character);
|
||||
void move(const Maze& maze, const PositionVector& player_position);
|
||||
void tick(Maze& maze, const PositionVector& player_position);
|
||||
bool is_at_position(const PositionVector& position) const;
|
||||
char get_display_character();
|
||||
};
|
||||
} // game
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue