14 Mirror(glm::vec3 corner, glm::vec3 dimensions);
44 std::chrono::time_point<std::chrono::system_clock> used_time;
bool timeOut()
Determines whether the mirror has been used for the mirror holding duration and updated the remaining...
Definition: mirror.cpp:43
void useItem(Object *other, ServerGameState &state, int itemSelected) override
Using the mirror causes it to be held for a few seconds.
Definition: mirror.cpp:10
void dropItem(Object *other, ServerGameState &state, int itemSelected, float dropDistance) override
Definition: mirror.cpp:36
void revertEffect(ServerGameState &state)
Stop holding the mirror.
Definition: mirror.cpp:64
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