feat: continued work on ghosts, started work on required recursive function

This commit is contained in:
moonleay 2025-01-18 19:10:38 +01:00
parent 14c43b4e13
commit 11ab3ee46d
Signed by: moonleay
GPG key ID: 82667543CCD715FB
12 changed files with 150 additions and 32 deletions

View file

@ -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