diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-05-25 17:47:34 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-05-25 17:47:34 +0200 |
commit | 078038da762d7f64ae07cf416a2a08dddfc0c651 (patch) | |
tree | 474a8f9a82a7848f851f5f14ba4f65de1022c87e /shared/IBehaviouralState.hpp | |
parent | 0350186840aa15ff2c5547d48fe831d0729b3ef0 (diff) | |
parent | 23017163757ea5e674bec4fb5529c24fe54002d7 (diff) |
Merge branch 'master' into prot/vault-puzzle (merge #5)
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 |