Inheritance diagram for Classes.CMedic:
Protected Member Functions | |
void | setup () |
'setup' method of jade agents. | |
void | SetUpPriorities () |
Definition of priorities for each kind of task. | |
boolean | checkMedicAction (String _sContent) |
Decides if agent accepts the CFM request. | |
void | PerformTargetReached (CTask _CurrentTask) |
Action to do when this agent reaches the target of current task. | |
final int | CreateMedicPack () |
Creates medic packs if possible. | |
Static Protected Attributes | |
static int | m_iPacksDelivered = 0 |
inner variable used to name packs |
|
'setup' method of jade agents. This method perform actions in common to CMedic agents (and derived classes) and calls parent's setup.
Reimplemented from Classes.CTroop. |
|
Definition of priorities for each kind of task.
This method can be implemented in CTroop's derived classes to define the task's priorities in agreement to the role of the new class. Priorities must be defined in the array It's very useful to overload this method.
Reimplemented from Classes.CTroop. |
|
Decides if agent accepts the CFM request.
This method is a decision function invoked when a CALL FOR MEDIC request has arrived. Parameter It's very useful to overload this method.
|
|
Action to do when this agent reaches the target of current task.
This method is called when this agent goes to state TARGET_REACHED. If current task is It's very useful to overload this method.
Reimplemented from Classes.CTroop. |
|
Creates medic packs if possible. This method allows to create medic packs if there is enough power in the agent's power bar.
|
|
inner variable used to name packs
|