Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
enemy.hpp
Go to the documentation of this file.
1#pragma once
2
7
8class Enemy : public Creature {
9public:
17 Enemy(glm::vec3 corner, glm::vec3 facing, ObjectType type, ModelType model, SharedStats&& stats);
18 ~Enemy();
19
23 virtual bool doBehavior(ServerGameState& state) {return false;};
24
28 virtual bool doDeath(ServerGameState& state);
29
30 virtual SharedObject toShared() override;
31private:
32
33};
Definition: creature.hpp:7
SharedStats stats
Definition: creature.hpp:9
Definition: enemy.hpp:8
virtual bool doBehavior(ServerGameState &state)
Definition: enemy.hpp:23
virtual bool doDeath(ServerGameState &state)
Definition: enemy.cpp:16
virtual SharedObject toShared() override
Generates a SharedObject representation of this object.
Definition: enemy.cpp:5
~Enemy()
Definition: enemy.cpp:14
The ServerGameState class contains all abstract game state data and logic for a single game state ins...
Definition: servergamestate.hpp:43
Representation of the Object class used by ServerGameState, containing exactly the subset of Object d...
Definition: sharedobject.hpp:302
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glad.h:1531
ModelType
Enumeration of every render model in the game.
Definition: sharedmodel.hpp:6
ObjectType
An enum for the type of an object; the fields here should match all class names in the inheritance tr...
Definition: sharedobject.hpp:19
Definition: sharedobject.hpp:54