diff options
author | ThomasAvans <tv.intanker@student.avans.nl> | 2024-04-22 10:40:59 +0200 |
---|---|---|
committer | ThomasAvans <tv.intanker@student.avans.nl> | 2024-04-22 10:40:59 +0200 |
commit | 1640a4fb4bb0c831dd3f2a28bf99a49f3f41e829 (patch) | |
tree | 5889fbd9a70ed926a64a6c3cd0183ae25fc18be5 /shared/IBehaviouralState.hpp | |
parent | 4354adcf0ae2eabbf419a76fc97746cb71962826 (diff) |
Processed review
Diffstat (limited to 'shared/IBehaviouralState.hpp')
-rw-r--r-- | shared/IBehaviouralState.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/shared/IBehaviouralState.hpp b/shared/IBehaviouralState.hpp new file mode 100644 index 0000000..c41fef3 --- /dev/null +++ b/shared/IBehaviouralState.hpp @@ -0,0 +1,25 @@ +#ifndef _FSM_IBEHAVIOURALSTATE_HPP_ +#define _FSM_IBEHAVIOURALSTATE_HPP_ + +/// <summary> +/// Sub class used to define methods implemented by behavioural specific states. +/// </summary> +class IBehaviouralState { +public: + /// <summary> + /// Enters the current state. Used for setup. + /// </summary> + virtual void enter() = 0; + + /// <summary> + /// Updates the current state, used for physics, etc. + /// </summary> + virtual void act() = 0; + + /// <summary> + /// Exits the state, used for cleanup. + /// </summary> + virtual void exit() = 0; +}; + +#endif // _FSM_IBEHAVIOURALSTATE_HPP_
\ No newline at end of file |