11 RespawnAction(std::chrono::system_clock::time_point startTime, std::chrono::milliseconds respawnTime, std::shared_ptr<Entity> pEntity);
Represents an action that an entity can perform.
Definition: Action.hpp:15
Action used for respawning entities.
Definition: RespawnAction.hpp:9
RespawnAction(std::chrono::system_clock::time_point startTime, std::chrono::milliseconds respawnTime, std::shared_ptr< Entity > pEntity)
Definition: RespawnAction.cpp:7
std::chrono::milliseconds actionTimeM
Definition: RespawnAction.hpp:29
ActionType actionTypeM
Definition: RespawnAction.hpp:31
CurrentAction getActionInfo()
Returns information about the current action.
Definition: RespawnAction.cpp:25
void act()
After time indicated by actionTimeM has passed, moves pEntity to its respawn location and changes hp ...
Definition: RespawnAction.cpp:9