Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
python.hpp
Go to the documentation of this file.
2#include <chrono>
3
4using namespace std::chrono_literals;
5
6class Python : public Enemy {
7public:
8 inline static const float SIGHT_LIMIT_GRID_CELLS = 6.0f;
9
10 Python(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_move_time;
20 int moveDelay;
21 int moveDuration;
22 bool diagonal;
23 bool stopped;
24};
Definition: enemy.hpp:8
Definition: object.hpp:95
Definition: python.hpp:6
bool doBehavior(ServerGameState &state) override
Definition: python.cpp:26
static const float SIGHT_LIMIT_GRID_CELLS
Definition: python.hpp:8
bool doDeath(ServerGameState &state) override
Definition: python.cpp:114
void doCollision(Object *other, ServerGameState &state) override
Code to run when this object collides with another.
Definition: python.cpp:101
The ServerGameState class contains all abstract game state data and logic for a single game state ins...
Definition: servergamestate.hpp:43