Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
minotaur.hpp
Go to the documentation of this file.
2#include <chrono>
3
4using namespace std::chrono_literals;
5
6class Minotaur : public Enemy {
7public:
8 inline static const float SIGHT_LIMIT_GRID_CELLS = 10.0f;
9
10 Minotaur(glm::vec3 corner, glm::vec3 facing);
11
12 bool doBehavior(ServerGameState& state) override;
13
14 void doCollision(Object* other, ServerGameState& state) override;
15
16 bool doDeath(ServerGameState& state) override;
17
18private:
19 std::chrono::system_clock::time_point last_charge_time;
20 int chargeDelay;
21 int chargeDuration;
22 bool stopped;
23};
Definition: enemy.hpp:8
Definition: minotaur.hpp:6
static const float SIGHT_LIMIT_GRID_CELLS
Definition: minotaur.hpp:8
bool doBehavior(ServerGameState &state) override
Definition: minotaur.cpp:24
bool doDeath(ServerGameState &state) override
Definition: minotaur.cpp:93
void doCollision(Object *other, ServerGameState &state) override
Code to run when this object collides with another.
Definition: minotaur.cpp:80
Definition: object.hpp:95
The ServerGameState class contains all abstract game state data and logic for a single game state ins...
Definition: servergamestate.hpp:43