bd201d29ff
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@77 127b21dd-08f5-0310-b4b7-95ae10353056
24 lines
798 B
Plaintext
24 lines
798 B
Plaintext
{
|
|
"DEFEND_SELF" = {
|
|
"ENERGY_LOW" = ("setStateTo: FLEE");
|
|
ENTER = (performAttack);
|
|
EXIT = ();
|
|
"TARGET_DESTROYED" = ("setStateTo: TRAVEL_TO_PLANET");
|
|
UPDATE = ();
|
|
};
|
|
"EXIT_SYSTEM" = {ENTER = (performLanding); EXIT = (); UPDATE = (); };
|
|
FLEE = {
|
|
ENTER = (performFlee);
|
|
EXIT = ();
|
|
"REACHED_SAFETY" = (performIdle, "setStateTo: TRAVEL_TO_PLANET");
|
|
UPDATE = ();
|
|
};
|
|
GLOBAL = {ENTER = ("setStateTo: TRAVEL_TO_PLANET"); EXIT = (); UPDATE = (); };
|
|
"TRAVEL_TO_PLANET" = {
|
|
ATTACK = (setTargetToPrimaryAggressor, "setStateTo: DEFEND_SELF");
|
|
ENTER = (performFlyToPlanet);
|
|
EXIT = ();
|
|
"REACHED_SURFACE" = ("setStateTo: EXIT_SYSTEM");
|
|
UPDATE = ();
|
|
};
|
|
} |