2005-04-19 19:53:18 +00:00
|
|
|
{
|
2005-06-08 10:22:59 +00:00
|
|
|
"ATTACK_SHIP" = {
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: DETONATE");
|
|
|
|
ENTER = ("setDesiredRangeTo: 25.0", performIntercept);
|
|
|
|
EXIT = ();
|
|
|
|
"TARGET_DESTROYED" = ("setStateTo: EXPLODE");
|
|
|
|
"TARGET_LOST" = ("setStateTo: EXPLODE");
|
|
|
|
"ECM" = ("setStateTo: EXPLODE");
|
|
|
|
"GONE_BEYOND_RANGE" = ("setStateTo: EXPLODE");
|
|
|
|
UPDATE = ("setDesiredRangeTo: 30000.0", checkDistanceTravelled, "setDesiredRangeTo: 25.0", "pauseAI: 5.0");
|
|
|
|
};
|
2005-04-19 19:53:18 +00:00
|
|
|
DETONATE = {
|
2005-06-08 10:22:59 +00:00
|
|
|
ENTER = ("setDesiredRangeTo: 250.0", dealEnergyDamageWithinDesiredRange, becomeExplosion);
|
|
|
|
EXIT = ();
|
|
|
|
UPDATE = ();
|
|
|
|
};
|
2005-04-19 19:53:18 +00:00
|
|
|
EXPLODE = {
|
2005-06-08 10:22:59 +00:00
|
|
|
ENTER = (becomeExplosion);
|
|
|
|
EXIT = ();
|
|
|
|
UPDATE = ();
|
|
|
|
};
|
2005-04-19 19:53:18 +00:00
|
|
|
GLOBAL = {
|
2005-06-08 10:22:59 +00:00
|
|
|
ENTER = ("setSpeedFactorTo: 1.0", "setStateTo: ATTACK_SHIP");
|
|
|
|
EXIT = ();
|
|
|
|
UPDATE = ();
|
|
|
|
};
|
2005-04-19 19:53:18 +00:00
|
|
|
}
|