![]() |
Oolite 1.91.0.7665-250419-c535bfe
|
#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 763 of file ShipEntityAI.m.
References broadcastDistressMessage, and ShipEntity::broadcastDistressMessageWithDumping:.
Referenced by broadcastDistressMessage.
- (void) broadcastDistressMessageWithDumping: | (BOOL) | dumpCargo |
Extends class ShipEntity.
Definition at line 769 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 634 of file ShipEntityAI.m.
References enterPlayerWormhole, and ShipEntity::enterWormhole:replacing:.
Referenced by enterPlayerWormhole.
- (void) enterTargetWormhole |
Extends class ShipEntity.
Definition at line 639 of file ShipEntityAI.m.
References enterTargetWormhole, ShipEntity::enterWormhole:replacing:, nil, Entity::position, ShipEntity::primaryTarget, and UNIVERSE.
Referenced by enterTargetWormhole.
- (void) groupAttackTarget |
Extends class ShipEntity.
Definition at line 339 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 378 of file ShipEntityAI.m.
References performAttack, and randf().
Referenced by performAttack.
|
implementation |
Extends class ShipEntity.
Definition at line 510 of file ShipEntityAI.m.
References performBuoyTumble.
Referenced by performBuoyTumble.
- (void) performCollect |
Extends class ShipEntity.
Definition at line 389 of file ShipEntityAI.m.
References performCollect.
Referenced by performCollect.
- (void) performEscort |
Extends class ShipEntity.
Definition at line 396 of file ShipEntityAI.m.
References performEscort.
Referenced by performEscort.
- (void) performFaceDestination |
Extends class ShipEntity.
Definition at line 406 of file ShipEntityAI.m.
References performFaceDestination.
Referenced by performFaceDestination.
- (void) performFlee |
Extends class ShipEntity.
Definition at line 413 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 432 of file ShipEntityAI.m.
References performFlyToRangeFromDestination.
Referenced by performFlyToRangeFromDestination.
- (void) performHold |
Extends class ShipEntity.
Definition at line 439 of file ShipEntityAI.m.
References performHold.
Referenced by performHold.
- (BOOL) performHyperSpaceToSpecificSystem: | (OOSystemID) | systemID |
Extends class ShipEntity.
Definition at line 536 of file ShipEntityAI.m.
References ShipEntity::performHyperSpaceExitReplace:toSystem:.
- (void) performIdle |
Extends class ShipEntity.
Definition at line 447 of file ShipEntityAI.m.
References performIdle.
Referenced by performIdle.
- (void) performIntercept |
Extends class ShipEntity.
Definition at line 454 of file ShipEntityAI.m.
References performIntercept.
Referenced by performIntercept.
- (void) performLandOnPlanet |
Extends class ShipEntity.
Definition at line 461 of file ShipEntityAI.m.
References ShipEntity::findNearestPlanet, and performLandOnPlanet.
Referenced by performLandOnPlanet.
- (void) performMining |
Extends class ShipEntity.
Definition at line 480 of file ShipEntityAI.m.
References ShipEntity::noteLostTargetAndGoIdle, performMining, and ShipEntity::primaryTarget.
Referenced by performMining.
- (void) performScriptedAI |
Extends class ShipEntity.
Definition at line 496 of file ShipEntityAI.m.
References performScriptedAI.
Referenced by performScriptedAI.
- (void) performScriptedAttackAI |
Extends class ShipEntity.
Definition at line 503 of file ShipEntityAI.m.
References performScriptedAttackAI.
Referenced by performScriptedAttackAI.
- (void) performStop |
Extends class ShipEntity.
Definition at line 519 of file ShipEntityAI.m.
References performStop.
Referenced by performStop.
- (void) performTumble |
Extends class ShipEntity.
Definition at line 527 of file ShipEntityAI.m.
References performTumble, and randf().
Referenced by performTumble.
- (void) recallDockingInstructions |
Extends class ShipEntity.
Definition at line 599 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 542 of file ShipEntityAI.m.
References DESTROY, StationEntity::dockingInstructionsForShip:, nil, ShipEntity::recallDockingInstructions, requestDockingCoordinates, SCANNER_MAX_RANGE2, ShipEntity::sendExpandedMessage:toShip:, and ShipEntity::targetStation.
Referenced by requestDockingCoordinates.
- (void) scanForHostiles |
Extends class ShipEntity.
Definition at line 314 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 624 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 284 of file ShipEntityAI.m.
References OOScript::jsAIScriptFromFileNamed:properties:, nil, and OOLog.
- (void) setAITo: | (NSString *) | aiString |
Extends class ShipEntity.
Definition at line 252 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 720 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 307 of file ShipEntityAI.m.
References AI::clearStack, ShipEntity::getAI, and ShipEntity::setAITo:.
- (void) wormholeEntireGroup |
Extends class ShipEntity.
Definition at line 713 of file ShipEntityAI.m.
References wormholeEntireGroup, ShipEntity::wormholeEscorts, and ShipEntity::wormholeGroup.
Referenced by wormholeEntireGroup.
- (void) wormholeEscorts |
Extends class ShipEntity.
Definition at line 684 of file ShipEntityAI.m.
References ShipEntity::addTarget:, ShipEntity::doScriptEvent:withArgument:, nil, ShipEntity::primaryTarget, ShipEntity::reactToAIMessage:context:, and wormholeEscorts.
Referenced by wormholeEscorts.