ProtoBot
Loading...
Searching...
No Matches
SquadState Class Referenceabstract

Base class for squad states. Each state has its own Enter(), Update(), and Exit() implementation.
These states and their implementations can be found in SquadStateTypes.h. More...

#include <SquadState.h>

Inheritance diagram for SquadState:
AttackingState DefendingState IdleState ReinforcingState

Public Member Functions

virtual void Enter (Squad *squad)=0
virtual void Update (Squad *squad)=0
virtual void Exit (Squad *squad)=0

Detailed Description

Base class for squad states. Each state has its own Enter(), Update(), and Exit() implementation.
These states and their implementations can be found in SquadStateTypes.h.



States: IdleState, AttackingState, DefendingState, ReinforcingState

Definition at line 12 of file SquadState.h.

Constructor & Destructor Documentation

◆ ~SquadState()

virtual SquadState::~SquadState ( )
inlinevirtual

Definition at line 17 of file SquadState.h.

17{};

Member Function Documentation

◆ Enter()

virtual void SquadState::Enter ( Squad * squad)
pure virtual

◆ Exit()

virtual void SquadState::Exit ( Squad * squad)
pure virtual

◆ Update()

virtual void SquadState::Update ( Squad * squad)
pure virtual

The documentation for this class was generated from the following file: