#include <BottleBoxSort.h>
Public Member Functions | |
BottleBoxSort (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) |
BottleBoxSort (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
The PlansysObservation objects can call BottleBoxSort memberfunction Update() when a new observation is recieved.
BottleBoxSort::BottleBoxSort | ( | PlansysObservation * | s, | |
int | theTeamColor | |||
) |
Eurobot 2007 PlansysObservation.cpp Gunnar Kjemphol <gunnar@kjemphol.no>
Give the Agent a priority in the constructor [0-9] if the agentPriority is -1 the agent is inactive
Bottle and bin positions Two for each teamColor
Error team color, ask for team color
int BottleBoxSort::GetAction | ( | controll_struct * | ai_controll_struct | ) |
int BottleBoxSort::GetPriority | ( | ) |
int BottleBoxSort::StrategyInterrupted | ( | ) |
The strategy is interrupted by anoter strategy keep existing settings
void BottleBoxSort::Update | ( | Subject * | , | |
int | typeOfObservation | |||
) |