12const std::string UNDEFINED_STATE =
"__undefined state__";
16 std::string m_state_type;
virtual void Enter(Object *p_obj)
Invoked when state first entered.
std::string getType() const
Get name of state.
virtual void Exit(Object *p_obj)
Invoked when state exited.
void setType(std::string new_type)
Set name of state.
virtual void Execute(Object *p_obj)=0
Invoked every game loop step.
An animation for a sprite.
Definition: Animation.h:15