SharedObject toShared() override
Generates a SharedObject representation of this object.
Definition: item.cpp:79
SharedItemInfo iteminfo
Definition: item.hpp:22
virtual void useItem(Object *other, ServerGameState &state, int itemSelected)
Definition: item.cpp:13
void doCollision(Object *other, ServerGameState &state) override
Code to run when this object collides with another.
Definition: item.cpp:45
virtual void dropItem(Object *other, ServerGameState &state, int itemSelected, float dropDistance)
Definition: item.cpp:24
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
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:139