BatterySort Class Reference

#include <BatterySort.h>

List of all members.

Public Member Functions

 BatterySort (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)
 BatterySort (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)


Detailed Description

Eurobot 2007 PlansysObservation.h Gunnar Kjemphol <gunnar@kjemphol.no>

This is a child class of Observer class

The PlansysObservation objects can call Battery memberfunction Update() when a new observation is recieved.


Constructor & Destructor Documentation

BatterySort::BatterySort ( PlansysObservation s,
int  theTeamColor 
)

Eurobot 2007 BatterySort.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

Init the battery bin in midt position of three


Member Function Documentation

int BatterySort::GetAction ( controll_struct ai_controll_struct  ) 

int BatterySort::GetPriority (  ) 

int BatterySort::StrategyInterrupted (  ) 

The strategy is interrupted by anoter strategy keep existing settings, or roll back to last setting for retransmitting the commands or waypoints

void BatterySort::Update ( Subject *  ,
int  typeOfObservation 
)


The documentation for this class was generated from the following files:
Generated on Tue Jun 19 11:15:43 2007 for mainplansys.kdevelop by  doxygen 1.4.7