1264b83cf0
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@289 127b21dd-08f5-0310-b4b7-95ae10353056
43 lines
2.1 KiB
Plaintext
43 lines
2.1 KiB
Plaintext
{
|
|
"ATTACK_SHIP" = {
|
|
"ENERGY_LOW" = ("setSpeedFactorTo: 1.0", "pauseAI: 15.0", "setStateTo: EXIT_SYSTEM");
|
|
ENTER = (performAttack);
|
|
EXIT = ();
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setSpeedFactorTo: 1.0", "pauseAI: 15.0", "setStateTo: EXIT_SYSTEM");
|
|
"TARGET_DESTROYED" = ("setStateTo: HEAD_AWAY_FROM_PLANET");
|
|
"TARGET_LOST" = ("setStateTo: HEAD_AWAY_FROM_PLANET");
|
|
UPDATE = ();
|
|
};
|
|
"EXIT_SYSTEM" = {
|
|
ENTER = ();
|
|
EXIT = ();
|
|
UPDATE = (performHyperSpaceExit);
|
|
"WITCHSPACE OKAY" = (wormholeEscorts);
|
|
"WITCHSPACE BLOCKED" = (setTargetToFoundTarget, setDestinationWithinTarget, "setDesiredRangeTo: 10000.0", performFlyToRangeFromDestination);
|
|
"WITCHSPACE UNAVAILABLE" = ("setAITo: route1traderAI.plist");
|
|
};
|
|
FLEE = {
|
|
ATTACKED = (fightOrFleeHostiles);
|
|
FIGHTING = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
FLEEING = (setTargetToPrimaryAggressor, "setStateTo: FLEE");
|
|
"TARGET_LOST" = (performIdle, "setStateTo: GLOBAL");
|
|
"TARGET_DESTROYED" = (performIdle, "setStateTo: GLOBAL");
|
|
ENTER = ("setDesiredRangeTo: 25600", performFlee);
|
|
EXIT = ();
|
|
"INCOMING_MISSILE" = (setTargetToPrimaryAggressor, broadcastDistressMessage, fightOrFleeMissile);
|
|
"REACHED_SAFETY" = (performIdle, "setStateTo: GLOBAL");
|
|
UPDATE = ();
|
|
};
|
|
"HEAD_AWAY_FROM_PLANET" = {
|
|
ENTER = (getWitchspaceEntryCoordinates, setDestinationFromCoordinates, "setDesiredRangeTo: 100.0", "setSpeedFactorTo: 0.75", performFlyToRangeFromDestination);
|
|
"DESIRED_RANGE_ACHIEVED" = ("setSpeedFactorTo: 1.0", "pauseAI: 15.0", "setStateTo: EXIT_SYSTEM");
|
|
ATTACKED = (fightOrFleeHostiles);
|
|
FIGHTING = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
|
|
FLEEING = (setTargetToPrimaryAggressor, "setStateTo: FLEE");
|
|
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
|
|
"EXITED WITCHSPACE" = ("switchAITo: enteringTraderAI.plist");
|
|
EXIT = ();
|
|
UPDATE = ();
|
|
};
|
|
GLOBAL = {ENTER = ("setStateTo: HEAD_AWAY_FROM_PLANET"); EXIT = (); UPDATE = (); };
|
|
} |