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