|
Oolite
|
#include <ShipEntityAI.h>
Instance Methods | |
| (void) | - setAITo: |
| (void) | - setAIScript: |
| (void) | - switchAITo: |
| (void) | - scanForHostiles |
| (BOOL) | - performHyperSpaceToSpecificSystem: |
| (void) | - scanForNearestIncomingMissile |
| (void) | - enterTargetWormhole |
| (void) | - enterPlayerWormhole |
| (void) | - wormholeEscorts |
| (void) | - wormholeEntireGroup |
| (BOOL) | - suggestEscortTo: |
| (void) | - groupAttackTarget |
| (void) | - performAttack |
| (void) | - performCollect |
| (void) | - performEscort |
| (void) | - performFaceDestination |
| (void) | - performFlee |
| (void) | - performFlyToRangeFromDestination |
| (void) | - performHold |
| (void) | - performIdle |
| (void) | - performIntercept |
| (void) | - performLandOnPlanet |
| (void) | - performMining |
| (void) | - performScriptedAI |
| (void) | - performScriptedAttackAI |
| (void) | - performStop |
| (void) | - performTumble |
| (void) | - broadcastDistressMessage |
| (void) | - broadcastDistressMessageWithDumping: |
| (void) | - requestDockingCoordinates |
| (void) | - recallDockingInstructions |
| (void) | - performBuoyTumble [implementation] |
Definition at line 32 of file ShipEntityAI.h.
| - (void) broadcastDistressMessage |
Extends class ShipEntity.
Definition at line 677 of file ShipEntityAI.m.
References broadcastDistressMessage, and ShipEntity::broadcastDistressMessageWithDumping:.
Referenced by broadcastDistressMessage.
| - (void) broadcastDistressMessageWithDumping: | (BOOL) | dumpCargo |
Extends class ShipEntity.
Definition at line 683 of file ShipEntityAI.m.
References ShipEntity::acceptDistressMessageFrom:, ShipEntity::checkScannerIgnoringUnpowered, DESTROY, ShipEntity::doScriptEvent:withArgument:andArgument:, ShipEntity::ejectCargo, Entity::isPlayer, Entity::isStation, nil, ShipEntity::performFlee, randf(), and ShipEntity::sendExpandedMessage:toShip:.
| - (void) enterPlayerWormhole |
Extends class ShipEntity.
Definition at line 564 of file ShipEntityAI.m.
References enterPlayerWormhole, and ShipEntity::enterWormhole:replacing:.
Referenced by enterPlayerWormhole.
| - (void) enterTargetWormhole |
Extends class ShipEntity.
Definition at line 569 of file ShipEntityAI.m.
References enterTargetWormhole, ShipEntity::enterWormhole:replacing:, HPdistance2(), nil, Entity::position, ShipEntity::primaryTarget, and UNIVERSE.
Referenced by enterTargetWormhole.
| - (void) groupAttackTarget |
Extends class ShipEntity.
Definition at line 315 of file ShipEntityAI.m.
References count, ShipEntity::doScriptEvent:withArgument:andArgument:, groupAttackTarget, nil, ShipEntity::primaryTarget, ShipEntity::reactToAIMessage:context:, and ShipEntity::setFoundTarget:.
Referenced by groupAttackTarget.
| - (void) performAttack |
Extends class ShipEntity.
Definition at line 350 of file ShipEntityAI.m.
References performAttack, and randf().
Referenced by performAttack.
|
implementation |
Extends class ShipEntity.
Definition at line 458 of file ShipEntityAI.m.
References performBuoyTumble.
Referenced by performBuoyTumble.
| - (void) performCollect |
Extends class ShipEntity.
Definition at line 359 of file ShipEntityAI.m.
References performCollect.
Referenced by performCollect.
| - (void) performEscort |
Extends class ShipEntity.
Definition at line 365 of file ShipEntityAI.m.
References performEscort.
Referenced by performEscort.
| - (void) performFaceDestination |
Extends class ShipEntity.
Definition at line 373 of file ShipEntityAI.m.
References performFaceDestination.
Referenced by performFaceDestination.
| - (void) performFlee |
Extends class ShipEntity.
Definition at line 379 of file ShipEntityAI.m.
References COMBAT_AI_ISNT_AWFUL, performFlee, randf(), and ShipEntity::setEvasiveJink:.
Referenced by performFlee.
| - (void) performFlyToRangeFromDestination |
Extends class ShipEntity.
Definition at line 394 of file ShipEntityAI.m.
References performFlyToRangeFromDestination.
Referenced by performFlyToRangeFromDestination.
| - (void) performHold |
Extends class ShipEntity.
Definition at line 400 of file ShipEntityAI.m.
References performHold.
Referenced by performHold.
| - (BOOL) performHyperSpaceToSpecificSystem: | (OOSystemID) | systemID |
Extends class ShipEntity.
Definition at line 481 of file ShipEntityAI.m.
References ShipEntity::performHyperSpaceExitReplace:toSystem:.
| - (void) performIdle |
Extends class ShipEntity.
Definition at line 407 of file ShipEntityAI.m.
References performIdle.
Referenced by performIdle.
| - (void) performIntercept |
Extends class ShipEntity.
Definition at line 413 of file ShipEntityAI.m.
References performIntercept.
Referenced by performIntercept.
| - (void) performLandOnPlanet |
Extends class ShipEntity.
Definition at line 419 of file ShipEntityAI.m.
References ShipEntity::findNearestPlanet, and performLandOnPlanet.
Referenced by performLandOnPlanet.
| - (void) performMining |
Extends class ShipEntity.
Definition at line 434 of file ShipEntityAI.m.
References ShipEntity::noteLostTargetAndGoIdle, performMining, and ShipEntity::primaryTarget.
Referenced by performMining.
| - (void) performScriptedAI |
Extends class ShipEntity.
Definition at line 446 of file ShipEntityAI.m.
References performScriptedAI.
Referenced by performScriptedAI.
| - (void) performScriptedAttackAI |
Extends class ShipEntity.
Definition at line 452 of file ShipEntityAI.m.
References performScriptedAttackAI.
Referenced by performScriptedAttackAI.
| - (void) performStop |
Extends class ShipEntity.
Definition at line 466 of file ShipEntityAI.m.
References performStop.
Referenced by performStop.
| - (void) performTumble |
Extends class ShipEntity.
Definition at line 473 of file ShipEntityAI.m.
References performTumble, and randf().
Referenced by performTumble.
| - (void) recallDockingInstructions |
Extends class ShipEntity.
Definition at line 536 of file ShipEntityAI.m.
References ShipEntity::addTarget:, nil, ShipEntity::primaryTarget, recallDockingInstructions, ShipEntity::removeTarget:, and ShipEntity::setTargetStation:.
Referenced by recallDockingInstructions.
| - (void) requestDockingCoordinates |
Extends class ShipEntity.
Definition at line 486 of file ShipEntityAI.m.
References DESTROY, StationEntity::dockingInstructionsForShip:, HPdistance2(), nil, ShipEntity::recallDockingInstructions, requestDockingCoordinates, SCANNER_MAX_RANGE2, ShipEntity::sendExpandedMessage:toShip:, and ShipEntity::targetStation.
Referenced by requestDockingCoordinates.
| - (void) scanForHostiles |
Extends class ShipEntity.
Definition at line 293 of file ShipEntityAI.m.
References ShipEntity::checkFoundTarget, ShipEntity::checkScanner, DESTROY, scanForHostiles, and ShipEntity::setFoundTarget:.
Referenced by scanForHostiles.
| - (void) scanForNearestIncomingMissile |
Extends class ShipEntity.
Definition at line 555 of file ShipEntityAI.m.
References HasScanClassPredicate(), IsHostileAgainstTargetPredicate(), scanForNearestIncomingMissile, and ShipEntity::scanForNearestShipWithPredicate:parameter:.
Referenced by scanForNearestIncomingMissile.
| - (void) setAIScript: | (NSString*) | aiString |
Extends class ShipEntity.
Definition at line 268 of file ShipEntityAI.m.
References OOScript::jsAIScriptFromFileNamed:properties:, nil, and OOLog.
| - (void) setAITo: | (NSString*) | aiString |
Extends class ShipEntity.
Definition at line 245 of file ShipEntityAI.m.
References ShipEntity::getAI, nil, ResourceManager::pathForFileNamed:inFolder:, PLAYER, ShipEntity::setAIScript:, ShipEntity::setAITo:, and AI::setStateMachine:withJSScript:.
| - (BOOL) suggestEscortTo: | (ShipEntity*) | mother |
Extends class ShipEntity.
Definition at line 641 of file ShipEntityAI.m.
References ShipEntity::doScriptEvent:withArgument:, ShipEntity::escortGroup, ShipEntity::markAsOffender:withReason:, OOLog, ranrot_rand, ShipEntity::setGroup:, and ShipEntity::setOwner:.
| - (void) switchAITo: | (NSString*) | aiString |
Extends class ShipEntity.
Definition at line 287 of file ShipEntityAI.m.
References AI::clearStack, ShipEntity::getAI, and ShipEntity::setAITo:.
| - (void) wormholeEntireGroup |
Extends class ShipEntity.
Definition at line 635 of file ShipEntityAI.m.
References wormholeEntireGroup, ShipEntity::wormholeEscorts, and ShipEntity::wormholeGroup.
Referenced by wormholeEntireGroup.
| - (void) wormholeEscorts |
Extends class ShipEntity.
Definition at line 609 of file ShipEntityAI.m.
References ShipEntity::addTarget:, ShipEntity::doScriptEvent:withArgument:, nil, ShipEntity::primaryTarget, ShipEntity::reactToAIMessage:context:, and wormholeEscorts.
Referenced by wormholeEscorts.