#include <FirstStrategy.h>
Public Member Functions | |
FirstStrategy (PlansysObservation *, int theTeamColor) | |
void | Update (Subject *, int typeOfObservation) |
int | GetPriority () |
int | AgentGlobalPriority () |
int | GetAction (controll_struct *ai_controll_struct) |
int | SetAgentActive (int active) |
int | StrategyInterrupted () |
int | GetInterruptAction (interrupt_controll_struct *interrupt_controll) |
FirstStrategy (PlansysObservation *, int theTeamColor) | |
void | Update (Subject *, int typeOfObservation) |
int | GetPriority () |
int | AgentGlobalPriority () |
int | GetAction (controll_struct *ai_controll_struct) |
int | SetAgentActive (int active) |
int | StrategyInterrupted () |
int | GetInterruptAction (interrupt_controll_struct *interrupt_controll) |
This is a child class of Observer class
This Agent is suposed to have a high priority when the game starts, it will do some preprogramed actions
FirstStrategy::FirstStrategy | ( | PlansysObservation * | , | |
int | theTeamColor | |||
) |
Give the Agent a priority in the constructor [0-9] if the agentPriority is -1 the agent is inactive in priority
Give the Agent a priority in the constructor [0-9] if the agentPriority is -1 the agent is inactive in priority
FirstStrategy::FirstStrategy | ( | PlansysObservation * | , | |
int | theTeamColor | |||
) |
Give the Agent a priority in the constructor [0-9] if the agentPriority is -1 the agent is inactive in priority
int FirstStrategy::GetAction | ( | controll_struct * | ai_controll_struct | ) |
int FirstStrategy::GetPriority | ( | ) |
int FirstStrategy::StrategyInterrupted | ( | ) |
The strategy is interrupted by anoter strategy keep existing settings
void FirstStrategy::Update | ( | Subject * | , | |
int | typeOfObservation | |||
) |