4ca8806312
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1724 127b21dd-08f5-0310-b4b7-95ae10353056
31 lines
1000 B
Plaintext
31 lines
1000 B
Plaintext
{
|
|
GLOBAL =
|
|
{
|
|
ENTER = ("setStateTo: ATTACK_SHIP");
|
|
};
|
|
"ATTACK_SHIP" =
|
|
{
|
|
ENTER = (performAttack);
|
|
"THARGOID_DESTROYED" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
"TARGET_DESTROYED" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
"TARGET_LOST" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
"NOTHING_FOUND" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
UPDATE = ("scanForNearestShipHavingRole: thargoid-mothership", "pauseAI: 5.0");
|
|
};
|
|
"CHECK_FOR_CONTROL" =
|
|
{
|
|
ENTER = ("setSpeedTo: 0.0", performTumble);
|
|
"THARGOID_DESTROYED" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
"TARGET_FOUND" = ("setStateTo: LOOK_FOR_TARGETS");
|
|
"NOTHING_FOUND" = (becomeUncontrolledThargon);
|
|
UPDATE = ("scanForNearestShipHavingRole: thargoid-mothership", "pauseAI: 1.0");
|
|
};
|
|
"LOOK_FOR_TARGETS" =
|
|
{
|
|
ENTER = (scanForNonThargoid, "pauseAI: 1.0");
|
|
"THARGOID_DESTROYED" = ("setStateTo: CHECK_FOR_CONTROL");
|
|
"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP");
|
|
UPDATE = (scanForNonThargoid, "pauseAI: 10.0");
|
|
};
|
|
}
|