X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fai%2FFleeState.hpp;fp=src%2Fai%2FFleeState.hpp;h=8664e581bf1f59087e003c151934bc03920067e0;hb=4c34ddd7eeaa3cb71fc90bf76a0cd395682add66;hp=0000000000000000000000000000000000000000;hpb=f0a20986c573c4df1eb1212333489252c4b30efa;p=blank.git diff --git a/src/ai/FleeState.hpp b/src/ai/FleeState.hpp new file mode 100644 index 0000000..8664e58 --- /dev/null +++ b/src/ai/FleeState.hpp @@ -0,0 +1,25 @@ +#ifndef BLANK_AI_FLEESTATE_HPP_ +#define BLANK_AI_FLEESTATE_HPP_ + +#include "AIState.hpp" + + +namespace blank { + +/// stand around and do nothing +/// occasionally look in a different direction +/// start roaming at random +/// start chasing a player if one comes near + +class FleeState +: public AIState { + + void Enter(AIController &) const override; + void Update(AIController &, Entity &, float dt) const override; + void Exit(AIController &) const override; + +}; + +} + +#endif