|
Oolite
|
Definition at line 68 of file ShipEntityAI.m.
| - (void) addFoundTargetAsDefenseTarget |
Extends class ShipEntity.
Definition at line 1016 of file ShipEntityAI.m.
References ShipEntity::addDefenseTarget:, addFoundTargetAsDefenseTarget, ShipEntity::foundTarget, and nil.
Referenced by addFoundTargetAsDefenseTarget.
| - (void) addFuel: | (NSString*) | fuel_number |
Extends class ShipEntity.
Definition at line 2237 of file ShipEntityAI.m.
References ShipEntity::fuel, and ShipEntity::setFuel:.
| - (void) addPrimaryAggressorAsDefenseTarget |
Extends class ShipEntity.
Definition at line 871 of file ShipEntityAI.m.
References ShipEntity::addDefenseTarget:, addPrimaryAggressorAsDefenseTarget, and ShipEntity::primaryAggressor.
Referenced by addPrimaryAggressorAsDefenseTarget.
| - (void) ai_debugMessage: | (NSString*) | message |
Extends class ShipEntity.
Definition at line 2312 of file ShipEntityAI.m.
References ShipEntity::name, OOLog, and Entity::universalID.
| - (void) ai_throwSparks |
Extends class ShipEntity.
Definition at line 2302 of file ShipEntityAI.m.
References ai_throwSparks, and Entity::setThrowSparks:.
Referenced by ai_throwSparks.
| - (void) becomeUncontrolledThargon |
Extends class ShipEntity.
Definition at line 1512 of file ShipEntityAI.m.
References becomeUncontrolledThargon, DESTROY, ShipEntity::removeDefenseTarget:, ShipEntity::removeTarget:, ShipEntity::setAITo:, ShipEntity::setGroup:, ShipEntity::setSpeed:, and UNIVERSE.
Referenced by becomeUncontrolledThargon.
| - (void) checkAegis |
Extends class ShipEntity.
Definition at line 1272 of file ShipEntityAI.m.
References AEGIS_CLOSE_TO_ANY_PLANET, AEGIS_CLOSE_TO_MAIN_PLANET, AEGIS_IN_DOCKING_RANGE, AEGIS_NONE, checkAegis, ShipEntity::findNearestStellarBody, NSLog, and STELLAR_TYPE_MOON.
Referenced by checkAegis.
| - (void) checkCourseToDestination |
Extends class ShipEntity.
Definition at line 1256 of file ShipEntityAI.m.
References AEGIS_NONE, checkCourseToDestination, HPdistance(), and nil.
Referenced by checkCourseToDestination.
| - (void) checkDistanceTravelled |
Extends class ShipEntity.
Definition at line 1536 of file ShipEntityAI.m.
References checkDistanceTravelled.
Referenced by checkDistanceTravelled.
| - (void) checkEnergy |
Extends class ShipEntity.
Definition at line 1308 of file ShipEntityAI.m.
References checkEnergy.
Referenced by checkEnergy.
| - (void) checkForFullHold |
Extends class ShipEntity.
Definition at line 1026 of file ShipEntityAI.m.
References checkForFullHold, and count.
Referenced by checkForFullHold.
| - (void) checkForMotherStation |
Extends class ShipEntity.
Definition at line 1788 of file ShipEntityAI.m.
References checkForMotherStation, ShipEntity::group, HPdistance2(), Entity::isStation, OOShipGroup::leader, and Entity::position.
Referenced by checkForMotherStation.
| - (void) checkForNormalSpace |
Extends class ShipEntity.
Definition at line 2173 of file ShipEntityAI.m.
References checkForNormalSpace, and UNIVERSE.
Referenced by checkForNormalSpace.
| - (void) checkGroupOddsVersusTarget |
Extends class ShipEntity.
Definition at line 1607 of file ShipEntityAI.m.
References checkGroupOddsVersusTarget, OOShipGroup::count, ShipEntity::group, ShipEntity::primaryTarget, and ranrot_rand.
Referenced by checkGroupOddsVersusTarget.
| - (void) checkHeatInsulation |
Extends class ShipEntity.
Definition at line 1325 of file ShipEntityAI.m.
References checkHeatInsulation, and ShipEntity::maxFlightSpeed.
Referenced by checkHeatInsulation.
| - (void) checkOwnLegalStatus |
Extends class ShipEntity.
Definition at line 1207 of file ShipEntityAI.m.
References checkOwnLegalStatus, and ShipEntity::legalStatus.
Referenced by checkOwnLegalStatus.
| - (void) checkTargetLegalStatus |
Extends class ShipEntity.
Definition at line 1183 of file ShipEntityAI.m.
References checkTargetLegalStatus, ShipEntity::legalStatus, and ShipEntity::primaryTarget.
Referenced by checkTargetLegalStatus.
| - (void) commsMessage: | (NSString*) | valueString |
Extends class ShipEntity.
Definition at line 1439 of file ShipEntityAI.m.
References ShipEntity::commsMessage:withUnpilotedOverride:.
| - (void) commsMessageByUnpiloted: | (NSString*) | valueString |
Extends class ShipEntity.
Definition at line 1444 of file ShipEntityAI.m.
References ShipEntity::commsMessage:withUnpilotedOverride:.
| - (void) debugDumpPendingMessages |
Extends class ShipEntity.
Definition at line 790 of file ShipEntityAI.m.
References debugDumpPendingMessages.
Referenced by debugDumpPendingMessages.
|
implementation |
Extends class ShipEntity.
Definition at line 1418 of file ShipEntityAI.m.
References disengageAutopilot, and OOLogERR.
Referenced by disengageAutopilot.
| - (void) dropMessages: | (NSString*) | messageString |
Extends class ShipEntity.
Definition at line 778 of file ShipEntityAI.m.
References nil.
| - (void) ejectCargo |
Extends class ShipEntity.
Definition at line 1449 of file ShipEntityAI.m.
References ShipEntity::dumpCargo, ejectCargo, ShipEntity::maxAvailableCargoSpace, and ranrot_rand.
Referenced by ejectCargo.
| - (void) escortCheckMother |
Extends class ShipEntity.
Definition at line 1591 of file ShipEntityAI.m.
References escortCheckMother, ShipEntity::escortGroup, Entity::owner, ShipEntity::setGroup:, and ShipEntity::setOwner:.
Referenced by escortCheckMother.
| - (void) exitAIWithMessage: | (NSString*) | message |
Extends class ShipEntity.
Definition at line 1229 of file ShipEntityAI.m.
| - (void) explodeSelf |
Extends class ShipEntity.
Definition at line 2307 of file ShipEntityAI.m.
References explodeSelf, and ShipEntity::getDestroyedBy:damageType:.
Referenced by explodeSelf.
| - (void) fightOrFleeHostiles |
Extends class ShipEntity.
Definition at line 1542 of file ShipEntityAI.m.
References ShipEntity::addDefenseTarget:, ShipEntity::addTarget:, ShipEntity::deployEscorts, fightOrFleeHostiles, ShipEntity::fireMissile, ShipEntity::foundTarget, ShipEntity::lastEscortTarget, nil, randf(), ShipEntity::setFoundTarget:, and ShipEntity::setPrimaryAggressor:.
Referenced by fightOrFleeHostiles.
| - (void) fightOrFleeMissile |
Extends class ShipEntity.
Definition at line 1075 of file ShipEntityAI.m.
References ShipEntity::addDefenseTarget:, ShipEntity::addTarget:, ShipEntity::checkScannerIgnoringUnpowered, ShipEntity::doScriptEvent:withArgument:, fightOrFleeMissile, ShipEntity::fireECM, ShipEntity::markAsOffender:withReason:, nil, Entity::owner, ShipEntity::performFlee, ShipEntity::primaryTarget, ShipEntity::scanClass, ShipEntity::setFoundTarget:, and ShipEntity::setPrimaryAggressor:.
Referenced by fightOrFleeMissile.
| - (void) findNewDefenseTarget |
Extends class ShipEntity.
Definition at line 1336 of file ShipEntityAI.m.
References ShipEntity::addDefenseTarget:, ShipEntity::checkScanner, and findNewDefenseTarget.
Referenced by findNewDefenseTarget.
| - (void) getWitchspaceEntryCoordinates |
Extends class ShipEntity.
Definition at line 1037 of file ShipEntityAI.m.
References getWitchspaceEntryCoordinates, HPdistance2(), HPvector_add(), nil, SCANNER_MAX_RANGE2, UNIVERSE, vector_multiply_scalar(), and vectorToHPVector().
Referenced by getWitchspaceEntryCoordinates.
| - (void) landOnPlanet |
Extends class ShipEntity.
Definition at line 1177 of file ShipEntityAI.m.
References ShipEntity::findNearestPlanet, landOnPlanet, and ShipEntity::landOnPlanet:.
Referenced by landOnPlanet.
| - (void) markTargetForFines |
Extends class ShipEntity.
Definition at line 1814 of file ShipEntityAI.m.
References markTargetForFines, nil, ShipEntity::noteLostTarget, and ShipEntity::primaryTarget.
Referenced by markTargetForFines.
| - (void) markTargetForOffence: | (NSString*) | valueString |
Extends class ShipEntity.
Definition at line 1825 of file ShipEntityAI.m.
References ShipEntity::markAsOffender:withReason:, nil, ShipEntity::noteLostTarget, OOExpand, and ShipEntity::primaryTarget.
| - (void) messageMother: | (NSString*) | msgString |
Extends class ShipEntity.
Definition at line 1652 of file ShipEntityAI.m.
References nil, Entity::owner, and ShipEntity::reactToAIMessage:context:.
|
implementation |
Extends class ShipEntity.
Definition at line 1665 of file ShipEntityAI.m.
References ShipEntity::sendAIMessage:.
| - (void) patrolReportIn |
Extends class ShipEntity.
Definition at line 1779 of file ShipEntityAI.m.
References StationEntity::acceptPatrolReportFrom:, ShipEntity::group, OOShipGroup::leader, and patrolReportIn.
Referenced by patrolReportIn.
| - (void) pauseAI: | (NSString*) | intervalString |
Extends class ShipEntity.
Definition at line 757 of file ShipEntityAI.m.
| - (void) performFlyRacepoints |
Extends class ShipEntity.
Definition at line 2382 of file ShipEntityAI.m.
References performFlyRacepoints.
Referenced by performFlyRacepoints.
| - (void) performHyperSpaceExit |
Extends class ShipEntity.
Definition at line 1408 of file ShipEntityAI.m.
References performHyperSpaceExit, and ShipEntity::performHyperSpaceExitReplace:.
Referenced by performHyperSpaceExit.
| - (void) performHyperSpaceExitWithoutReplacing |
Extends class ShipEntity.
Definition at line 1413 of file ShipEntityAI.m.
References ShipEntity::performHyperSpaceExitReplace:, and performHyperSpaceExitWithoutReplacing.
Referenced by performHyperSpaceExitWithoutReplacing.
| - (void) randomPauseAI: | (NSString*) | intervalString |
Extends class ShipEntity.
Definition at line 762 of file ShipEntityAI.m.
References count, OOLog, and ScanTokensFromString().
| - (void) recallStoredTarget |
Extends class ShipEntity.
Definition at line 1849 of file ShipEntityAI.m.
References DESTROY, HPdistance2(), nil, recallStoredTarget, SCANNER_MAX_RANGE2, and ShipEntity::setFoundTarget:.
Referenced by recallStoredTarget.
| - (void) requestNewTarget |
Extends class ShipEntity.
Definition at line 1936 of file ShipEntityAI.m.
References ShipEntity::checkFoundTarget, ShipEntity::checkScanner, DESTROY, Entity::energy, ShipEntity::group, OOShipGroup::leader, nil, requestNewTarget, and ShipEntity::setFoundTarget:.
Referenced by requestNewTarget.
| - (void) rollD: | (NSString*) | die_number |
Extends class ShipEntity.
Definition at line 1965 of file ShipEntityAI.m.
References OOLog, and ranrot_rand.
|
implementation |
Extends class ShipEntity.
Definition at line 2271 of file ShipEntityAI.m.
References ShipEntity::getAI, AI::name, nil, PLAYER, ShipEntity::primaryTarget, PlayerEntity::runUnsanitizedScriptActions:allowingAIMethods:withContextName:forTarget:, PlayerEntity::scriptTarget, PlayerEntity::setScriptTarget:, and AI::state.
| - (void) scanForFormationLeader |
Extends class ShipEntity.
Definition at line 1621 of file ShipEntityAI.m.
References ShipEntity::checkScannerIgnoringUnpowered, DESTROY, Entity::isPlayer, nil, ShipEntity::scanClass, scanForFormationLeader, ShipEntity::setAITo:, ShipEntity::setFoundTarget:, and ShipEntity::setPrimaryRole:.
Referenced by scanForFormationLeader.
| - (void) scanForLoot |
Extends class ShipEntity.
Definition at line 937 of file ShipEntityAI.m.
References CARGO_NOT_CARGO, ShipEntity::checkFoundTarget, ShipEntity::checkScanner, count, DESTROY, magnitude2(), scanForLoot, and ShipEntity::setFoundTarget:.
Referenced by scanForLoot.
| - (void) scanForNearestMerchantman |
Extends class ShipEntity.
Definition at line 884 of file ShipEntityAI.m.
References ShipEntity::checkFoundTarget, ShipEntity::checkScannerIgnoringUnpowered, DESTROY, Entity::isPlayer, nil, PIRATES_PREFER_PLAYER, scanForNearestMerchantman, and ShipEntity::setFoundTarget:.
Referenced by scanForNearestMerchantman.
| - (void) scanForNearestShipHavingAnyRole: | (NSString*) | scanRoles |
Extends class ShipEntity.
Definition at line 1993 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithPredicate:parameter:.
| - (void) scanForNearestShipHavingRole: | (NSString*) | scanRole |
Extends class ShipEntity.
Definition at line 1982 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithPredicate:parameter:.
|
implementation |
Extends class ShipEntity.
Definition at line 2033 of file ShipEntityAI.m.
References DESTROY, ShipEntity::getAI, AI::message:, AI::name, nil, OOJSAcquireContext(), OOJSObjectFromNativeObject(), OOJSRelinquishContext(), OOJSReportPendingException(), OOLog, and ShipEntity::scanForNearestShipWithPredicate:parameter:.
| - (void) scanForNearestShipNotHavingAnyRole: | (NSString*) | scanRoles |
Extends class ShipEntity.
Definition at line 2021 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithNegatedPredicate:parameter:.
| - (void) scanForNearestShipNotHavingRole: | (NSString*) | scanRole |
Extends class ShipEntity.
Definition at line 2010 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithNegatedPredicate:parameter:.
| - (void) scanForNearestShipWithAnyPrimaryRole: | (NSString*) | scanRoles |
Extends class ShipEntity.
Definition at line 1987 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithPredicate:parameter:.
| - (void) scanForNearestShipWithoutAnyPrimaryRole: | (NSString*) | scanRoles |
Extends class ShipEntity.
Definition at line 2015 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithNegatedPredicate:parameter:.
| - (void) scanForNearestShipWithoutPrimaryRole: | (NSString*) | scanRole |
Extends class ShipEntity.
Definition at line 2005 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithNegatedPredicate:parameter:.
| - (void) scanForNearestShipWithoutScanClass: | (NSString*) | scanScanClass |
Extends class ShipEntity.
Definition at line 2027 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithNegatedPredicate:parameter:.
| - (void) scanForNearestShipWithPrimaryRole: | (NSString*) | scanRole |
Extends class ShipEntity.
Definition at line 1977 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithPredicate:parameter:.
| - (void) scanForNearestShipWithScanClass: | (NSString*) | scanScanClass |
Extends class ShipEntity.
Definition at line 1999 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithPredicate:parameter:.
| - (void) scanForNonThargoid |
Extends class ShipEntity.
Definition at line 1466 of file ShipEntityAI.m.
References ShipEntity::checkFoundTarget, ShipEntity::checkScanner, DESTROY, scanForNonThargoid, and ShipEntity::setFoundTarget:.
Referenced by scanForNonThargoid.
| - (void) scanForOffenders |
Extends class ShipEntity.
Definition at line 1351 of file ShipEntityAI.m.
References ShipEntity::checkFoundTarget, ShipEntity::checkScanner, DESTROY, ShipEntity::group, ShipEntity::legalStatus, nil, ranrot_rand, ShipEntity::scanClass, scanForOffenders, ShipEntity::setFoundTarget:, and UNIVERSE.
Referenced by scanForOffenders.
| - (void) scanForRandomLoot |
Extends class ShipEntity.
Definition at line 979 of file ShipEntityAI.m.
References CARGO_NOT_CARGO, ShipEntity::checkScanner, DESTROY, scanForRandomLoot, and ShipEntity::setFoundTarget:.
Referenced by scanForRandomLoot.
| - (void) scanForRandomMerchantman |
Extends class ShipEntity.
Definition at line 913 of file ShipEntityAI.m.
References ShipEntity::checkScannerIgnoringUnpowered, DESTROY, ranrot_rand, scanForRandomMerchantman, and ShipEntity::setFoundTarget:.
Referenced by scanForRandomMerchantman.
| - (void) scanForRocks |
Extends class ShipEntity.
Definition at line 1871 of file ShipEntityAI.m.
References ShipEntity::checkFoundTarget, ShipEntity::checkScanner, DESTROY, nil, scanForRocks, and ShipEntity::setFoundTarget:.
Referenced by scanForRocks.
| - (void) scanForThargoid |
Extends class ShipEntity.
Definition at line 1461 of file ShipEntityAI.m.
References ShipEntity::scanForNearestShipWithPrimaryRole:, and scanForThargoid.
Referenced by scanForThargoid.
| - (void) scriptActionOnTarget: | (NSString*) | action |
Extends class ShipEntity.
Definition at line 2242 of file ShipEntityAI.m.
References PlayerEntity::checkScript, ShipEntity::getAI, AI::name, nil, OOLog, PLAYER, ShipEntity::primaryTarget, PlayerEntity::runUnsanitizedScriptActions:allowingAIMethods:withContextName:forTarget:, PlayerEntity::scriptTarget, PlayerEntity::setScriptTarget:, and AI::state.
| - (void) sendScriptMessage: | (NSString*) | message |
Extends class ShipEntity.
Definition at line 2289 of file ShipEntityAI.m.
References count, ShipEntity::doScriptEvent:, ShipEntity::doScriptEvent:withArgument:, and ScanTokensFromString().
| - (void) sendTargetCommsMessage: | (NSString*) | message |
Extends class ShipEntity.
Definition at line 1804 of file ShipEntityAI.m.
References nil, ShipEntity::noteLostTarget, ShipEntity::primaryTarget, and ShipEntity::sendExpandedMessage:toShip:.
| - (void) setCoordinates: | (NSString*) | system_x_y_z |
Extends class ShipEntity.
Definition at line 2141 of file ShipEntityAI.m.
References count, make_HPvector(), nil, OOLog, and ScanTokensFromString().
| - (void) setCoordinatesFromPosition |
Extends class ShipEntity.
Definition at line 1070 of file ShipEntityAI.m.
References setCoordinatesFromPosition.
Referenced by setCoordinatesFromPosition.
| - (void) setCourseToPlanet |
Extends class ShipEntity.
Definition at line 1144 of file ShipEntityAI.m.
References AEGIS_NONE, ShipEntity::findNearestPlanetExcludingMoons, HPvector_add(), HPvector_between, HPvector_multiply_scalar(), HPvector_normal(), randf(), setCourseToPlanet, HPVector::x, HPVector::y, and HPVector::z.
Referenced by setCourseToPlanet.
| - (void) setCourseToWitchpoint |
Extends class ShipEntity.
Definition at line 1388 of file ShipEntityAI.m.
References setCourseToWitchpoint, and UNIVERSE.
Referenced by setCourseToWitchpoint.
| - (void) setDesiredRangeForWaypoint |
Extends class ShipEntity.
Definition at line 813 of file ShipEntityAI.m.
References setDesiredRangeForWaypoint.
Referenced by setDesiredRangeForWaypoint.
| - (void) setDesiredRangeTo: | (NSString*) | rangeString |
Extends class ShipEntity.
Definition at line 808 of file ShipEntityAI.m.
| - (void) setDestinationFromCoordinates |
Extends class ShipEntity.
Definition at line 1065 of file ShipEntityAI.m.
References setDestinationFromCoordinates.
Referenced by setDestinationFromCoordinates.
| - (void) setDestinationToCurrentLocation |
Extends class ShipEntity.
Definition at line 795 of file ShipEntityAI.m.
References HPvector_add(), OOHPVectorRandomSpatial(), and setDestinationToCurrentLocation.
Referenced by setDestinationToCurrentLocation.
| - (void) setDestinationToDockingAbort |
Extends class ShipEntity.
Definition at line 1907 of file ShipEntityAI.m.
References HPvector_normal_or_fallback(), kZeroHPVector, make_HPvector(), Entity::position, randf(), setDestinationToDockingAbort, ShipEntity::targetStation, HPVector::x, HPVector::y, and HPVector::z.
Referenced by setDestinationToDockingAbort.
|
implementation |
Extends class ShipEntity.
Definition at line 801 of file ShipEntityAI.m.
References HPvector_add(), OOVectorRandomSpatial(), setDestinationToJinkPosition, vector_add(), vector_multiply_scalar(), and vectorToHPVector().
Referenced by setDestinationToJinkPosition.
| - (void) setDestinationToStationBeacon |
Extends class ShipEntity.
Definition at line 1401 of file ShipEntityAI.m.
References setDestinationToStationBeacon, and UNIVERSE.
Referenced by setDestinationToStationBeacon.
| - (void) setDestinationToTarget |
Extends class ShipEntity.
Definition at line 1236 of file ShipEntityAI.m.
References Entity::position, ShipEntity::primaryTarget, and setDestinationToTarget.
Referenced by setDestinationToTarget.
| - (void) setDestinationToWitchpoint |
Extends class ShipEntity.
Definition at line 1396 of file ShipEntityAI.m.
References setDestinationToWitchpoint.
Referenced by setDestinationToWitchpoint.
| - (void) setDestinationWithinTarget |
Extends class ShipEntity.
Definition at line 1243 of file ShipEntityAI.m.
References Entity::collision_radius, make_HPvector(), Entity::position, ShipEntity::primaryTarget, quaternion_set_random(), randf(), setDestinationWithinTarget, vector_forward_from_quaternion(), HPVector::x, Vector::x, HPVector::y, Vector::y, HPVector::z, and Vector::z.
Referenced by setDestinationWithinTarget.
| - (void) setPlanetPatrolCoordinates |
Extends class ShipEntity.
Definition at line 1670 of file ShipEntityAI.m.
References cross_product(), ShipEntity::forwardVector, ShipEntity::group, HPmagnitude2(), HPvector_normal(), HPvector_subtract(), HPVectorToVector(), OOShipGroup::leader, make_HPvector(), make_vector(), Entity::position, randf(), ShipEntity::setAITo:, setPlanetPatrolCoordinates, ShipEntity::setTargetStation:, HPVector::x, Vector::x, HPVector::y, Vector::y, HPVector::z, and Vector::z.
Referenced by setPlanetPatrolCoordinates.
| - (void) setRacepointsFromTarget |
Extends class ShipEntity.
Definition at line 2362 of file ShipEntityAI.m.
References Entity::collision_radius, make_HPvector(), nil, Entity::position, ShipEntity::primaryTarget, setRacepointsFromTarget, ShipEntity::v_forward, HPVector::x, Vector::x, HPVector::y, Vector::y, HPVector::z, and Vector::z.
Referenced by setRacepointsFromTarget.
| - (void) setSpeedFactorTo: | (NSString*) | speedString |
Extends class ShipEntity.
Definition at line 823 of file ShipEntityAI.m.
| - (void) setSpeedTo: | (NSString*) | speedString |
Extends class ShipEntity.
Definition at line 818 of file ShipEntityAI.m.
| - (void) setSpeedToCruiseSpeed |
Extends class ShipEntity.
Definition at line 828 of file ShipEntityAI.m.
References setSpeedToCruiseSpeed.
Referenced by setSpeedToCruiseSpeed.
| - (void) setStateTo: | (NSString*) | state |
Extends class ShipEntity.
Definition at line 752 of file ShipEntityAI.m.
References ShipEntity::getAI, and AI::setState:.
| - (void) setSunSkimEndCoordinates |
Extends class ShipEntity.
Definition at line 1749 of file ShipEntityAI.m.
References nil, setSunSkimEndCoordinates, and UNIVERSE.
Referenced by setSunSkimEndCoordinates.
| - (void) setSunSkimExitCoordinates |
Extends class ShipEntity.
Definition at line 1760 of file ShipEntityAI.m.
References HPvector_normal(), HPvector_subtract(), nil, Entity::position, setSunSkimExitCoordinates, HPVector::x, HPVector::y, and HPVector::z.
Referenced by setSunSkimExitCoordinates.
| - (void) setSunSkimStartCoordinates |
Extends class ShipEntity.
Definition at line 1732 of file ShipEntityAI.m.
References HPvector_equal(), kZeroHPVector, nil, setSunSkimStartCoordinates, and UNIVERSE.
Referenced by setSunSkimStartCoordinates.
| - (void) setTakeOffFromPlanet |
Extends class ShipEntity.
Definition at line 1165 of file ShipEntityAI.m.
References ShipEntity::findNearestPlanet, HPvector_add(), HPvector_multiply_scalar(), HPvector_normal(), HPvector_subtract(), OOLog, and setTakeOffFromPlanet.
Referenced by setTakeOffFromPlanet.
| - (void) setTargetToFoundTarget |
Extends class ShipEntity.
Definition at line 1007 of file ShipEntityAI.m.
References ShipEntity::addTarget:, ShipEntity::foundTarget, nil, and setTargetToFoundTarget.
Referenced by setTargetToFoundTarget.
| - (void) setTargetToLastStation |
Extends class ShipEntity.
Definition at line 2225 of file ShipEntityAI.m.
References ShipEntity::addTarget:, nil, ShipEntity::setTargetStation:, setTargetToLastStation, and ShipEntity::targetStation.
Referenced by setTargetToLastStation.
| - (void) setTargetToPrimaryAggressor |
Extends class ShipEntity.
Definition at line 838 of file ShipEntityAI.m.
References ShipEntity::addDefenseTarget:, ShipEntity::addTarget:, ShipEntity::doScriptEvent:withArgument:, ShipEntity::getAI, Entity::isShip, AI::message:, ShipEntity::primaryAggressor, ShipEntity::primaryTarget, randf(), setTargetToPrimaryAggressor, and Entity::universalID.
Referenced by setTargetToPrimaryAggressor.
| - (void) setTargetToRandomStation |
Extends class ShipEntity.
Definition at line 2181 of file ShipEntityAI.m.
References ShipEntity::addTarget:, HPdistance2(), nil, ranrot_rand, ShipEntity::setTargetStation:, setTargetToRandomStation, and UNIVERSE.
Referenced by setTargetToRandomStation.
| - (void) setThrustFactorTo: | (NSString*) | thrustFactorString |
Extends class ShipEntity.
Definition at line 833 of file ShipEntityAI.m.
References OOClamp_0_1_f().
| - (void) storeTarget |
Extends class ShipEntity.
Definition at line 1838 of file ShipEntityAI.m.
References DESTROY, ShipEntity::primaryTarget, ShipEntity::setRememberedShip:, and storeTarget.
Referenced by storeTarget.
| - (void) suggestEscort |
Extends class ShipEntity.
Definition at line 1585 of file ShipEntityAI.m.
References ShipEntity::primaryTarget, suggestEscort, and ShipEntity::suggestEscortTo:.
Referenced by suggestEscort.
| - (void) targetFirstBeaconWithCode: | (NSString*) | code |
Extends class ShipEntity.
Definition at line 2321 of file ShipEntityAI.m.
References ShipEntity::addTarget:, and count.
| - (void) targetNextBeaconWithCode: | (NSString*) | code |
Extends class ShipEntity.
Definition at line 2331 of file ShipEntityAI.m.
References ShipEntity::addTarget:, count, and ShipEntity::primaryTarget.
| - (void) thargonCheckMother |
Extends class ShipEntity.
Definition at line 1488 of file ShipEntityAI.m.
References ShipEntity::group, HPdistance2(), OOShipGroup::leader, nil, Entity::owner, Entity::position, ShipEntity::scanForNearestShipHavingRole:, ShipEntity::setGroup:, ShipEntity::setOwner:, and thargonCheckMother.
Referenced by thargonCheckMother.
| - (void) wormholeGroup |
Extends class ShipEntity.
Definition at line 1423 of file ShipEntityAI.m.
References ShipEntity::addTarget:, ShipEntity::doScriptEvent:withArgument:, nil, ShipEntity::primaryTarget, ShipEntity::reactToAIMessage:context:, and wormholeGroup.
Referenced by wormholeGroup.