![]() |
Oolite 1.91.0.7658-250404-b1488af
|
#include <ShipEntity.h>
Class Methods | |
(static BOOL) | + IsBehaviourHostile [implementation] |
(static float) | + SurfaceDistanceSqaredV [implementation] |
(static float) | + SurfaceDistanceSqared [implementation] |
(static BOOL) | + AuthorityPredicate [implementation] |
(id) | + shipRestoredFromDictionary:useFallback:context: |
Private Attributes | |
OOWeakReference * | _subEntityTakingDamage |
NSString * | _shipKey |
NSMutableArray * | _equipment |
float | _heatInsulation |
OOWeakReference * | _lastAegisLock |
OOShipGroup * | _group |
OOShipGroup * | _escortGroup |
uint8_t | _maxEscortCount |
uint8_t | _pendingEscortCount |
Vector | _escortPositions [MAX_ESCORTS] |
BOOL | _escortPositionsValid |
OOWeakSet * | _defenseTargets |
OOWeakSet * | _collisionExceptions |
GLfloat | _profileRadius |
OOWeakReference * | _shipHitByLaser |
NSString * | _beaconCode |
NSString * | _beaconLabel |
OOWeakReference * | _prevBeacon |
OOWeakReference * | _nextBeacon |
id< OOHUDBeaconIcon > | _beaconDrawable |
double | _nextAegisCheck |
BOOL | isDemoShip |
OOScalar | demoRate |
OOTimeAbsolute | demoStartTime |
Quaternion | demoStartOrientation |
Definition at line 192 of file ShipEntity.h.
- (BOOL) abandonShip |
Definition at line 13308 of file ShipEntity.m.
References _escortGroup, abandonShip, behaviour, desired_speed, equipmentItemProviding:, escortArray, escortGroup, EXPECT, frustration, group, hasEscapePod, hasEscorts, Entity::isPlayer, Entity::isSubEntity, launchEscapeCapsule, nil, NO_TARGET, OOLog, Entity::owner, removeEquipmentItem:, setAITo:, setGroup:, setOwner:, Entity::setScanClass:, and thrust.
Referenced by abandonShip, coordinates, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (void) abortDocking |
Definition at line 14047 of file ShipEntity.m.
References abortDocking.
Referenced by abortDocking, coordinates, PlayerEntity::disengageAutopilot, and getDestroyedBy:damageType:.
- (Triangle) absoluteIJKForSubentity |
Definition at line 2234 of file ShipEntity.m.
References absoluteIJKForSubentity, Entity::drawRotationMatrix, Entity::isSubEntity, kBasisXVector, kBasisYVector, kBasisZVector, nil, NO_TARGET, OOVectorMultiplyMatrix(), and Entity::owner.
Referenced by absoluteIJKForSubentity, PlayerEntity::doesHitLine:v0:v1:, doesHitLine:v0:v1:, doOctreesCollide, and maxFlightSpeed.
- (HPVector) absoluteTractorPosition |
Definition at line 1540 of file ShipEntity.m.
References absoluteTractorPosition, Entity::normalOrientation, Entity::position, quaternion_rotate_vector(), and tractor_position.
Referenced by absoluteTractorPosition, behaviour_tractored:, and findBoundingBoxRelativeToPosition:InVectors:i:j:.
- (BOOL) acceptAsEscort: | (ShipEntity *) | other_ship |
Definition at line 13710 of file ShipEntity.m.
References _maxEscortCount, OOShipGroup::addShip:, OOShipGroup::count, cruiseSpeed, doScriptEvent:withArgument:, escortCount, escortGroup, group, MAX_ESCORTS, maxFlightSpeed, AI::message:, nil, OOLog, setGroup:, shipAI, and Entity::status.
Referenced by ShipGroupAddShip().
|
implementation |
Reimplemented in StationEntity.
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2884 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::broadcastDistressMessageWithDumping:.
- (GLfloat) accuracy |
- (BOOL) activateCloakingDevice |
Reimplemented in PlayerEntity.
Definition at line 12365 of file ShipEntity.m.
References activateCloakingDevice, cloaking_device_active, CLOAKING_DEVICE_START_ENERGY, doScriptEvent:, Entity::energy, hasCloakingDevice, and Entity::maxEnergy.
Referenced by activateCloakingDevice, behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_attack_target:, behaviour_evasive_action:, behaviour_flee_target:, behaviour_fly_to_target_six:, behaviour_running_defense:, coordinates, and setCloaked:.
- (BOOL) addCargo: | (NSArray *) | some_cargo |
Definition at line 8456 of file ShipEntity.m.
References cargo, count, and maxAvailableCargoSpace.
- (void) addCollisionException: | (ShipEntity *) | ship |
Definition at line 11128 of file ShipEntity.m.
References _collisionExceptions, OOWeakSet::addObject:, and nil.
Referenced by ShipAddCollisionException().
- (BOOL) addDefenseTarget: | (Entity *) | target |
Definition at line 11177 of file ShipEntity.m.
References _defenseTargets, OOWeakSet::addObject:, defenseTargetCount, Entity::isShip, MAX_TARGETS, and nil.
Referenced by ShipEntity(PureAI)::addFoundTargetAsDefenseTarget, ShipEntity(PureAI)::addPrimaryAggressorAsDefenseTarget, ShipEntity(PureAI)::fightOrFleeHostiles, ShipEntity(PureAI)::fightOrFleeMissile, ShipEntity(PureAI)::findNewDefenseTarget, and ShipEntity(PureAI)::setTargetToPrimaryAggressor.
- (BOOL) addEquipmentItem: | (NSString *) | equipmentKey | |
inContext: | (NSString *) | context |
Reimplemented in PlayerEntity.
Definition at line 3531 of file ShipEntity.m.
References addEquipmentItem:withValidation:inContext:.
Referenced by setUpShipFromDictionary:.
- (BOOL) addEquipmentItem: | (NSString *) | equipmentKey | |
withValidation: | (BOOL) | validateAddition | |
inContext: | (NSString *) | context |
Reimplemented in PlayerEntity.
Definition at line 3537 of file ShipEntity.m.
References _equipment, doScriptEvent:withArgument:, energy_recharge_rate, equipment_weight, OOEquipmentType::equipmentTypeWithIdentifier:, extra_cargo, Entity::isPlayer, isThargoid, max_cargo, max_missiles, Entity::maxEnergy, missile_list, missiles, nil, and OOEquipmentType::requiredCargoSpace.
Referenced by addEquipmentItem:inContext:, PlayerEntity::addEquipmentItem:withValidation:inContext:, ShipAwardEquipment(), ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, and ShipSetEquipmentStatus().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1155 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2560 of file ShipEntityAI.m.
- (void) addImpactMoment: | (Vector) | moment | |
fraction: | (GLfloat) | howmuch |
Definition at line 12855 of file ShipEntity.m.
References Entity::mass, and velocity.
Referenced by dealMomentumWithinDesiredRange:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 979 of file ShipEntityAI.m.
- (void) addRole: | (NSString *) | role |
Definition at line 7266 of file ShipEntity.m.
References addRole:withProbability:.
Referenced by setIsBoulder:.
- (void) addRole: | (NSString *) | role | |
withProbability: | (float) | probability |
Definition at line 7272 of file ShipEntity.m.
References nil, roleSet, OORoleSet::roleSetWithAddedRole:probability:, and OORoleSet::roleSetWithRole:probability:.
Referenced by addRole:.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 6707 of file ShipEntity.m.
References addSubentityToCollisionRadius:, Entity::isSubEntity, nil, and setOwner:.
Referenced by ShipEntity(Private)::setUpOneFlasher:, setUpOneStandardSubentity:asTurret:, and setUpSubEntities.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 2256 of file ShipEntity.m.
Referenced by ShipEntity(Private)::addSubEntity:.
- (void) addTarget: | (Entity *) | targetEntity |
Reimplemented in PlayerEntity.
Definition at line 10058 of file ShipEntity.m.
References _primaryTarget, DESTROY, doScriptEvent:withArgument:, Entity::isSubEntity, nil, shipSubEntityEnumerator, startTrackingCurve, and OOWeakRefObject::weakRetain.
Referenced by PlayerEntity::addTarget:, deployEscorts, enterWormhole:replacing:, ShipEntity(PureAI)::fightOrFleeHostiles, ShipEntity(PureAI)::fightOrFleeMissile, fireMissileWithIdentifier:andTarget:, getTractoredBy:, launchCascadeMine, StationEntity::launchDefenseShip, StationEntity::launchPirateShip, StationEntity::launchPolice, PlayerEntity::moveTargetMemoryBy:, ShipEntity(AI)::recallDockingInstructions, PlayerEntity::selectNextMissile, ShipEntity(OOJavaScriptExtensions)::setTargetForScript:, ShipEntity(PureAI)::setTargetToFoundTarget, ShipEntity(PureAI)::setTargetToLastStation, setTargetToNearestStationIncludingHostiles:, ShipEntity(PureAI)::setTargetToPrimaryAggressor, ShipEntity(PureAI)::setTargetToRandomStation, setTargetToSystemStation, ShipEntity(ScriptMethods)::spawnShipsWithRole:count:, ShipEntity(PureAI)::targetFirstBeaconWithCode:, ShipEntity(PureAI)::targetNextBeaconWithCode:, ShipEntity(AI)::wormholeEscorts, and ShipEntity(PureAI)::wormholeGroup.
- (void) adjustMissedShots: | (int) | delta |
Definition at line 12068 of file ShipEntity.m.
References _missed_shots, adjustMissedShots:, Entity::isSubEntity, and Entity::owner.
Referenced by adjustMissedShots:, fireLaserShotInDirection:weaponIdentifier:, and fireSubentityLaserShot:.
- (void) adjustVelocity: | (Vector) | xVel |
Reimplemented in StationEntity.
Definition at line 12849 of file ShipEntity.m.
References velocity.
Referenced by StationEntity::adjustVelocity:, behaviour_land_on_planet:, collideWithShip:, and DockEntity::shipIsInDockingCorridor:.
- (float) afterburnerFactor |
Definition at line 4095 of file ShipEntity.m.
References afterburner_speed_factor, and afterburnerFactor.
Referenced by afterburnerFactor, applyThrust:, behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_sniper:, behaviour_evasive_action:, behaviour_flee_target:, behaviour_fly_to_target_six:, PlayerEntity::doBookkeeping:, increase_flight_speed:, isFrangible, PlayerEntity(OOPrivate)::performInFlightUpdates:, and WormholeEntity::suckInShip:.
- (float) afterburnerRate |
Definition at line 4101 of file ShipEntity.m.
References afterburner_rate, and afterburnerRate.
Referenced by afterburnerRate, and isFrangible.
- (NSArray *) aftWeaponOffset |
References forwardWeaponOffset.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2650 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2638 of file ShipEntityAI.m.
- (OOAlertCondition) alertCondition |
Reimplemented in PlayerEntity, and ProxyPlayerEntity.
Definition at line 14745 of file ShipEntity.m.
References ALERT_CONDITION_DOCKED, ALERT_CONDITION_RED, ALERT_CONDITION_YELLOW, alertCondition, Entity::energy, hasHostileTarget, Entity::maxEnergy, and Entity::status.
Referenced by alertCondition, and isMissile.
- (NSArray *) allDefenseTargets |
Definition at line 11165 of file ShipEntity.m.
References allDefenseTargets, and OOWeakSet::allObjects.
Referenced by allDefenseTargets, isMissile, and validateDefenseTargets.
- (void) applyAttitudeChanges: | (double) | delta_t |
Reimplemented in PlayerEntity.
Definition at line 6830 of file ShipEntity.m.
References applyRoll:climb:andYaw:.
Referenced by processBehaviour:, and update:.
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity.
Definition at line 6797 of file ShipEntity.m.
References Entity::hasRotated, kIdentityQuaternion, Entity::orientation, orientationChanged, quaternion_multiply(), quaternion_rotate_about_x(), and quaternion_rotate_about_z().
|
implementation |
Reimplemented from Entity.
Definition at line 6811 of file ShipEntity.m.
References Entity::hasRotated, kIdentityQuaternion, Entity::orientation, orientationChanged, quaternion_multiply(), quaternion_rotate_about_x(), quaternion_rotate_about_y(), and quaternion_rotate_about_z().
Referenced by applyAttitudeChanges:.
- (void) applySticks: | (double) | delta_t |
Definition at line 8143 of file ShipEntity.m.
References accuracy, COMBAT_AI_TRACKS_CLOSER, flightPitch, flightRoll, flightYaw, stick_pitch, stick_roll, and stick_yaw.
Referenced by behaviour_idle:, behaviour_scripted_ai:, behaviour_stop_still:, behaviour_tumble:, evasiveAction:, missileTrackPrimaryTarget:, trackDestination:delta_t:, trackPrimaryTarget:delta_t:, and trackSideTarget:delta_t:.
- (void) applyThrust: | (double) | delta_t |
Definition at line 6737 of file ShipEntity.m.
References afterburner_rate, afterburnerFactor, behaviour, decrease_flight_speed:, desired_speed, flightSpeed, fuel, fuel_accumulator, hasFuelInjection, increase_flight_speed:, maxFlightSpeed, MIN_FUEL, Entity::moveForward:, SHIP_THRUST_FACTOR, thrust, and velocity.
Referenced by processBehaviour:, and update:.
- (double) approachAspectToPrimaryTarget |
Definition at line 11257 of file ShipEntity.m.
References approachAspectToPrimaryTarget, Entity::isShip, nil, Entity::position, primaryTarget, and v_forward.
Referenced by approachAspectToPrimaryTarget, behaviour_attack_break_off_target:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_slow_dogfight:, behaviour_attack_target:, behaviour_fly_to_target_six:, and coordinates.
|
implementation |
Definition at line 14073 of file ShipEntity.m.
References Entity::position, scanClass, SCANNER_MAX_RANGE2, UNIVERSE, and withinStationAegis.
- (OOCargoQuantity) availableCargoSpace |
Definition at line 8380 of file ShipEntity.m.
References availableCargoSpace, cargoQuantityOnBoard, equipment_weight, EXPECT_NOT, max_cargo, and maxAvailableCargoSpace.
Referenced by availableCargoSpace, bounty, PlayerEntity::enterWitchspace, equipmentValidToAdd:whileLoading:inContext:, PlayerEntity::setCargoQuantityForType:amount:, ShipAwardEquipment(), ShipSetProperty(), and PlayerEntity::tryBuyingCommodity:all:.
- (void) avoidCollision |
Definition at line 6836 of file ShipEntity.m.
References _destination, avoidCollision, behaviour, Entity::collision_radius, desired_range, nil, pitching_over, Entity::position, previousCondition, primaryTarget, PROXIMITY_AVOID_DISTANCE_FACTOR, proximityAlert, and scanClass.
Referenced by avoidCollision, behaviour_attack_break_off_target:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_mining_target:, behaviour_attack_slow_dogfight:, behaviour_close_to_broadside_range:, behaviour_close_with_target:, behaviour_evasive_action:, behaviour_face_destination:, behaviour_flee_target:, behaviour_fly_from_destination:, behaviour_fly_range_from_destination:, behaviour_fly_to_destination:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, behaviour_intercept_target:, behaviour_land_on_planet:, behaviour_running_defense:, behaviour_track_target:, reactionTime, and trackPrimaryTarget:delta_t:.
- (double) ballTrackLeadingTarget: | (double) | delta_t | |
atTarget: | (Entity *) | target |
Definition at line 10330 of file ShipEntity.m.
References Entity::absolutePositionForSubentity, Entity::isSubEntity, kBasisZVector, kIdentityQuaternion, nil, NO_TARGET, Entity::normalOrientation, Entity::orientation, orientationChanged, Entity::owner, Entity::parentEntity, Entity::position, quaternion_multiply(), quaternion_rotate_about_axis(), quaternion_rotate_vector(), reference, setStatus:, thrust, TURRET_MINIMUM_COS, TURRET_SHOT_SPEED, vector_forward_from_quaternion(), Entity::velocity, and weaponRange.
Referenced by behaviour_track_as_turret:.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1546 of file ShipEntity.m.
References _beaconCode, and beaconCode.
Referenced by beaconCode, beaconDrawable, compareBeaconCodeWith:, dumpSelfState, isBeacon, ShipGetProperty(), and WormholeEntity::suckInShip:.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1601 of file ShipEntity.m.
References _beaconDrawable, beaconCode, beaconDrawable, and nil.
Referenced by beaconDrawable.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1571 of file ShipEntity.m.
References _beaconLabel, and beaconLabel.
Referenced by beaconLabel, and ShipGetProperty().
- (void) becomeEnergyBlast |
Reimplemented in StationEntity.
Definition at line 9474 of file ShipEntity.m.
References becomeEnergyBlast, broadcastEnergyBlastImminent, noteKilledBy:damageType:, and OOQuiriumCascadeEntity::quiriumCascadeFromShip:.
Referenced by becomeEnergyBlast, StationEntity::becomeEnergyBlast, and maxFlightSpeed.
- (void) becomeExplosion |
Reimplemented in StationEntity.
Definition at line 9170 of file ShipEntity.m.
References Entity::absolutePositionForSubentity, PlayerEntity::adjustTradeInFactorBy:, becomeExplosion, being_mined, Entity::boundingBox, broadcastThargoidDestroyed, canFragment, clearSubEntities, Entity::collision_radius, Entity::collisionRadius, dealMomentumWithinDesiredRange:, desired_range, DETAIL_LEVEL_EXTRAS, OOExplosionCloudEntity::explosionCloudFromEntity:withSettings:, OOFlashEffectEntity::explosionFlashFromEntity:, explosionType, OOBigFragmentBurstEntity::fragmentBurstFromEntity:, OOSmallFragmentBurstEntity::fragmentBurstFromEntity:, isBoulder, Entity::isPlayer, isThargoid, isVisible, isWreckage, likely_cargo, Entity::mass, maxFlightSpeed, nil, Entity::normalOrientation, noRocks, OOLog, OORandomPositionInBoundingBox(), Entity::parentEntity, PLAYER, Entity::position, primaryAggressor, quaternion_rotate_vector(), quaternion_set_random(), randf(), randomEjectaTemperature, Octree::randomPoint, Ranrot(), ranrot_rand, releaseCargoPodsDebris, OORingEffectEntity::ringFromEntity:, roleSet, SCANNER_MAX_RANGE2, setBounty:withReason:, setCommodity:andAmount:, setIsBoulder:, Entity::setOrientation:, Entity::setPosition:, Entity::setScanClass:, setStatus:, setSuppressExplosion:, setTemperature:, Entity::setVelocity:, shipInfoDictionary, shipSubEntityEnumerator, Entity::status, subEntityDied:, suppressExplosion, UNIVERSE, UNIVERSE_MAX_ENTITIES, and velocity.
Referenced by becomeExplosion, StationEntity::becomeExplosion, becomeLargeExplosion:, PlayerEntity::doBookkeeping:, getDestroyedBy:damageType:, and maxFlightSpeed.
- (void) becomeLargeExplosion: | (double) | factor |
Reimplemented in StationEntity.
Definition at line 9644 of file ShipEntity.m.
References becomeExplosion, clearSubEntities, OOBigFragmentBurstEntity::fragmentBurstFromEntity:, OOSmallFragmentBurstEntity::fragmentBurstFromEntity:, Entity::isPlayer, nil, releaseCargoPodsDebris, setStatus:, setSuppressExplosion:, shipSubEntityEnumerator, and Entity::status.
Referenced by StationEntity::becomeLargeExplosion:, and PlayerEntity::getDestroyedBy:damageType:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1750 of file ShipEntityAI.m.
- (OOBehaviour) behaviour |
- (void) behaviour_attack_break_off_target: | (double) | delta_t |
Definition at line 4371 of file ShipEntity.m.
References accuracy, activateCloakingDevice, afterburnerFactor, approachAspectToPrimaryTarget, avoidCollision, behaviour, canStillTrackPrimaryTarget, cloakAutomatic, COMBAT_AI_DOGFIGHTER, COMBAT_AI_WEAPON_TEMP_READY, COMBAT_OUT_RANGE_FACTOR, desired_speed, evasiveAction:, flightYaw, forward_weapon_temp, frustration, fuel, hasFuelInjection, Entity::isShip, max_flight_roll, maxFlightSpeed, MIN_FUEL, noteLostTargetAndGoIdle, primaryTarget, rangeToPrimaryTarget, Entity::speed, trackPrimaryTarget:delta_t:, and weaponRange.
Referenced by processBehaviour:.
- (void) behaviour_attack_broadside: | (double) | delta_t |
Definition at line 4759 of file ShipEntity.m.
References activateCloakingDevice, afterburnerFactor, behaviour, canStillTrackPrimaryTarget, cloakAutomatic, COMBAT_BROADSIDE_IN_RANGE_FACTOR, desired_speed, frustration, fuel, hasFuelInjection, isWeaponNone(), jink, kZeroVector, maxFlightSpeed, MIN_FUEL, noteLostTargetAndGoIdle, port_weapon_temp, port_weapon_type, rangeToPrimaryTarget, setWeaponDataFromType:, starboard_weapon_temp, starboard_weapon_type, weapon_damage, and weaponRange.
Referenced by processBehaviour:.
- (void) behaviour_attack_broadside_left: | (double) | delta_t |
Definition at line 4825 of file ShipEntity.m.
References behaviour_attack_broadside_target:leftside:.
Referenced by processBehaviour:.
- (void) behaviour_attack_broadside_right: | (double) | delta_t |
Definition at line 4831 of file ShipEntity.m.
References behaviour_attack_broadside_target:leftside:.
Referenced by processBehaviour:.
- (void) behaviour_attack_broadside_target: | (double) | delta_t | |
leftside: | (BOOL) | leftside |
Definition at line 4837 of file ShipEntity.m.
References activateCloakingDevice, afterburnerFactor, avoidCollision, behaviour, canStillTrackPrimaryTarget, cloakAutomatic, COMBAT_AI_WEAPON_TEMP_USABLE, COMBAT_BROADSIDE_IN_RANGE_FACTOR, COMBAT_BROADSIDE_RANGE_FACTOR, COMBAT_WEAPON_RANGE_FACTOR, considerFiringMissile:, desired_speed, firePortWeapon:, fireStarboardWeapon:, flightSpeed, frustration, fuel, getWeaponRangeFromType(), hasFuelInjection, isWeaponNone(), maxFlightSpeed, MIN_FUEL, missiles, nil, noteFrustration:, noteLostTargetAndGoIdle, port_weapon_type, primaryTarget, proximityAlert, rangeToPrimaryTarget, setEvasiveJink:, starboard_weapon_type, success_factor, trackSideTarget:delta_t:, and weapon_temp.
Referenced by behaviour_attack_broadside_left:, and behaviour_attack_broadside_right:.
- (void) behaviour_attack_fly_from_target: | (double) | delta_t |
Definition at line 5470 of file ShipEntity.m.
References accuracy, activateCloakingDevice, afterburnerFactor, approachAspectToPrimaryTarget, avoidCollision, behaviour, cloakAutomatic, COMBAT_AI_FLEES_BETTER_2, COMBAT_IN_RANGE_FACTOR, COMBAT_OUT_RANGE_FACTOR, considerFiringMissile:, desired_speed, flightSpeed, frustration, fuel, hasFuelInjection, jink, kZeroVector, max_flight_pitch, maxFlightSpeed, MIN_FUEL, missiles, nil, noteLostTargetAndGoIdle, primaryTarget, randf(), rangeToPrimaryTarget, scannerRange, setEvasiveJink:, Entity::speed, success_factor, trackPrimaryTarget:delta_t:, and weaponRange.
Referenced by behaviour_close_to_broadside_range:, behaviour_close_with_target:, behaviour_fly_to_target_six:, and processBehaviour:.
- (void) behaviour_attack_fly_to_target: | (double) | delta_t |
Definition at line 5303 of file ShipEntity.m.
References accuracy, activateCloakingDevice, aft_weapon_type, afterburnerFactor, aim_tolerance, approachAspectToPrimaryTarget, avoidCollision, behaviour, canStillTrackPrimaryTarget, cloakAutomatic, COMBAT_AI_CONFIDENCE_FACTOR, COMBAT_AI_FLEES_BETTER, COMBAT_AI_FLEES_BETTER_2, COMBAT_AI_IS_SMART, COMBAT_AI_ISNT_AWFUL, COMBAT_AI_WEAPON_TEMP_USABLE, COMBAT_IN_RANGE_FACTOR, COMBAT_OUT_RANGE_FACTOR, COMBAT_WEAPON_RANGE_FACTOR, considerFiringMissile:, desired_speed, fireMainWeapon:, flightSpeed, frustration, fuel, hasFuelInjection, Entity::isShip, isWeaponNone(), maxFlightSpeed, MIN_FUEL, missiles, nil, noteFrustration:, noteLostTargetAndGoIdle, port_weapon_type, primaryTarget, proximityAlert, rangeToPrimaryTarget, setEvasiveJink:, Entity::speed, starboard_weapon_type, success_factor, trackPrimaryTarget:delta_t:, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, weapon_temp, and weaponRange.
Referenced by processBehaviour:.
- (void) behaviour_attack_mining_target: | (double) | delta_t |
Definition at line 5262 of file ShipEntity.m.
References avoidCollision, canStillTrackPrimaryTarget, desired_speed, fireMainWeapon:, maxFlightSpeed, nil, NO_TARGET, noteLostTargetAndGoIdle, proximityAlert, rangeToPrimaryTarget, and trackPrimaryTarget:delta_t:.
Referenced by processBehaviour:.
- (void) behaviour_attack_slow_dogfight: | (double) | delta_t |
Definition at line 4444 of file ShipEntity.m.
References activateCloakingDevice, approachAspectToPrimaryTarget, avoidCollision, behaviour, canStillTrackPrimaryTarget, cloakAutomatic, Entity::collision_radius, COMBAT_IN_RANGE_FACTOR, considerFiringMissile:, desired_speed, frustration, maxFlightSpeed, missiles, noteLostTargetAndGoIdle, primaryTarget, proximityAlert, rangeToPrimaryTarget, Entity::speed, trackPrimaryTarget:delta_t:, and weaponRange.
Referenced by processBehaviour:.
- (void) behaviour_attack_sniper: | (double) | delta_t |
Definition at line 5038 of file ShipEntity.m.
References accuracy, activateCloakingDevice, afterburnerFactor, behaviour, canStillTrackPrimaryTarget, cloakAutomatic, COMBAT_AI_ISNT_AWFUL, COMBAT_AI_WEAPON_TEMP_USABLE, considerFiringMissile:, desired_speed, fireMainWeapon:, frustration, fuel, hasFuelInjection, Entity::isShip, maxFlightSpeed, MIN_FUEL, missiles, noteFrustration:, noteLostTargetAndGoIdle, primaryTarget, rangeToPrimaryTarget, scannerRange, setEvasiveJink:, success_factor, trackPrimaryTarget:delta_t:, weapon_temp, and weaponRange.
Referenced by processBehaviour:.
- (void) behaviour_attack_target: | (double) | delta_t |
Definition at line 4560 of file ShipEntity.m.
References accuracy, activateCloakingDevice, aft_weapon_temp, aft_weapon_type, aim_tolerance, approachAspectToPrimaryTarget, behaviour, cloakAutomatic, COMBAT_AI_CONFIDENCE_FACTOR, COMBAT_AI_FLEES_BETTER, COMBAT_AI_IS_SMART, COMBAT_AI_ISNT_AWFUL, COMBAT_AI_WEAPON_TEMP_READY, COMBAT_AI_WEAPON_TEMP_USABLE, COMBAT_IN_RANGE_FACTOR, COMBAT_OUT_RANGE_FACTOR, forward_weapon_temp, forward_weapon_type, frustration, getWeaponRangeFromType(), Entity::isShip, isWeaponNone(), jink, kZeroVector, nil, OOWeaponTypeFromEquipmentIdentifierSloppy(), pitching_over, port_weapon_temp, port_weapon_type, primaryTarget, randf(), rangeToPrimaryTarget, setEvasiveJink:, shipSubEntityEnumerator, starboard_weapon_temp, starboard_weapon_type, velocity, and weaponRange.
Referenced by processBehaviour:.
- (void) behaviour_avoid_collision: | (double) | delta_t |
Definition at line 5979 of file ShipEntity.m.
References _destination, Entity::collision_radius, desired_range, desired_speed, maxFlightSpeed, Entity::position, PROXIMITY_AVOID_DISTANCE_FACTOR, proximityAlert, rangeToDestination, resumePostProximityAlert, and trackDestination:delta_t:.
Referenced by processBehaviour:.
- (void) behaviour_close_to_broadside_range: | (double) | delta_t |
Definition at line 4956 of file ShipEntity.m.
References avoidCollision, behaviour, behaviour_attack_fly_from_target:, behaviour_fly_to_target_six:, canStillTrackPrimaryTarget, COMBAT_BROADSIDE_RANGE_FACTOR, isWeaponNone(), nil, noteLostTargetAndGoIdle, port_weapon_type, primaryTarget, proximityAlert, rangeToPrimaryTarget, setWeaponDataFromType:, and weaponRange.
Referenced by processBehaviour:.
- (void) behaviour_close_with_target: | (double) | delta_t |
Definition at line 4999 of file ShipEntity.m.
References avoidCollision, behaviour, behaviour_attack_fly_from_target:, behaviour_fly_to_target_six:, canStillTrackPrimaryTarget, frustration, nil, noteLostTargetAndGoIdle, primaryTarget, proximityAlert, and rangeToPrimaryTarget.
Referenced by processBehaviour:.
- (void) behaviour_evasive_action: | (double) | delta_t |
Definition at line 4511 of file ShipEntity.m.
References activateCloakingDevice, afterburnerFactor, avoidCollision, behaviour, cloakAutomatic, desired_speed, evasiveAction:, fireMainWeapon:, flightYaw, frustration, fuel, hasFuelInjection, maxFlightSpeed, MIN_FUEL, nil, primaryTarget, proximityAlert, rangeToPrimaryTarget, setEvasiveJink:, and Entity::speed.
Referenced by processBehaviour:.
- (void) behaviour_face_destination: | (double) | delta_t |
Definition at line 5699 of file ShipEntity.m.
References avoidCollision, behaviour, desired_range, desired_speed, docking_match_rotation, doScriptEvent:, flightPitch, flightSpeed, frustration, MAX_COS, max_flight_pitch, AI::message:, noteFrustration:, rangeToDestination, and trackDestination:delta_t:.
Referenced by processBehaviour:.
- (void) behaviour_flee_target: | (double) | delta_t |
Definition at line 5602 of file ShipEntity.m.
References accuracy, activateCloakingDevice, afterburnerFactor, avoidCollision, cloakAutomatic, COMBAT_AI_ISNT_AWFUL, considerFiringMissile:, desired_range, desired_speed, fireMainWeapon:, forward_weapon_type, frustration, fuel, hasCascadeMine, hasFuelInjection, Entity::isShip, launchCascadeMine, maxFlightSpeed, AI::message:, MIN_FUEL, missiles, nil, noteFrustration:, noteLostTargetAndGoIdle, primaryTarget, randf(), rangeToPrimaryTarget, success_factor, and trackPrimaryTarget:delta_t:.
Referenced by processBehaviour:.
- (void) behaviour_fly_from_destination: | (double) | delta_t |
Definition at line 5955 of file ShipEntity.m.
References avoidCollision, behaviour, desired_range, desired_speed, doScriptEvent:, frustration, AI::message:, rangeToDestination, and trackDestination:delta_t:.
Referenced by processBehaviour:.
- (void) behaviour_fly_range_from_destination: | (double) | delta_t |
Definition at line 5673 of file ShipEntity.m.
References avoidCollision, behaviour, desired_range, desired_speed, frustration, maxFlightSpeed, and rangeToDestination.
Referenced by processBehaviour:.
- (void) behaviour_fly_thru_navpoints: | (double) | delta_t |
Definition at line 6067 of file ShipEntity.m.
References _destination, behaviour, desired_range, desired_speed, doScriptEvent:andReactToAIMessage:, flightSpeed, frustration, navpoints, next_navpoint_index, noteFrustration:, number_of_navpoints, Entity::position, success_factor, and trackDestination:delta_t:.
Referenced by processBehaviour:.
- (void) behaviour_fly_to_destination: | (double) | delta_t |
Definition at line 5850 of file ShipEntity.m.
References avoidCollision, behaviour, desired_range, desired_speed, docking_match_rotation, dockingInstructions, doScriptEvent:, flightSpeed, frustration, Entity::isStation, MAX_COS, max_flight_pitch, max_flight_roll, maxFlightSpeed, AI::message:, nil, noteFrustration:, rangeToDestination, success_factor, targetStation, thrust, trackDestination:delta_t:, and upVector.
Referenced by processBehaviour:.
- (void) behaviour_fly_to_target_six: | (double) | delta_t |
Definition at line 5116 of file ShipEntity.m.
References _destination, accuracy, activateCloakingDevice, afterburnerFactor, approachAspectToPrimaryTarget, avoidCollision, behaviour, behaviour_attack_fly_from_target:, canStillTrackPrimaryTarget, cloakAutomatic, COMBAT_AI_WEAPON_TEMP_USABLE, COMBAT_OUT_RANGE_FACTOR, COMBAT_WEAPON_RANGE_FACTOR, considerFiringMissile:, desired_speed, entity_personality, fireMainWeapon:, flightSpeed, forward_weapon_type, frustration, fuel, hasFuelInjection, Entity::isShip, isThargoid, maxFlightSpeed, MIN_FUEL, missiles, nil, noteLostTargetAndGoIdle, pitching_over, primaryTarget, proximityAlert, rangeToDestination, rangeToPrimaryTarget, Entity::speed, success_factor, trackDestination:delta_t:, Entity::universalID, weapon_temp, and weaponRange.
Referenced by behaviour_close_to_broadside_range:, behaviour_close_with_target:, and processBehaviour:.
- (void) behaviour_formation_form_up: | (double) | delta_t |
Definition at line 5797 of file ShipEntity.m.
References avoidCollision, desired_range, desired_speed, flightSpeed, frustration, Entity::isShip, max_flight_pitch, max_flight_roll, maxFlightSpeed, noteFrustration:, Entity::owner, pitching_over, rangeToDestination, scannerRange, success_factor, thrust, and trackDestination:delta_t:.
Referenced by processBehaviour:.
- (void) behaviour_idle: | (double) | delta_t |
Definition at line 4153 of file ShipEntity.m.
References applySticks:, flightPitch, flightRoll, Entity::isStation, scanClass, stick_pitch, stick_roll, and stick_yaw.
Referenced by processBehaviour:.
- (void) behaviour_intercept_target: | (double) | delta_t |
Definition at line 4287 of file ShipEntity.m.
References _destination, avoidCollision, behaviour, CARGO_NOT_CARGO, cargoType, Entity::collision_radius, desired_range, desired_speed, doScriptEvent:, flightSpeed, frustration, max_flight_pitch, max_flight_roll, maxFlightSpeed, noteFrustration:, noteLostTargetAndGoIdle, Entity::position, primaryTarget, rangeToDestination, rangeToPrimaryTarget, AI::reactToMessage:context:, scanClass, SHIP_THRUST_FACTOR, Entity::speed, success_factor, thrust, trackDestination:delta_t:, and trackPrimaryTarget:delta_t:.
Referenced by processBehaviour:.
- (void) behaviour_land_on_planet: | (double) | delta_t |
Definition at line 5753 of file ShipEntity.m.
References adjustVelocity:, aiScriptWakeTime, avoidCollision, behaviour, Entity::collisionRadius, desired_speed, flightSpeed, forwardVector, Entity::isPlanet, landOnPlanet:, MAX_COS2, MAX_LANDING_SPEED2, AI::message:, Entity::position, thrust, trackDestination:delta_t:, and velocity.
Referenced by processBehaviour:.
- (void) behaviour_running_defense: | (double) | delta_t |
Definition at line 5553 of file ShipEntity.m.
References accuracy, activateCloakingDevice, avoidCollision, behaviour, canStillTrackPrimaryTarget, cloakAutomatic, COMBAT_AI_ISNT_AWFUL, COMBAT_AI_WEAPON_TEMP_USABLE, desired_speed, fireAftWeapon:, fireMainWeapon:, forward_weapon_type, frustration, jink, kZeroVector, maxFlightSpeed, noteLostTargetAndGoIdle, rangeToPrimaryTarget, scannerRange, trackPrimaryTarget:delta_t:, weapon_temp, and weaponRange.
Referenced by processBehaviour:.
- (void) behaviour_scripted_ai: | (double) | delta_t |
Definition at line 6153 of file ShipEntity.m.
References applySticks:, behaviour, OOJSScript::callMethod:inContext:withArguments:count:result:, desired_speed, fireAftWeapon:, fireMainWeapon:, firePortWeapon:, fireStarboardWeapon:, max_flight_pitch, max_flight_roll, max_flight_yaw, maxFlightSpeed, nil, OOJSAcquireContext(), OOJSNativeObjectFromJSObject(), OOJSRelinquishContext(), OOLog, rangeToPrimaryTarget, script, stick_pitch, stick_roll, and stick_yaw.
Referenced by processBehaviour:.
- (void) behaviour_stop_still: | (double) | delta_t |
Definition at line 4141 of file ShipEntity.m.
References applySticks:, stick_pitch, stick_roll, and stick_yaw.
Referenced by processBehaviour:.
- (void) behaviour_track_as_turret: | (double) | delta_t |
Definition at line 6005 of file ShipEntity.m.
References ballTrackLeadingTarget:atTarget:, Entity::collisionRadius, defenseTargetEnumerator, Entity::energy, fireTurretCannon:, hasHostileTarget, isCloaked, nil, Entity::owner, Entity::position, primaryTarget, rangeToSecondaryTarget:, removeDefenseTarget:, scanClass, scannerRange, and weaponRange.
Referenced by processBehaviour:.
- (void) behaviour_track_target: | (double) | delta_t |
Definition at line 4271 of file ShipEntity.m.
References avoidCollision, nil, noteLostTargetAndGoIdle, primaryTarget, and trackPrimaryTarget:delta_t:.
Referenced by processBehaviour:.
- (void) behaviour_tractored: | (double) | delta_t |
Definition at line 4186 of file ShipEntity.m.
References _destination, absoluteTractorPosition, behaviour, Entity::collision_radius, desired_range, desired_speed, AI::exitStateMachineWithMessage:, flightYaw, frustration, Entity::isPlayer, Entity::isShip, Entity::mass, maxThrust, Entity::owner, performTumble, Entity::position, rangeToDestination, SCOOP_STATUS_ACTIVE, SCOOP_STATUS_FULL_HOLD, SCOOP_STATUS_NOT_INSTALLED, SCOOP_STATUS_OKAY, scoopUp:, setOwner:, PlayerEntity::setScoopsActive, setStatus:, setThrust:, Entity::status, thrust, TRACTOR_FORCE, and velocity.
Referenced by processBehaviour:.
- (void) behaviour_tumble: | (double) | delta_t |
Definition at line 4178 of file ShipEntity.m.
References applySticks:.
Referenced by processBehaviour:.
- (OOCreditsQuantity) bounty |
Reimplemented in PlayerEntity.
References availableCargoSpace, cargo, cargoListForScripting, cargoQuantityOnBoard, cargoType, commodityAmount, commodityType, int(), isTemplateCargoPod, legalStatus, and maxAvailableCargoSpace.
- (void) broadcastAIMessage: | (NSString *) | ai_message |
Definition at line 14186 of file ShipEntity.m.
References checkScanner, getAI, AI::message:, n_scanned_ships, OOExpand, and scanned_ships.
Referenced by dumpCargoItem:.
- (void) broadcastDistressMessage |
Provided by category ShipEntity(AI).
Definition at line 763 of file ShipEntityAI.m.
- (void) broadcastDistressMessageWithDumping: | (BOOL) | dumpCargo |
Provided by category ShipEntity(AI).
Definition at line 769 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::broadcastDistressMessage.
- (void) broadcastEnergyBlastImminent |
Definition at line 9484 of file ShipEntity.m.
References broadcastEnergyBlastImminent, count, doScriptEvent:withArgument:, Entity::isShip, reactToAIMessage:context:, and setFoundTarget:.
Referenced by becomeEnergyBlast, broadcastEnergyBlastImminent, and maxFlightSpeed.
- (void) broadcastHitByLaserFrom: | (ShipEntity*) | aggressor_ship |
Definition at line 14095 of file ShipEntity.m.
References bounty, doScriptEvent:withArgument:andArgument:, nil, reactToAIMessage:context:, scanClass, setFoundTarget:, and UNIVERSE.
Referenced by PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (void) broadcastMessage: | (NSString *) | message_text | |
withUnpilotedOverride: | (BOOL) | unpilotedOverride |
Definition at line 14200 of file ShipEntity.m.
References checkScanner, crew, Entity::isPlayer, messageTime, n_scanned_ships, OOExpand, PLAYER, Entity::position, PlayerEntity::receiveCommsMessage:from:, receiveCommsMessage:from:, scanned_ships, SCANNER_MAX_RANGE2, and setCommsMessageColor.
Referenced by commsMessage:withUnpilotedOverride:.
- (void) broadcastThargoidDestroyed |
Definition at line 14063 of file ShipEntity.m.
References broadcastThargoidDestroyed.
Referenced by becomeExplosion, broadcastThargoidDestroyed, and dockingInstructions.
- (HPVector) calculateTargetPosition |
Definition at line 6299 of file ShipEntity.m.
References calculateTargetPosition, kZeroHPVector, nil, Entity::position, primaryTarget, reactionTime, trackingCurveCoeffs, and trackingCurveTimes.
Referenced by calculateTargetPosition, onTarget:withWeapon:, reactionTime, trackPrimaryTarget:delta_t:, and trackSideTarget:delta_t:.
- (void) calculateTrackingCurve |
Definition at line 6363 of file ShipEntity.m.
References calculateTrackingCurve, kZeroHPVector, reactionTime, trackingCurveCoeffs, trackingCurvePositions, and trackingCurveTimes.
Referenced by calculateTrackingCurve, reactionTime, startTrackingCurve, and updateTrackingCurve.
- (BOOL) canAcceptEscort: | (ShipEntity *) | potentialEscort |
Definition at line 13688 of file ShipEntity.m.
References bounty, dockingInstructions, isEscort, and scanClass.
- (BOOL) canAddEquipment: | (NSString *) | equipmentKey | |
inContext: | (NSString *) | context |
Reimplemented in PlayerEntity.
Definition at line 3225 of file ShipEntity.m.
References OOEquipmentType::equipmentTypeWithIdentifier:, isThargoid, max_missiles, and missiles.
Referenced by ShipCanAwardEquipment().
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity.
Definition at line 2071 of file ShipEntity.m.
References canCollide, isMissile, isWreckage, shotTime, and Entity::status.
Referenced by canCollide, and doOctreesCollide.
- (BOOL) canScoop: | (ShipEntity *) | other |
Reimplemented in PlayerEntity.
Definition at line 12861 of file ShipEntity.m.
References cargo, CARGO_NOT_CARGO, cargoType, count, hasCargoScoop, Entity::isPlayer, Entity::isStation, maxAvailableCargoSpace, nil, Entity::position, scanClass, v_forward, and v_up.
Referenced by PlayerEntity::canScoop:.
- (BOOL) canStillTrackPrimaryTarget |
Definition at line 10095 of file ShipEntity.m.
References canStillTrackPrimaryTarget, nil, Entity::position, primaryTargetWithoutValidityCheck, and scannerRange.
Referenced by behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_to_target:, behaviour_attack_mining_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_close_to_broadside_range:, behaviour_close_with_target:, behaviour_fly_to_target_six:, behaviour_running_defense:, canStillTrackPrimaryTarget, maxFlightSpeed, trackPrimaryTarget:delta_t:, and trackSideTarget:delta_t:.
- (NSMutableArray *) cargo |
References cargoFlag, contractListForScripting, cruiseSpeed, desiredRange, desiredSpeed, equipmentListForScripting, missilesList, parcelListForScripting, passengerListForScripting, and showScoopMessage.
- (OOCargoFlag) cargoFlag |
Definition at line 8511 of file ShipEntity.m.
References cargo_flag, and cargoFlag.
Referenced by cargo, and cargoFlag.
- (NSArray *) cargoListForScripting |
Reimplemented in PlayerEntity.
Definition at line 8411 of file ShipEntity.m.
References cargoListForScripting, commodityAmount, commodityType, and nil.
Referenced by bounty, cargoListForScripting, and ShipGetProperty().
- (OOCargoQuantity) cargoQuantityOnBoard |
Reimplemented in PlayerEntity.
Definition at line 8388 of file ShipEntity.m.
References cargo, and cargoQuantityOnBoard.
Referenced by availableCargoSpace, bounty, and cargoQuantityOnBoard.
- (OOCargoType) cargoType |
Definition at line 8397 of file ShipEntity.m.
References cargo_type, and cargoType.
Referenced by behaviour_intercept_target:, bounty, canScoop:, cargoType, dumpItem:, and scoopUpProcess:processEvents:processMessages:.
- (BOOL) cascadeIfAppropriateWithDamageAmount: | (double) | amount | |
cascadeOwner: | (Entity *) | owner |
Definition at line 13085 of file ShipEntity.m.
References countsAsKill, fuel, Entity::isStation, MIN_FUEL, OOQuiriumCascadeEntity::quiriumCascadeFromShip:, and scanClass.
Referenced by PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1466 of file ShipEntityAI.m.
|
implementation |
Reimplemented from Entity.
Definition at line 2169 of file ShipEntity.m.
References _primaryTarget, closeContactsInfo, Entity::collider, Entity::collidingEntities, Entity::collision_radius, doOctreesCollide(), doScriptEvent:withArgument:andReactToAIMessage:, Entity::isShip, nil, Entity::position, trackCloseContacts, Entity::universalID, v_forward, v_right, v_up, and OOWeakRefObject::weakRetain.
Referenced by CollisionRegion::findCollisions.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1447 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1777 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1511 of file ShipEntityAI.m.
- (OOAegisStatus) checkForAegis |
Definition at line 7711 of file ShipEntity.m.
References AEGIS_CLOSE_TO_ANY_PLANET, AEGIS_CLOSE_TO_MAIN_PLANET, AEGIS_IN_DOCKING_RANGE, AEGIS_NONE, aegis_status, checkForAegis, doScriptEvent:withArgument:, EXPECT, EXPECT_NOT, findNearestStellarBody, isNearPlanetSurface, Entity::isSun, lastAegisLock, AI::message:, nil, Entity::position, AI::reactToMessage:context:, SCANNER_MAX_RANGE2, setLastAegisLock:, STELLAR_TYPE_MOON, suppressAegisMessages, transitionToAegisNone, and UNIVERSE.
Referenced by checkForAegis, PlayerEntity::leaveDock:, reportAIMessages, PlayerEntity::setNextCompassMode, PlayerEntity::setPrevCompassMode, update:, and PlayerEntity::validateCompassTarget.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1167 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2066 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2481 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2745 of file ShipEntityAI.m.
Referenced by ShipEntity(PureAI)::requestNewTarget, ShipEntity(AI)::scanForHostiles, ShipEntity(PureAI)::scanForLoot, ShipEntity(PureAI)::scanForNearestMerchantman, ShipEntity(OOAIPrivate)::scanForNearestShipWithPredicate:parameter:, ShipEntity(PureAI)::scanForNonThargoid, ShipEntity(PureAI)::scanForOffenders, and ShipEntity(PureAI)::scanForRocks.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1859 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1531 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1391 of file ShipEntityAI.m.
- (void) checkScanner |
Definition at line 9819 of file ShipEntity.m.
References checkScanner, distance2_scanned_ships, isCloaked, Entity::isShip, MAX_SCAN_NUMBER, n_scanned_ships, nil, Entity::position, scanned_ships, scannerRange, Entity::z_next, and Entity::z_previous.
Referenced by broadcastAIMessage:, broadcastMessage:withUnpilotedOverride:, checkScanner, ShipEntity(PureAI)::findNewDefenseTarget, maxFlightSpeed, ShipEntity(PureAI)::requestNewTarget, ShipEntity(AI)::scanForHostiles, ShipEntity(PureAI)::scanForLoot, ShipEntity(OOAIPrivate)::scanForNearestShipWithPredicate:parameter:, ShipEntity(PureAI)::scanForNonThargoid, ShipEntity(PureAI)::scanForOffenders, ShipEntity(PureAI)::scanForRandomLoot, and ShipEntity(PureAI)::scanForRocks.
- (void) checkScannerIgnoringUnpowered |
Definition at line 9854 of file ShipEntity.m.
References checkScannerIgnoringUnpowered, distance2_scanned_ships, isCloaked, Entity::isShip, MAX_SCAN_NUMBER, n_scanned_ships, nil, Entity::position, Entity::scanClass, scanned_ships, scannerRange, Entity::z_next, and Entity::z_previous.
Referenced by ShipEntity(AI)::broadcastDistressMessageWithDumping:, checkScannerIgnoringUnpowered, dumpCargoItem:, ShipEntity(PureAI)::fightOrFleeMissile, getTractoredBy:, maxFlightSpeed, ShipEntity(PureAI)::scanForFormationLeader, ShipEntity(PureAI)::scanForNearestMerchantman, ShipEntity(PureAI)::scanForRandomMerchantman, and scoopUpProcess:processEvents:processMessages:.
- (int) checkShipsInVicinityForWitchJumpExit |
Definition at line 14343 of file ShipEntity.m.
References checkShipsInVicinityForWitchJumpExit, int(), Entity::isPlayer, Entity::isShip, Entity::mass, NO_TARGET, PLAYER, Entity::position, SCANNER_MAX_RANGE2, Entity::universalID, and UNIVERSE.
Referenced by checkShipsInVicinityForWitchJumpExit, ShipEntity(OOAIPrivate)::performHyperSpaceExitReplace:toSystem:, sunGlareFilter, and PlayerEntity::witchJumpChecklist:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1360 of file ShipEntityAI.m.
- (void) clearSubEntities |
Definition at line 1155 of file ShipEntity.m.
References _profileRadius, clearSubEntities, Entity::collision_radius, OOEntityWithDrawable::findCollisionRadius, Entity::mass, nil, octree, shipInfoDictionary, subEntities, and volume.
Referenced by becomeExplosion, becomeLargeExplosion:, clearSubEntities, dealloc, PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, PlayerEntity::setUpAndConfirmOK:saveGame:, ShipRestoreSubEntities(), subEntities, and PlayerEntity(OOPrivate)::tryBuyingItem:.
- (void) collectBountyFor: | (ShipEntity *) | other |
Reimplemented in PlayerEntity.
Definition at line 9687 of file ShipEntity.m.
References isPolice, and markAsOffender:withReason:.
Referenced by noteTargetDestroyed:.
- (BOOL) collideWithShip: | (ShipEntity *) | other |
Reimplemented in StationEntity.
Definition at line 12676 of file ShipEntity.m.
References Entity::absolutePositionForSubentity, adjustVelocity:, Entity::collisionArray, doScriptEvent:withArgument:andReactToAIMessage:, Entity::energy, isFrangible, kZeroVector, Entity::mass, nil, NO_TARGET, Entity::parentEntity, Entity::position, scoopIn:, Entity::setPosition:, takeScrapeDamage:from:, Entity::universalID, velocity, and Entity::velocity.
Referenced by StationEntity::collideWithShip:, and manageCollisions.
- (BOOL) collisionExceptedFor: | (ShipEntity *) | ship |
Definition at line 11148 of file ShipEntity.m.
References _collisionExceptions, OOWeakSet::containsObject:, and nil.
- (NSArray *) collisionExceptions |
Definition at line 11118 of file ShipEntity.m.
References _collisionExceptions, OOWeakSet::allObjects, collisionExceptions, and nil.
Referenced by collisionExceptions, isMissile, and ShipGetProperty().
- (OOCargoQuantity) commodityAmount |
Definition at line 8362 of file ShipEntity.m.
References commodity_amount, and commodityAmount.
Referenced by bounty, PlayerEntity::cargoListForScripting, cargoListForScripting, PlayerEntity::cargoQuantityForType:, PlayerEntity::collectBountyFor:, commodityAmount, PlayerEntity::setGuiToMarketInfoScreen, PlayerEntity::setGuiToMarketScreen, PlayerEntity::unloadAllCargoPodsForType:toManifest:, and PlayerEntity::unloadCargoPodsForType:amount:.
- (OOCommodityType) commodityType |
Definition at line 8356 of file ShipEntity.m.
References commodity_type, and commodityType.
Referenced by bounty, PlayerEntity::cargoListForScripting, cargoListForScripting, Universe::cargoPodFromTemplate:, PlayerEntity::cargoQuantityForType:, commodityType, dumpCargo, dumpCargoItem:, removeCargo:amount:, PlayerEntity::rotateCargo, scoopUpProcess:processEvents:processMessages:, PlayerEntity::setGuiToMarketInfoScreen, PlayerEntity::setGuiToMarketScreen, ShipGetProperty(), PlayerEntity::takeInternalDamage, PlayerEntity::unloadAllCargoPodsForType:toManifest:, PlayerEntity::unloadCargoPodsForType:amount:, and OOTrumble::updateTrumble:.
|
implementation |
Reimplemented in PlayerEntity.
Provided by category ShipEntity(PureAI).
Definition at line 1665 of file ShipEntityAI.m.
- (void) commsMessage: | (NSString *) | valueString | |
withUnpilotedOverride: | (BOOL) | unpilotedOverride |
Definition at line 14247 of file ShipEntity.m.
References Random_Seed::a, Random_Seed::b, broadcastMessage:withUnpilotedOverride:, Random_Seed::c, Random_Seed::d, Random_Seed::e, Random_Seed::f, and seed_RNG_only_for_planet_description().
Referenced by ShipEntity(PureAI)::commsMessage:, ShipEntity(PureAI)::commsMessageByUnpiloted:, and ShipCommsMessage().
|
implementation |
Reimplemented in PlayerEntity.
Provided by category ShipEntity(PureAI).
Definition at line 1671 of file ShipEntityAI.m.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 9696 of file ShipEntity.m.
References beaconCode.
|
implementation |
Definition at line 7619 of file ShipEntity.m.
References Entity::position, and SurfaceDistanceSqaredV.
- (void) considerFiringMissile: | (double) | delta_t |
Definition at line 12132 of file ShipEntity.m.
References Entity::energy, fireMissile, Entity::maxEnergy, missiles, and ranrot_rand.
Referenced by behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_flee_target:, and behaviour_fly_to_target_six:.
- (NSArray *) contractListForScripting |
Reimplemented in PlayerEntity.
Definition at line 3322 of file ShipEntity.m.
References contractListForScripting.
Referenced by cargo, contractListForScripting, and ShipGetProperty().
- (HPVector) coordinates |
References abandonShip, abortDocking, activateCloakingDevice, approachAspectToPrimaryTarget, currentAimTolerance, deactivateCloakingDevice, deployEscorts, destination, dockEscorts, dockingInstructions, dumpCargo, enterWitchspace, exhaustEmissiveColor, fireDirectLaserDefensiveShot, fireECM, fireMissile, int(), isMissileFlagSet, landOnPlanet, laserColor, launchCascadeMine, launchEscapeCapsule, leaveWitchspace, lightsActive, manageCollisions, missedShots, missileLaunchPosition, missileLoadTime, noticeECM, rangeToPrimaryTarget, resetShotTime, setTargetToNearestFriendlyStation, setTargetToNearestStation, setTargetToSystemStation, shotTime, switchLightsOff, switchLightsOn, and witchspaceLeavingEffects.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 13821 of file ShipEntity.m.
References MAX_ESCORTS, MIN, quaternion_rotate_vector(), and self.
Referenced by setUpEscorts, ShipEntity(Private)::setUpMixedEscorts, and update:.
- (NSUInteger) countEquipmentItem: | (NSString *) | eqkey |
Definition at line 3092 of file ShipEntity.m.
References _equipment, count, and nil.
Referenced by PlayerEntity::commanderDataDictionary, PlayerEntity::equipmentList, equipmentListForScripting, and ShipEquipmentStatus().
- (BOOL) countsAsKill |
Definition at line 1685 of file ShipEntity.m.
References countsAsKill, and shipInfoDictionary.
Referenced by cascadeIfAppropriateWithDamageAmount:cascadeOwner:, PlayerEntity::collectBountyFor:, countsAsKill, and findBoundingBoxRelativeToPosition:InVectors:i:j:.
- (NSArray *) crew |
- (NSArray *) crewForScripting |
Definition at line 7978 of file ShipEntity.m.
References crew, crewForScripting, OOCharacter::infoForScripting, and nil.
Referenced by crew, crewForScripting, and ShipGetProperty().
- (double) cruiseSpeed |
- (GLfloat) currentAimTolerance |
Definition at line 11285 of file ShipEntity.m.
References accuracy, aim_tolerance, COMBAT_AI_ISNT_AWFUL, COMBAT_AI_TRACKS_CLOSER, currentAimTolerance, currentWeaponFacing, Entity::isSunlit, lookingAtSunWithThresholdAngleCos:, missedShots, Entity::position, randf(), sunGlareFilter, WEAPON_FACING_AFT, WEAPON_FACING_PORT, and WEAPON_FACING_STARBOARD.
Referenced by coordinates, currentAimTolerance, onTarget:withWeapon:, trackPrimaryTarget:delta_t:, and trackSideTarget:delta_t:.
- (OOWeaponFacing) currentWeaponFacing |
References scannerRange.
- (int) damage |
Definition at line 8833 of file ShipEntity.m.
References damage, Entity::energy, int(), and Entity::maxEnergy.
Referenced by damage, dealEnergyDamage:atRange:withBias:, dealEnergyDamageWithinDesiredRange, maxFlightSpeed, and OOExhaustPlumeEntity::update:.
- (void) deactivateCloakingDevice |
Reimplemented in PlayerEntity.
Definition at line 12375 of file ShipEntity.m.
References cloaking_device_active, deactivateCloakingDevice, doScriptEvent:, and hasCloakingDevice.
Referenced by coordinates, PlayerEntity::deactivateCloakingDevice, deactivateCloakingDevice, fireMissileWithIdentifier:andTarget:, fireWeapon:direction:range:, launchCascadeMine, setCloaked:, and update:.
- (void) dealEnergyDamage: | (GLfloat) | baseDamage | |
atRange: | (GLfloat) | range | |
withBias: | (GLfloat) | velocityBias |
Definition at line 8839 of file ShipEntity.m.
References Entity::collisionRadius, count, damage, OOExplosionCloudEntity::explosionCloudFromEntity:withSize:andSettings:, OOLog, Entity::owner, primaryRole, SCANNER_MAX_RANGE, Entity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, Entity::vectorTo:, and velocity.
Referenced by ShipDealEnergyDamage().
- (void) dealEnergyDamageWithinDesiredRange |
Definition at line 8912 of file ShipEntity.m.
References Entity::collisionRadius, count, damage, dealEnergyDamageWithinDesiredRange, desired_range, OOStandardsDeprecated(), Entity::owner, primaryRole, Entity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, Entity::vectorTo:, and weapon_damage.
Referenced by dealEnergyDamageWithinDesiredRange, and maxFlightSpeed.
|
implementation |
Reimplemented from OOEntityWithDrawable.
Reimplemented in DockEntity, PlayerEntity, and StationEntity.
Definition at line 1073 of file ShipEntity.m.
References _beaconCode, _beaconDrawable, _beaconLabel, _collisionExceptions, _defenseTargets, _escortGroup, _group, _lastAegisLock, _shipKey, aftWeaponOffset, aiScript, cargo, clearSubEntities, commodity_type, crew, OOEntityWithDrawable::dealloc, dealloc, default_laser_color, DESTROY, displayName, dockingInstructions, exhaust_emissive_color, explosionType, forwardWeaponOffset, laser_color, lastRadioMessage, name, nil, octree, Entity::parentEntity, portWeaponOffset, previousCondition, primaryRole, removeAllEquipment, OOShipGroup::removeShip:, roleSet, scan_description, scanner_display_color1, scanner_display_color2, scanner_display_color_hostile1, scanner_display_color_hostile2, script, setSubEntityTakingDamage:, setTrackCloseContacts:, shipAI, shipClassName, shipinfoDictionary, ShipScriptEventNoCx, shipUniqueName, starboardWeaponOffset, subEntityReallyDied:, OOWeakReference::weakRefDrop, and OOWeakRefObject::weakSelf.
Referenced by DockEntity::dealloc, PlayerEntity::dealloc, dealloc, and StationEntity::dealloc.
- (void) dealMomentumWithinDesiredRange: | (double) | amount |
Definition at line 8933 of file ShipEntity.m.
References addImpactMoment:fraction:, Entity::collisionRadius, count, desired_range, Entity::isInSpace, Entity::isShip, and Entity::vectorTo:.
Referenced by becomeExplosion.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 890 of file ShipEntityAI.m.
|
implementation |
Reimplemented from Entity.
Provided by category ShipEntity(OOShipDebugInspectorModule).
Definition at line 158 of file OOShipDebugInspectorModule.m.
- (void) decrease_flight_pitch: | (double) | delta |
Definition at line 8675 of file ShipEntity.m.
References flightPitch, and max_flight_pitch.
Referenced by PlayerShipSetProperty(), PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
- (void) decrease_flight_roll: | (double) | delta |
Definition at line 8655 of file ShipEntity.m.
References flightRoll, and max_flight_roll.
Referenced by PlayerShipSetProperty(), PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
- (void) decrease_flight_speed: | (double) | delta |
Definition at line 8626 of file ShipEntity.m.
References flightSpeed, maxFlightSpeed, and MIN_HYPERSPEED_FACTOR.
Referenced by applyThrust:.
- (void) decrease_flight_yaw: | (double) | delta |
Definition at line 8695 of file ShipEntity.m.
References flightYaw, and max_flight_yaw.
Referenced by PlayerShipSetProperty(), PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
- (NSUInteger) defenseTargetCount |
Definition at line 11159 of file ShipEntity.m.
References OOWeakSet::count, and defenseTargetCount.
Referenced by addDefenseTarget:, defenseTargetCount, isMissile, and ShipGetProperty().
- (NSEnumerator *) defenseTargetEnumerator |
Definition at line 11171 of file ShipEntity.m.
References defenseTargetEnumerator, and OOWeakSet::objectEnumerator.
Referenced by behaviour_track_as_turret:, defenseTargetEnumerator, fireDirectLaserDefensiveShot, isMissile, and ShipGetProperty().
- (void) deployEscorts |
Definition at line 13840 of file ShipEntity.m.
References _escortGroup, addTarget:, OOShipGroup::count, deployEscorts, doScriptEvent:withArgument:, doScriptEvent:withArgument:andArgument:, escortCount, escortEnumerator, escortGroup, getAI, group, hasNewAI, lastEscortTarget, name, nil, primaryTarget, ranrot_rand, setAITo:, setGroup:, setLastEscortTarget:, and updateEscortFormation.
Referenced by coordinates, deployEscorts, ShipEntity(PureAI)::fightOrFleeHostiles, and ShipDeployEscorts().
|
implementation |
Reimplemented from Entity.
Reimplemented in StationEntity.
Definition at line 1181 of file ShipEntity.m.
References behaviour, Entity::descriptionComponents, descriptionComponents, Entity::isSubEntity, name, nil, and Entity::position.
Referenced by descriptionComponents, and StationEntity::descriptionComponents.
|
implementation |
Reimplemented from Entity.
Definition at line 14841 of file ShipEntity.m.
References Entity::descriptionForObjDump, descriptionForObjDump, getAI, Entity::isPlayer, Entity::mass, and AI::shortDescriptionComponents.
Referenced by descriptionForObjDump.
- (void) deserializeShipSubEntitiesFrom: | (NSString *) | string |
Definition at line 833 of file ShipEntity.m.
References nil, Entity::setEnergy:, setSuppressExplosion:, shipSubEntityEnumerator, subIdx, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
Referenced by PlayerEntity::setCommanderDataFromDictionary:, and PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:.
- (double) desiredRange |
Definition at line 8596 of file ShipEntity.m.
References desired_range, and desiredRange.
Referenced by cargo, and desiredRange.
- (double) desiredSpeed |
Definition at line 8590 of file ShipEntity.m.
References desired_speed, and desiredSpeed.
Referenced by cargo, and desiredSpeed.
- (HPVector) destination |
Definition at line 10260 of file ShipEntity.m.
References _destination, and destination.
Referenced by coordinates, destination, PlayerEntity::enterWormhole:, and Universe::update:.
- (OOSystemID) destinationSystem |
Definition at line 7911 of file ShipEntity.m.
References destination_system, and destinationSystem.
Referenced by destinationSystem, and reportAIMessages.
|
implementation |
Reimplemented in PlayerEntity.
Provided by category ShipEntity(PureAI).
Definition at line 1641 of file ShipEntityAI.m.
Referenced by removeEquipmentItem:.
- (NSString *) displayName |
References roleSet, scanDescription, and scanDescriptionForScripting.
- (HPVector) distance_six: | (GLfloat) | dist |
Definition at line 10275 of file ShipEntity.m.
References Entity::position, and v_forward.
- (HPVector) distance_twelve: | (GLfloat) | dist | |
withOffset: | (GLfloat) | offset |
Definition at line 10283 of file ShipEntity.m.
References Entity::position, v_right, and v_up.
- (void) dockEscorts |
Definition at line 13900 of file ShipEntity.m.
References _escortGroup, dockEscorts, doScriptEvent:withArgument:, escortArray, escortGroup, getAI, group, hasEscorts, hasNewAI, Entity::isStation, nil, Entity::owner, primaryTarget, setAITo:, setGroup:, setOwner:, AI::setState:afterDelay:, and setTargetStation:.
Referenced by coordinates, dockEscorts, and ShipDockEscorts().
- (NSDictionary *) dockingInstructions |
References broadcastThargoidDestroyed, and sunGlareFilter.
- (GLfloat) doesHitLine: | (HPVector) | ||
v0: | (HPVector) | v1 |
Definition at line 1442 of file ShipEntity.m.
References Entity::position, v_forward, v_right, and v_up.
- (GLfloat) doesHitLine: | (HPVector) | ||
v0: | (HPVector) | ||
v1: | (ShipEntity**) | hitEntity |
Reimplemented in PlayerEntity.
Definition at line 1452 of file ShipEntity.m.
References absoluteIJKForSubentity, Entity::absolutePositionForSubentity, nil, Entity::position, shipSubEntityEnumerator, v_forward, v_right, and v_up.
- (GLfloat) doesHitLine: | (HPVector) | ||
v0: | (HPVector) | v1 | |
withPosition: | (HPVector) | o | |
andIJK: | (Vector) | ||
i: | (Vector) | ||
j: | (Vector) | k |
Definition at line 1493 of file ShipEntity.m.
|
implementation |
Definition at line 14834 of file ShipEntity.m.
References doNothing.
Referenced by doNothing.
|
implementation |
Definition at line 2093 of file ShipEntity.m.
References absoluteIJKForSubentity, Entity::absolutePositionForSubentity, canCollide, doOctreesCollide(), isHitByOctree(), Entity::isShip, nil, octree, and subEntities.
- (void) doScriptEvent: | (jsid) | message |
Definition at line 14631 of file ShipEntity.m.
References doScriptEvent:inContext:withArguments:count:, OOJSAcquireContext(), and OOJSRelinquishContext().
Referenced by DockEntity::abortAllDockings, StationEntity::abortAllDockings, StationEntity::abortDockingForShip:, StationEntity::acceptDockingClearanceRequestFrom:, activateCloakingDevice, Universe::allShipsDoScriptEvent:andReactToAIMessage:, StationEntity::autoDockShipsOnApproach, behaviour_face_destination:, behaviour_fly_from_destination:, behaviour_fly_to_destination:, behaviour_intercept_target:, PlayerEntity::cancelDockingRequest:, PlayerEntity(Controls)::cancelWitchspaceCountdown, deactivateCloakingDevice, PlayerEntity::disengageAutopilot, WormholeEntity::disgorgeShips, PlayerEntity::doBookkeeping:, doScriptEvent:andReactToAIMessage:, PlayerEntity::interpretAIMessage:, PlayerEntity::performDockingRequest:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, DockEntity::pruneAndCountShipsOnApproach, StationEntity::sanityCheckShipsOnApproach, ShipEntity(PureAI)::sendScriptMessage:, WormholeEntity::suckInShip:, update:, and StationEntity::update:.
- (void) doScriptEvent: | (jsid) | scriptEvent | |
andReactToAIMessage: | (NSString *) | aiMessage |
Definition at line 14729 of file ShipEntity.m.
References doScriptEvent:, and reactToAIMessage:context:.
Referenced by behaviour_fly_thru_navpoints:, WormholeEntity::disgorgeShips, takeEnergyDamage:from:becauseOf:weaponIdentifier:, takeHeatDamage:, and takeScrapeDamage:from:.
- (void) doScriptEvent: | (jsid) | message | |
inContext: | (JSContext *) | context | |
withArguments: | (jsval *) | argv | |
count: | (uintN) | argc |
Reimplemented in PlayerEntity.
Definition at line 14709 of file ShipEntity.m.
References OOJSScript::callMethod:inContext:withArguments:count:result:.
Referenced by doScriptEvent:, PlayerEntity::doScriptEvent:inContext:withArguments:count:, doScriptEvent:withArgument:, doScriptEvent:withArgument:andArgument:, doScriptEvent:withArguments:, and doScriptEvent:withArguments:count:.
- (void) doScriptEvent: | (jsid) | message | |
withArgument: | (id) | argument |
Definition at line 14639 of file ShipEntity.m.
References doScriptEvent:inContext:withArguments:count:, OOJSAcquireContext(), OOJSRelinquishContext(), and OOJSValueFromNativeObject().
Referenced by acceptAsEscort:, StationEntity::acceptDockingClearanceRequestFrom:, addEquipmentItem:withValidation:inContext:, addTarget:, broadcastEnergyBlastImminent, Universe::carryPlayerOn:inWormhole:, checkForAegis, deployEscorts, PlayerEntity::docked, dockEscorts, StationEntity::dockingInstructionsForShip:, doScriptEvent:withArgument:andReactToAIMessage:, dumpItem:, PlayerEntity::engageAutopilotToStation:, PlayerEntity::enterDock:, enterDock:, ShipEntity(PureAI)::fightOrFleeMissile, fireMissileWithIdentifier:andTarget:, fireSubentityLaserShot:, PlayerEntity::launchEscapeCapsule, PlayerEntity::launchMine:, DockEntity::launchShip:, PlayerEntity::leaveWitchspace, StationEntity::noteDockedShip:, ShipEntity(Private)::noteFrustration:, noteLostTarget, noteTargetDestroyed:, PlayerEntity::performDockingRequest:, ShipEntity(OOAIPrivate)::performHyperSpaceExitReplace:toSystem:, PlayerEntity(OOPrivate)::performLaunchingUpdates:, PlayerEntity(OOPrivate)::performWitchspaceExitUpdates:, PlayerReplaceShip(), PlayerShipSetProperty(), PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, removeEquipmentItem:, PlayerEntity(Contracts)::replaceShipWithNamedShip:, respondToAttackFrom:becauseOf:, scoopUpProcess:processEvents:processMessages:, ShipEntity(PureAI)::sendScriptMessage:, PlayerEntity(ScriptMethods)::setMissionChoice:keyPress:withEvent:, ShipEntity(PureAI)::setTargetToPrimaryAggressor, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, Universe::setUpUniverseFromStation, ShipAwardEquipment(), DockEntity::shipIsInDockingCorridor:, ShipRemove(), ShipSetEquipmentStatus(), ShipEntity(AI)::suggestEscortTo:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeInternalDamage, transitionToAegisNone, PlayerEntity(OOPrivate)::tryBuyingItem:, update:, PlayerEntity(OOPrivate)::updateClocks:, ShipEntity(AI)::wormholeEscorts, and ShipEntity(PureAI)::wormholeGroup.
- (void) doScriptEvent: | (jsid) | message | |
withArgument: | (id) | argument1 | |
andArgument: | (id) | argument2 |
Definition at line 14650 of file ShipEntity.m.
References doScriptEvent:inContext:withArguments:count:, OOJSAcquireContext(), OOJSRelinquishContext(), and OOJSValueFromNativeObject().
Referenced by ShipEntity(AI)::broadcastDistressMessageWithDumping:, broadcastHitByLaserFrom:, deployEscorts, dumpCargoItem:, fireMissileWithIdentifier:andTarget:, ShipEntity(AI)::groupAttackTarget, launchEscapeCapsule, PlayerReplaceShip(), PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, and receiveCommsMessage:from:.
- (void) doScriptEvent: | (jsid) | scriptEvent | |
withArgument: | (id) | argument | |
andReactToAIMessage: | (NSString *) | aiMessage |
Definition at line 14736 of file ShipEntity.m.
References doScriptEvent:withArgument:, and reactToAIMessage:context:.
Referenced by checkCloseCollisionWith:, collideWithShip:, landOnPlanet:, DockEntity::launchShip:, respondToAttackFrom:becauseOf:, and update:.
- (void) doScriptEvent: | (jsid) | message | |
withArguments: | (NSArray *) | arguments |
Definition at line 14663 of file ShipEntity.m.
References count, doScriptEvent:inContext:withArguments:count:, OOJSAcquireContext(), OOJSAddGCValueRoot, and OOJSRelinquishContext().
Referenced by PlayerEntity(Contracts)::addParcel:start:destination:eta:fee:premium:risk:, PlayerEntity(Contracts)::addPassenger:start:destination:eta:fee:advance:risk:, PlayerEntity(Contracts)::awardContract:commodity:start:destination:eta:fee:premium:, PlayerEntity(Controls)::beginWitchspaceCountdown:, PlayerEntity::buySelectedItem, PlayerEntity(Contracts)::buySelectedShip, PlayerEntity(Contracts)::checkPassengerContracts, PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(Contracts)::processEscapePods, PlayerEntity::tryBuyingCommodity:all:, PlayerEntity::trySellingCommodity:all:, and PlayerEntity::validateCompassTarget.
- (void) doScriptEvent: | (jsid) | message | |
withArguments: | (jsval *) | argv | |
count: | (uintN) | argc |
Definition at line 14701 of file ShipEntity.m.
References doScriptEvent:inContext:withArguments:count:, OOJSAcquireContext(), and OOJSRelinquishContext().
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 6427 of file ShipEntity.m.
References ShipEntity(Private)::drawDebugStuff, foundTarget, nil, OODebugDrawColoredLine(), OODebugDrawPoint(), primaryTarget, and targetStation.
Referenced by ShipEntity(Private)::drawDebugStuff, and drawImmediate:translucent:.
|
implementation |
Reimplemented from OOEntityWithDrawable.
Reimplemented in DockEntity, and PlayerEntity.
Definition at line 6386 of file ShipEntity.m.
References Entity::boundingBox, Entity::cam_zero_distance, cloaking_device_active, DEBUG_BOUNDING_BOXES, drawDebugStuff, OOEntityWithDrawable::drawImmediate:translucent:, Entity::drawSubEntityImmediate:translucent:, gDebugFlags, Entity::isSubEntity, nil, Entity::no_draw_distance, OODebugDrawBoundingBox(), OODebugDrawColoredBoundingBox(), Entity::owner, randf(), subEntities, subEntityCount, and totalBoundingBox.
Referenced by DockEntity::drawImmediate:translucent:, PlayerEntity::drawImmediate:translucent:, and drawSubEntityImmediate:translucent:.
|
implementation |
Reimplemented from Entity.
Definition at line 6458 of file ShipEntity.m.
References Entity::boundingBox, Entity::cam_zero_distance, DEBUG_BOUNDING_BOXES, drawImmediate:translucent:, gDebugFlags, Entity::no_draw_distance, OODebugDrawBoundingBox(), OOGLMultModelView(), OOGLPopModelView(), OOGLPushModelView(), OOGLTranslateModelView(), OOVerifyOpenGLState, Entity::position, and Entity::rotMatrix.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 875 of file ShipEntityAI.m.
- (OOCommodityType) dumpCargo |
Reimplemented in PlayerEntity.
Definition at line 12487 of file ShipEntity.m.
References commodityType, dumpCargo, dumpCargoItem:, and nil.
Referenced by coordinates, PlayerEntity::dumpCargo, dumpCargo, and ShipEntity(PureAI)::ejectCargo.
- (ShipEntity *) dumpCargoItem: | (OOCommodityType) | preferred |
Definition at line 12501 of file ShipEntity.m.
References broadcastAIMessage:, cargo, cargo_dump_time, checkScannerIgnoringUnpowered, commodityType, count, doScriptEvent:withArgument:andArgument:, dumpItem:, n_scanned_ships, nil, scanned_ships, and UNIVERSE.
Referenced by dumpCargo.
- (OOCargoType) dumpItem: | (ShipEntity*) | jetto |
Definition at line 12552 of file ShipEntity.m.
References Entity::absolutePositionForSubentity, Entity::boundingBox, cargo_dump_time, cargoType, Entity::collision_radius, crew, doScriptEvent:withArgument:, AI::exitStateMachineWithMessage:, EXPECT_NOT, flightSpeed, getAI, Entity::isPlayer, kBasisZVector, kIdentityQuaternion, Entity::mass, maxThrust, nil, Entity::normalOrientation, quaternion_rotate_vector(), quaternion_rotation_between(), quaternion_set_random(), randf(), randomEjectaTemperature, ranrot_rand, Entity::setOrientation:, setOwner:, setPitch:, Entity::setPosition:, setRoll:, Entity::setScanClass:, setTemperature:, setThrust:, Entity::setVelocity:, v_forward, and velocity.
Referenced by dumpCargoItem:, ShipEntity(ScriptMethods)::ejectShipOfRole:, ShipEntity(ScriptMethods)::ejectShipOfType:, PlayerEntity::launchMine:, and ShipEntity(Private)::launchPodWithCrew:.
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity, and StationEntity.
Definition at line 14501 of file ShipEntity.m.
References _destination, accuracy, ADD_FLAG_IF_SET, beaconCode, behaviour, being_fined, being_mined, canFragment, cloaking_device_active, coordinates, desired_speed, displayName, docking_match_rotation, Entity::dumpSelfState, dumpSelfState, AI::dumpState, escortCount, frustration, fuel, fuel_accumulator, heatInsulation, isBeacon, isFrangible, isHulk, isNearPlanetSurface, jink, military_jammer_active, missiles, name, nil, number_of_navpoints, OOLog, OOLogIndent(), OOLogPopIndent(), OOLogPushIndent(), OOLogWillDisplayMessagesInClass(), OOStringFromBehaviour(), pitching_over, primaryRole, primaryTarget, proximityAlert, reportAIMessages, roleSet, script, ship_temperature, shipAI, shipDataKey, shot_counter, shotTime, Entity::spawnTime, subEntityCount, success_factor, thrust, Entity::timeElapsedSinceSpawn, and trackCloseContacts.
Referenced by PlayerEntity::dumpSelfState, dumpSelfState, and StationEntity::dumpSelfState.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1677 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::broadcastDistressMessageWithDumping:.
- (ShipEntity *) ejectShipOfRole: | (NSString *) | role |
Provided by category ShipEntity(ScriptMethods).
Definition at line 50 of file ShipEntityScriptMethods.m.
- (ShipEntity *) ejectShipOfType: | (NSString *) | shipKey |
Provided by category ShipEntity(ScriptMethods).
Definition at line 36 of file ShipEntityScriptMethods.m.
Referenced by PlayerEntity(Scripting)::ejectItem:.
- (float) energyRechargeRate |
Definition at line 7502 of file ShipEntity.m.
References energy_recharge_rate, and energyRechargeRate.
Referenced by PlayerEntity::doBookkeeping:, energyRechargeRate, OOShipLibraryGenerator(), and weaponRange.
- (void) enterDock: | (StationEntity *) | station |
Reimplemented in PlayerEntity.
Definition at line 13458 of file ShipEntity.m.
References dockingInstructions, doScriptEvent:withArgument:, AI::message:, nil, and StationEntity::noteDockedShip:.
Referenced by DockEntity(OOPrivate)::pullInShipIfPermitted:, and StationEntity(OOPrivate)::pullInShipIfPermitted:.
- (void) enterPlayerWormhole |
Provided by category ShipEntity(AI).
Definition at line 634 of file ShipEntityAI.m.
- (void) enterTargetWormhole |
Provided by category ShipEntity(AI).
Definition at line 639 of file ShipEntityAI.m.
Referenced by Universe::forceWitchspaceEntries.
- (void) enterWitchspace |
Reimplemented in PlayerEntity.
Definition at line 13524 of file ShipEntity.m.
References enterWitchspace, AI::message:, primaryRole, and UNIVERSE.
Referenced by coordinates, and enterWitchspace.
- (void) enterWormhole: | (WormholeEntity *) | w_hole |
Reimplemented in PlayerEntity.
Definition at line 13485 of file ShipEntity.m.
References enterWormhole:replacing:.
Referenced by manageCollisions.
- (void) enterWormhole: | (WormholeEntity *) | w_hole | |
replacing: | (BOOL) | replacing |
Definition at line 13491 of file ShipEntity.m.
References addTarget:, count, escortArray, nil, AI::reactToMessage:context:, scriptedMisjump, scriptedMisjumpRange, setFoundTarget:, WormholeEntity::setMisjumpWithRange:, setScriptedMisjump:, setScriptedMisjumpRange:, Entity::status, WormholeEntity::suckInShip:, and wormholeEscorts.
Referenced by ShipEntity(AI)::enterPlayerWormhole, ShipEntity(AI)::enterTargetWormhole, enterWormhole:, manageCollisions, and ShipEntity(OOAIPrivate)::performHyperSpaceExitReplace:toSystem:.
- (Entity *) entityForShaderProperties |
Definition at line 14601 of file ShipEntity.m.
References entityForShaderProperties, and Entity::rootShipEntity.
Referenced by entityForShaderProperties, and scriptInfo.
- (GLfloat) entityPersonality |
Definition at line 9766 of file ShipEntity.m.
References entity_personality, ENTITY_PERSONALITY_MAX, and entityPersonality.
Referenced by entityPersonality, and maxFlightSpeed.
- (GLint) entityPersonalityInt |
Definition at line 9772 of file ShipEntity.m.
References entity_personality, and entityPersonalityInt.
Referenced by DockEntity(OOPrivate)::addShipToShipsOnApproach:, entityPersonalityInt, maxFlightSpeed, PlayerEntity::setGuiToStatusScreen, and setUpOneStandardSubentity:asTurret:.
- (NSUInteger) equipmentCount |
Definition at line 3636 of file ShipEntity.m.
References equipmentCount.
Referenced by equipmentCount, and isFrangible.
- (NSEnumerator *) equipmentEnumerator |
Definition at line 3630 of file ShipEntity.m.
References equipmentEnumerator.
Referenced by PlayerEntity::commanderDataDictionary, equipmentEnumerator, isFrangible, ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, and PlayerEntity::takeInternalDamage.
- (NSString *) equipmentItemProviding: | (NSString *) | equipmentType |
Definition at line 3159 of file ShipEntity.m.
References _equipment, OOEquipmentType::equipmentTypeWithIdentifier:, and nil.
Referenced by abandonShip, PlayerEntity::enterGalacticWitchspace, and PlayerEntity::launchEscapeCapsule.
- (NSArray *) equipmentListForScripting |
Definition at line 3351 of file ShipEntity.m.
References OOEquipmentType::allEquipmentTypes, count, countEquipmentItem:, equipmentListForScripting, OOEquipmentType::equipmentTypeWithIdentifier:, hasEquipmentItem:, OOEquipmentType::identifier, nil, and passengerCapacity.
Referenced by cargo, equipmentListForScripting, and ShipGetProperty().
- (BOOL) equipmentValidToAdd: | (NSString *) | equipmentKey | |
inContext: | (NSString *) | context |
Definition at line 3395 of file ShipEntity.m.
References equipmentValidToAdd:whileLoading:inContext:.
- (BOOL) equipmentValidToAdd: | (NSString *) | equipmentKey | |
whileLoading: | (BOOL) | loading | |
inContext: | (NSString *) | context |
Definition at line 3401 of file ShipEntity.m.
References availableCargoSpace, OOJSScript::callMethod:inContext:withArguments:count:result:, OOEquipmentType::conditionScript, OOEquipmentType::equipmentTypeWithIdentifier:, fuel, fuelCapacity, Entity::isPlayer, legalStatus, missileCapacity, missileCount, nil, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromNativeObject(), passengerCapacity, passengerCount, OOShipRegistry::sharedRegistry, shipDataKey, and OOShipRegistry::shipyardInfoForKey:.
Referenced by equipmentValidToAdd:inContext:.
- (NSArray *) escortArray |
Definition at line 6990 of file ShipEntity.m.
References _escortGroup, escortArray, escortEnumerator, and nil.
Referenced by abandonShip, dockEscorts, enterWormhole:replacing:, escortArray, messageTime, and update:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1840 of file ShipEntityAI.m.
- (uint8_t) escortCount |
Definition at line 6997 of file ShipEntity.m.
References _escortGroup, OOShipGroup::count, escortCount, and nil.
Referenced by acceptAsEscort:, deployEscorts, dumpSelfState, escortCount, and messageTime.
- (NSEnumerator *) escortEnumerator |
Definition at line 6983 of file ShipEntity.m.
References _escortGroup, escortEnumerator, OOShipGroup::mutationSafeEnumerator, and nil.
Referenced by deployEscorts, escortArray, escortEnumerator, and messageTime.
- (OOShipGroup *) escortGroup |
Definition at line 6932 of file ShipEntity.m.
References _escortGroup, escortGroup, nil, and OOShipGroup::setLeader:.
Referenced by abandonShip, acceptAsEscort:, deployEscorts, dockEscorts, ShipEntity(PureAI)::escortCheckMother, escortGroup, fireMissileWithIdentifier:andTarget:, StationEntity::launchIndependentShip:, messageTime, setUpEscorts, ShipEntity(Private)::setUpMixedEscorts, ShipGetProperty(), ShipEntity(AI)::suggestEscortTo:, and update:.
- (void) evasiveAction: | (double) | delta_t |
Definition at line 10442 of file ShipEntity.m.
References applySticks:, flightPitch, flightRoll, max_flight_pitch, max_flight_roll, noteLostTargetAndGoIdle, primaryTarget, stick_pitch, stick_roll, and v_right.
Referenced by behaviour_attack_break_off_target:, and behaviour_evasive_action:.
- (OOColor *) exhaustEmissiveColor |
Definition at line 11723 of file ShipEntity.m.
References exhaustEmissiveColor.
Referenced by coordinates, exhaustEmissiveColor, ShipGetProperty(), and OOExhaustPlumeEntity::update:.
- (NSEnumerator *) exhaustEnumerator |
Definition at line 1349 of file ShipEntity.m.
References exhaustEnumerator, and subEntities.
Referenced by exhaustEnumerator, frustumRadius, resetExhaustPlumes, ShipGetProperty(), and subEntities.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1418 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2644 of file ShipEntityAI.m.
- (NSUInteger) extraCargo |
Definition at line 3941 of file ShipEntity.m.
References extra_cargo, and extraCargo.
Referenced by extraCargo, and isFrangible.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1784 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1231 of file ShipEntityAI.m.
|
implementation |
Definition at line 14313 of file ShipEntity.m.
References findBoundingBoxRelativeToPosition:InVectors:_i:_j:, and Entity::position.
|
implementation |
Definition at line 1420 of file ShipEntity.m.
References mesh.
Referenced by findBoundingBoxRelativeTo:InVectors:_i:_j:.
- (BoundingBox) findBoundingBoxRelativeToPosition: | (HPVector) | opv | |
InVectors: | (Vector) | ||
i: | (Vector) | ||
j: | (Vector) | k |
References absoluteTractorPosition, aftWeaponOffset, countsAsKill, frustumRadius, isBoulder, isMinable, setUpEscorts, setUpSubEntities, shipDataKey, shipDataKeyAutoRole, shipInfoDictionary, and updateEscortFormation.
Referenced by positionOffsetForShipInRotationToAlignment.
- (OOPlanetEntity *) findNearestPlanet |
Definition at line 7635 of file ShipEntity.m.
References findNearestPlanet, nil, Entity::position, STELLAR_TYPE_MINIATURE, SurfaceDistanceSqaredV, and UNIVERSE.
Referenced by findNearestPlanet, findNearestStellarBody, ShipEntity(PureAI)::landOnPlanet, ShipEntity(AI)::performLandOnPlanet, reportAIMessages, and ShipEntity(PureAI)::setTakeOffFromPlanet.
- (OOPlanetEntity *) findNearestPlanetExcludingMoons |
Definition at line 7684 of file ShipEntity.m.
References count, findNearestPlanetExcludingMoons, nil, and STELLAR_TYPE_NORMAL_PLANET.
Referenced by findNearestPlanetExcludingMoons, reportAIMessages, and ShipEntity(PureAI)::setCourseToPlanet.
- (Entity< OOStellarBody > *) findNearestStellarBody |
Definition at line 7666 of file ShipEntity.m.
References findNearestPlanet, findNearestStellarBody, nil, and SurfaceDistanceSqared.
Referenced by ShipEntity(PureAI)::checkAegis, checkForAegis, PlayerEntity::dialAltitude, findNearestStellarBody, and reportAIMessages.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1544 of file ShipEntityAI.m.
- (BoundingBox) findSubentityBoundingBox |
Definition at line 2228 of file ShipEntity.m.
References findSubentityBoundingBox, OOMesh::findSubentityBoundingBoxWithPosition:rotMatrix:, and mesh.
Referenced by PlayerEntity::doBookkeeping:, findSubentityBoundingBox, maxFlightSpeed, setUpOneStandardSubentity:asTurret:, and update:.
- (BOOL) fireAftWeapon: | (double) | range |
Definition at line 11602 of file ShipEntity.m.
References currentWeaponFacing, fireWeapon:direction:range:, setWeaponDataFromType:, and WEAPON_FACING_AFT.
Referenced by behaviour_running_defense:, and behaviour_scripted_ai:.
- (BOOL) fireDirectLaserDefensiveShot |
Definition at line 11827 of file ShipEntity.m.
References defenseTargetEnumerator, Entity::energy, fireDirectLaserDefensiveShot, fireDirectLaserShotAt:, isCloaked, nil, rangeToSecondaryTarget:, removeDefenseTarget:, scanClass, scannerRange, and weaponRange.
Referenced by coordinates, fireDirectLaserDefensiveShot, and fireDirectLaserShot:.
- (BOOL) fireDirectLaserShot: | (double) | range |
Definition at line 11817 of file ShipEntity.m.
References accuracy, fireDirectLaserDefensiveShot, fireDirectLaserShotAt:, nil, primaryTarget, randf(), and weaponRange.
Referenced by fireWeapon:direction:range:.
- (BOOL) fireDirectLaserShotAt: | (Entity *) | my_target |
Definition at line 11855 of file ShipEntity.m.
References accuracy, flightSpeed, OOEquipmentType::identifier, isFrangible, kBasisZVector, OOLaserShotEntity::laserFromShip:direction:offset:, nil, Entity::orientation, Entity::position, quaternion_rotation_between(), randf(), resetShotTime, OOLightParticleEntity::setColor:, Entity::setOrientation:, Entity::setPosition:, Entity::setScanClass:, setShipHitByLaser:, Entity::setVelocity:, subEntityTakingDamage, takeEnergyDamage:from:becauseOf:weaponIdentifier:, v_forward, vector_forward_from_quaternion(), weaponRange, and weaponTypeForFacing:strict:.
Referenced by fireDirectLaserDefensiveShot, and fireDirectLaserShot:.
- (BOOL) fireECM |
Reimplemented in PlayerEntity.
Definition at line 12354 of file ShipEntity.m.
References fireECM, and hasECM.
Referenced by coordinates, ShipEntity(PureAI)::fightOrFleeMissile, fireECM, and ShipFireECM().
- (BOOL) fireLaserShotInDirection: | (OOWeaponFacing) | direction | |
weaponIdentifier: | (NSString *) | weaponIdentifier |
Definition at line 11944 of file ShipEntity.m.
References _multiplyWeapons, adjustMissedShots:, flightSpeed, isCloaked, isFrangible, Entity::isPlayer, Entity::isShip, OOLaserShotEntity::laserFromShip:direction:offset:, laserPortOffset:, last_shot_time, nil, Entity::orientation, Entity::position, primaryTarget, resetShotTime, OOLightParticleEntity::setColor:, Entity::setScanClass:, setShipHitByLaser:, Entity::setVelocity:, subEntityTakingDamage, takeEnergyDamage:from:becauseOf:weaponIdentifier:, v_forward, vector_forward_from_quaternion(), weapon_damage, and weaponRange.
Referenced by PlayerEntity::fireMainWeapon, and fireWeapon:direction:range:.
- (BOOL) fireMainWeapon: | (double) | range |
Definition at line 11556 of file ShipEntity.m.
References behaviour, currentWeaponFacing, fireWeapon:direction:range:, forward_weapon_temp, forward_weapon_type, isWeaponNone(), nil, setWeaponDataFromType:, shipSubEntityEnumerator, TURRET_SHOT_RANGE, WEAPON_FACING_FORWARD, weapon_temp, and weaponRange.
Referenced by behaviour_attack_fly_to_target:, behaviour_attack_mining_target:, behaviour_attack_sniper:, behaviour_evasive_action:, behaviour_flee_target:, behaviour_fly_to_target_six:, behaviour_running_defense:, and behaviour_scripted_ai:.
- (ShipEntity *) fireMissile |
Reimplemented in PlayerEntity.
Definition at line 12172 of file ShipEntity.m.
References fireMissile, fireMissileWithIdentifier:andTarget:, and primaryTarget.
Referenced by considerFiringMissile:, coordinates, ShipEntity(PureAI)::fightOrFleeHostiles, fireMissile, and ShipFireMissile().
- (ShipEntity *) fireMissileWithIdentifier: | (NSString *) | identifier | |
andTarget: | (Entity *) | target |
Definition at line 12178 of file ShipEntity.m.
References _group, addTarget:, Entity::boundingBox, cloaking_device_active, cloakPassive, Entity::collision_radius, deactivateCloakingDevice, doScriptEvent:withArgument:, doScriptEvent:withArgument:andArgument:, escortGroup, EXPECT_NOT, flightSpeed, group, OOShipGroup::groupWithName:, hasMilitaryScannerFilter, OOEquipmentType::identifier, isCloaked, isJammingScanning, isMissile, isMissileFlagSet, Entity::isPlayer, Entity::isShip, kZeroVector, OOShipGroup::leader, missile_launch_time, missile_list, missile_load_time, missileLaunchPosition, missiles, nil, Entity::normalOrientation, Entity::owner, Entity::position, quaternion_rotate_vector(), randf(), reactToAIMessage:context:, resetShotTime, scanClass, scannerRange, Entity::setDistanceTravelled:, setGroup:, setIsMissileFlag:, Entity::setOrientation:, setOwner:, Entity::setPosition:, setPrimaryAggressor:, Entity::setScanClass:, setSpeed:, Entity::setVelocity:, UNIVERSE, and v_forward.
Referenced by PlayerEntity::fireMissile, fireMissile, and ShipFireMissile().
- (BOOL) firePortWeapon: | (double) | range |
Definition at line 11612 of file ShipEntity.m.
References currentWeaponFacing, fireWeapon:direction:range:, setWeaponDataFromType:, and WEAPON_FACING_PORT.
Referenced by behaviour_attack_broadside_target:leftside:, and behaviour_scripted_ai:.
- (BOOL) fireStarboardWeapon: | (double) | range |
Definition at line 11622 of file ShipEntity.m.
References currentWeaponFacing, fireWeapon:direction:range:, setWeaponDataFromType:, and WEAPON_FACING_STARBOARD.
Referenced by behaviour_attack_broadside_target:leftside:, and behaviour_scripted_ai:.
- (BOOL) fireSubentityLaserShot: | (double) | range |
Definition at line 11729 of file ShipEntity.m.
References adjustMissedShots:, doScriptEvent:withArgument:, Entity::energy, forward_weapon_temp, forward_weapon_type, OOEquipmentType::identifier, isCloaked, isFrangible, Entity::isPlayer, isWeaponNone(), OOLaserShotEntity::laserFromShip:direction:offset:, nil, NPC_MAX_WEAPON_TEMP, Entity::orientation, Entity::owner, Entity::position, primaryTarget, reactToAIMessage:context:, resetShotTime, OOLightParticleEntity::setColor:, Entity::setEnergy:, setFoundTarget:, setPrimaryAggressor:, Entity::setScanClass:, setShipHitByLaser:, setWeaponDataFromType:, shotTime, subEntityTakingDamage, takeEnergyDamage:from:becauseOf:weaponIdentifier:, vector_forward_from_quaternion(), WEAPON_COOLING_CUTOUT, weapon_energy_use, WEAPON_FACING_FORWARD, weapon_recharge_rate, weapon_shot_temperature, weaponRange, and weaponTypeForFacing:strict:.
- (BOOL) fireTurretCannon: | (double) | range |
Definition at line 11644 of file ShipEntity.m.
References cloakPassive, Entity::collision_radius, Entity::drawRotationMatrix, isCloaked, Entity::isPlayer, Entity::isSubEntity, nil, NO_TARGET, OOHPVectorMultiplyMatrix(), OOVectorMultiplyMatrix(), Entity::orientation, Entity::owner, Entity::parentEntity, PLAYER, Entity::position, resetShotTime, Entity::rootShipEntity, Entity::setOwner:, shotTime, TURRET_SHOT_SPEED, vector_forward_from_quaternion(), weapon_recharge_rate, and weaponRange.
Referenced by behaviour_track_as_turret:.
|
implementation |
Definition at line 11450 of file ShipEntity.m.
References _multiplyWeapons, accuracy, aft_weapon_temp, cloaking_device_active, cloakPassive, deactivateCloakingDevice, Entity::energy, fireDirectLaserShot:, fireLaserShotInDirection:weaponIdentifier:, forward_weapon_temp, OOEquipmentType::identifier, isWeaponNone(), laserPortOffset:, nil, NPC_MAX_WEAPON_TEMP, port_weapon_temp, randf(), shipSubEntityEnumerator, shotTime, starboard_weapon_temp, WEAPON_COOLING_CUTOUT, weapon_energy_use, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_NONE, WEAPON_FACING_PORT, WEAPON_FACING_STARBOARD, weapon_recharge_rate, weapon_shot_temperature, weapon_temp, and weaponRange.
Referenced by fireAftWeapon:, fireMainWeapon:, firePortWeapon:, and fireStarboardWeapon:.
- (NSEnumerator *) flasherEnumerator |
Definition at line 1343 of file ShipEntity.m.
References flasherEnumerator, and subEntities.
Referenced by flasherEnumerator, ShipGetProperty(), subEntities, switchLightsOff, and switchLightsOn.
- (GLfloat) flightPitch |
References flightYaw.
- (GLfloat) flightRoll |
References flightPitch.
- (GLfloat) flightSpeed |
- (GLfloat) flightYaw |
References flightSpeed.
- (void) forceAegisCheck |
Definition at line 7873 of file ShipEntity.m.
References _nextAegisCheck, and forceAegisCheck.
Referenced by EntitySetProperty(), forceAegisCheck, and reportAIMessages.
- (Vector) forwardVector |
Definition at line 1271 of file ShipEntity.m.
References forwardVector, and v_forward.
Referenced by behaviour_land_on_planet:, forwardVector, PlayerEntity::leaveWitchspace, missileTrackPrimaryTarget:, ShipEntity(PureAI)::setPlanetPatrolCoordinates, DockEntity::shipIsInDockingCorridor:, totalBoundingBox, and OOExhaustPlumeEntity::update:.
- (NSArray *) forwardWeaponOffset |
References portWeaponOffset.
- (Entity *) foundTarget |
Definition at line 9918 of file ShipEntity.m.
References _foundTarget, DESTROY, foundTarget, nil, and OOWeakReference::weakRefUnderlyingObject.
Referenced by ShipEntity(OOAIPrivate)::acceptDistressMessageFrom:, ShipEntity(PureAI)::addFoundTargetAsDefenseTarget, PlayerEntity::doBookkeeping:, ShipEntity(Private)::drawDebugStuff, ShipEntity(PureAI)::fightOrFleeHostiles, foundTarget, maxFlightSpeed, ShipEntity(PureAI)::setTargetToFoundTarget, ShipGetProperty(), PlayerEntity(Scripting)::targetNearestHostile, and PlayerEntity(Scripting)::targetNearestIncomingMissile.
- (double) frustration |
References accuracy.
- (GLfloat) frustumRadius |
Reimplemented from Entity.
Definition at line 890 of file ShipEntity.m.
References _profileRadius, exhaustEnumerator, OOEntityWithDrawable::findCollisionRadius, OOExhaustPlumeEntity::findCollisionRadius, frustumRadius, and nil.
Referenced by OOEntityWithDrawable::drawImmediate:translucent:, findBoundingBoxRelativeToPosition:InVectors:i:j:, and frustumRadius.
- (OOFuelQuantity) fuel |
- (OOFuelQuantity) fuelCapacity |
Definition at line 8118 of file ShipEntity.m.
References fuelCapacity, and PLAYER_MAX_FUEL.
Referenced by PlayerEntity(Scripting)::awardEquipment:, PlayerEntity::dialFuel, PlayerEntity::doBookkeeping:, equipmentValidToAdd:whileLoading:inContext:, fuel, fuelCapacity, PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, PlayerEntity(Scripting)::sendAllShipsAway, setFuel:, PlayerEntity(OOPrivate)::tryBuyingItem:, and update:.
- (GLfloat) fuelChargeRate |
Reimplemented in PlayerEntity.
Definition at line 8125 of file ShipEntity.m.
References EXPECT, fuelChargeRate, Entity::mass, nil, OOLog, PLAYER, and shipDataKey.
Referenced by fuel, PlayerEntity::fuelChargeRate, fuelChargeRate, and update:.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 3328 of file ShipEntity.m.
References OOEquipmentType::addEquipmentWithInfo:, and OOEquipmentType::equipmentTypeWithIdentifier:.
Referenced by verifiedMissileTypeFromRole:.
- (AI *) getAI |
Definition at line 8014 of file ShipEntity.m.
Referenced by Universe::addEntity:, Universe::allShipsDoScriptEvent:andReactToAIMessage:, broadcastAIMessage:, deployEscorts, descriptionForObjDump, dockEscorts, DockEntity::dockingInstructionsForShip:, dumpItem:, getAI, hasNewAI, OOShipDebugInspectorModule::inspectAI:, DockEntity::launchShip:, PlayerEntity(Scripting)::messageShipAIs:, releaseCargoPodsDebris, PlayerEntity::resetAutopilotAI, ShipEntity(PureAI)::safeScriptActionOnTarget:, ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, ShipEntity(PureAI)::scanForNearestShipMatchingPredicate:, ShipEntity(PureAI)::scriptActionOnTarget:, PlayerEntity(Scripting)::sendAllShipsAway, ShipEntity(AI)::setAITo:, ShipEntity(PureAI)::setStateTo:, ShipEntity(PureAI)::setTargetToPrimaryAggressor, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, ShipExitAI(), ShipGetProperty(), ShipSetProperty(), WormholeEntity::suckInShip:, ShipEntity(AI)::switchAITo:, OOShipDebugInspectorModule::update, StationEntity::update:, and Universe::update:.
|
implementation |
Definition at line 14625 of file ShipEntity.m.
References demoStartTime, and getDemoStartTime.
Referenced by getDemoStartTime.
- (void) getDestroyedBy: | (Entity *) | whom | |
damageType: | (OOShipDamageType) | type |
Reimplemented in PlayerEntity.
Definition at line 9035 of file ShipEntity.m.
References abortDocking, becomeExplosion, and noteKilledBy:damageType:.
Referenced by ShipEntity(PureAI)::explodeSelf, takeEnergyDamage:from:becauseOf:weaponIdentifier:, takeHeatDamage:, and takeScrapeDamage:from:.
|
implementation |
Reimplemented from Entity.
Reimplemented in DockEntity, and StationEntity.
Provided by category ShipEntity(OOJavaScriptExtensions).
Definition at line 121 of file EntityOOJavaScriptExtensions.m.
- (void) getTractoredBy: | (ShipEntity *) | other |
Definition at line 12881 of file ShipEntity.m.
References addTarget:, behaviour, checkScannerIgnoringUnpowered, desired_speed, n_scanned_ships, noteLostTarget, primaryTarget, scanned_ships, setAITo:, setOwner:, setStatus:, and Entity::status.
- (NSArray *) getWeaponOffsetFrom: | (NSDictionary *) | dict | |
withKey: | (NSString *) | key | |
inMode: | (NSString *) | mode |
Definition at line 2001 of file ShipEntity.m.
References _scaleFactor, kZeroVector, and nil.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1187 of file ShipEntityAI.m.
- (OOShipGroup *) group |
Definition at line 6908 of file ShipEntity.m.
Referenced by abandonShip, acceptAsEscort:, ShipEntity(PureAI)::checkForMotherStation, ShipEntity(PureAI)::checkGroupOddsVersusTarget, deployEscorts, dockEscorts, fireMissileWithIdentifier:andTarget:, group, OOShipDebugInspectorModule::inspectGroup:, isFriendlyTo:, StationEntity::launchDefenseShip, StationEntity::launchIndependentShip:, messageTime, ShipEntity(PureAI)::patrolReportIn, ShipEntity(PureAI)::requestNewTarget, respondToAttackFrom:becauseOf:, ShipEntity(PureAI)::scanForOffenders, setEscortGroup:, setGroup:, ShipEntity(PureAI)::setPlanetPatrolCoordinates, setTargetToNearestStationIncludingHostiles:, setUpEscorts, StationEntity::setUpShipFromDictionary:, ShipGetProperty(), ShipGroupAddShip(), WormholeEntity::suckInShip:, SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), takeEnergyDamage:from:becauseOf:weaponIdentifier:, StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity(PureAI)::thargonCheckMother, and OOShipDebugInspectorModule::update.
- (void) groupAttackTarget |
Provided by category ShipEntity(AI).
Definition at line 339 of file ShipEntityAI.m.
- (BOOL) hasAllEquipment: | (id) | equipmentKeys |
Definition at line 3201 of file ShipEntity.m.
References hasAllEquipment:includeWeapons:whileLoading:.
- (BOOL) hasAllEquipment: | (id) | equipmentKeys | |
includeWeapons: | (BOOL) | includeWeapons | |
whileLoading: | (BOOL) | loading |
Definition at line 3181 of file ShipEntity.m.
References _equipment, and nil.
Referenced by hasAllEquipment:.
- (BOOL) hasAutoAI |
Definition at line 8020 of file ShipEntity.m.
References hasAutoAI, and shipInfoDictionary.
Referenced by hasAutoAI.
- (BOOL) hasAutoCloak |
Definition at line 6689 of file ShipEntity.m.
References cloakAutomatic, and hasAutoCloak.
Referenced by hasAutoCloak, and reactionTime.
- (BOOL) hasAutoWeapons |
Definition at line 8032 of file ShipEntity.m.
References hasAutoWeapons, and shipInfoDictionary.
Referenced by hasAutoWeapons, selectMissile, and starboardWeaponOffset.
- (BOOL) hasCargoScoop |
Definition at line 3961 of file ShipEntity.m.
References hasCargoScoop, and hasEquipmentItemProviding:.
Referenced by canScoop:, hasCargoScoop, and isFrangible.
- (BOOL) hasCascadeMine |
Definition at line 4033 of file ShipEntity.m.
References hasCascadeMine, and hasEquipmentItem:includeWeapons:whileLoading:.
Referenced by behaviour_flee_target:, hasCascadeMine, isFrangible, and launchCascadeMine.
- (BOOL) hasCloakingDevice |
Definition at line 3973 of file ShipEntity.m.
References hasCloakingDevice, and hasEquipmentItem:.
Referenced by PlayerEntity::activateCloakingDevice, activateCloakingDevice, PlayerEntity::deactivateCloakingDevice, deactivateCloakingDevice, PlayerEntity::doBookkeeping:, hasCloakingDevice, isFrangible, and update:.
- (BOOL) hasDockingComputer |
Definition at line 4048 of file ShipEntity.m.
References hasDockingComputer, and hasEquipmentItemProviding:.
Referenced by hasDockingComputer, isFrangible, and removeEquipmentItem:.
- (BOOL) hasECM |
Definition at line 3967 of file ShipEntity.m.
References hasECM, and hasEquipmentItemProviding:.
Referenced by fireECM, hasECM, and isFrangible.
- (BOOL) hasEquipmentItem: | (id) | equipmentKeys |
Definition at line 3129 of file ShipEntity.m.
References hasEquipmentItem:includeWeapons:whileLoading:.
Referenced by PlayerEntity::buySelectedItem, equipmentListForScripting, hasCloakingDevice, hasExpandedCargoBay, hasMilitaryShieldEnhancer, hasShieldBooster, ShipAwardEquipment(), ShipSetEquipmentStatus(), and PlayerEntity(Scripting)::testForEquipment:.
- (BOOL) hasEquipmentItem: | (id) | equipmentKeys | |
includeWeapons: | (BOOL) | includeWeapons | |
whileLoading: | (BOOL) | loading |
Definition at line 3107 of file ShipEntity.m.
References hasOneEquipmentItem:includeWeapons:whileLoading:, and nil.
Referenced by hasCascadeMine, and hasEquipmentItem:.
- (BOOL) hasEquipmentItemProviding: | (NSString *) | equipmentType |
Definition at line 3137 of file ShipEntity.m.
References _equipment, OOEquipmentType::equipmentTypeWithIdentifier:, and nil.
Referenced by hasCargoScoop, hasDockingComputer, hasECM, hasEscapePod, hasFuelInjection, hasFuelScoop, hasGalacticHyperdrive, hasHeatShield, hasMilitaryJammer, hasMilitaryScannerFilter, hasScoop, and ProxyPlayerEntity::initWithKey:definition:.
- (BOOL) hasEscapePod |
Definition at line 4042 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasEscapePod.
Referenced by abandonShip, hasEscapePod, isFrangible, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (BOOL) hasEscorts |
Definition at line 6976 of file ShipEntity.m.
References _escortGroup, OOShipGroup::count, hasEscorts, and nil.
Referenced by abandonShip, dockEscorts, hasEscorts, DockEntity::launchShip:, messageTime, and update:.
- (BOOL) hasExpandedCargoBay |
Definition at line 4000 of file ShipEntity.m.
References hasEquipmentItem:, and hasExpandedCargoBay.
Referenced by hasExpandedCargoBay, isFrangible, and PlayerEntity::setCommanderDataFromDictionary:.
- (BOOL) hasFuelInjection |
Definition at line 4027 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasFuelInjection.
Referenced by applyThrust:, behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_sniper:, behaviour_evasive_action:, behaviour_flee_target:, behaviour_fly_to_target_six:, hasFuelInjection, increase_flight_speed:, isFrangible, and WormholeEntity::suckInShip:.
- (BOOL) hasFuelScoop |
Definition at line 3954 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasFuelScoop.
Referenced by PlayerEntity::doBookkeeping:, hasFuelScoop, isFrangible, and update:.
- (BOOL) hasGalacticHyperdrive |
Definition at line 4054 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasGalacticHyperdrive.
Referenced by hasGalacticHyperdrive, and isFrangible.
- (BOOL) hasHeatShield |
Definition at line 4021 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasHeatShield.
Referenced by hasHeatShield, isFrangible, and setUpShipFromDictionary:.
- (BOOL) hasHostileTarget |
Reimplemented in PlayerEntity, and StationEntity.
Definition at line 7445 of file ShipEntity.m.
References behaviour, hasHostileTarget, IsBehaviourHostile, isMissile, Entity::isShip, nil, previousCondition, and primaryTarget.
Referenced by alertCondition, behaviour_track_as_turret:, HeadUpDisplay(Private)::drawScanner:, hasHostileTarget, StationEntity::hasHostileTarget, HeadUpDisplay::hudDrawReticleOnTarget, IsHostileAgainstTargetPredicate(), isHostileTo:, isMissile, noteTakingDamage:from:type:, realAlertCondition, and PlayerEntity(OOPrivate)::updateAlertConditionForNearbyEntities.
- (BOOL) hasHyperspaceMotor |
Definition at line 3207 of file ShipEntity.m.
References hasHyperspaceMotor, and hyperspaceMotorSpinTime.
Referenced by hasHyperspaceMotor, isFrangible, and PlayerEntity::setGuiToStatusScreen.
- (BOOL) hasMilitaryJammer |
Definition at line 3990 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasMilitaryJammer.
Referenced by PlayerEntity::doBookkeeping:, hasMilitaryJammer, isFrangible, isJammingScanning, and update:.
- (BOOL) hasMilitaryScannerFilter |
Definition at line 3980 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasMilitaryScannerFilter.
Referenced by fireMissileWithIdentifier:andTarget:, hasMilitaryScannerFilter, identFromShip:, isFrangible, PlayerEntity::isValidTarget:, and scannerDisplayColorForShip:otherShip:isHostile:flash:scannerDisplayColor1:scannerDisplayColor2:scannerDisplayColorH1:.
- (BOOL) hasMilitaryShieldEnhancer |
Definition at line 4014 of file ShipEntity.m.
References hasEquipmentItem:, and hasMilitaryShieldEnhancer.
Referenced by hasMilitaryShieldEnhancer, isFrangible, shieldBoostFactor, and shieldRechargeRate.
- (BOOL) hasNewAI |
Definition at line 8026 of file ShipEntity.m.
References getAI, hasNewAI, and AI::name.
Referenced by deployEscorts, dockEscorts, hasNewAI, respondToAttackFrom:becauseOf:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, and StationEntity::update:.
- (BOOL) hasOneEquipmentItem: | (NSString *) | itemKey | |
includeMissiles: | (BOOL) | includeMissiles | |
whileLoading: | (BOOL) | loading |
Definition at line 3046 of file ShipEntity.m.
References _equipment, missile_list, missiles, and nil.
Referenced by ShipRemoveEquipment().
- (BOOL) hasOneEquipmentItem: | (NSString *) | itemKey | |
includeWeapons: | (BOOL) | includeMissiles | |
whileLoading: | (BOOL) | loading |
Definition at line 3022 of file ShipEntity.m.
References _equipment, isWeaponNone(), and OOWeaponTypeFromEquipmentIdentifierStrict().
Referenced by hasEquipmentItem:includeWeapons:whileLoading:.
- (BOOL) hasPrimaryRole: | (NSString *) | role |
Definition at line 7327 of file ShipEntity.m.
References primaryRole.
Referenced by HasPrimaryRolePredicate().
- (BOOL) hasPrimaryWeapon: | (OOWeaponType) | weaponType |
Reimplemented in PlayerEntity.
Definition at line 3070 of file ShipEntity.m.
References aft_weapon_type, forward_weapon_type, nil, port_weapon_type, shipSubEntityEnumerator, and starboard_weapon_type.
Referenced by PlayerEntity::hasPrimaryWeapon:.
- (BOOL) hasProximityAlertIgnoringTarget: | (BOOL) | ignore_target |
Definition at line 11273 of file ShipEntity.m.
References nil, primaryTarget, and proximityAlert.
- (BOOL) hasRole: | (NSString *) | role |
Definition at line 7253 of file ShipEntity.m.
References OORoleSet::hasRole:, and shipDataKeyAutoRole.
Referenced by HasRolePredicate().
- (BOOL) hasScoop |
Definition at line 3948 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasScoop.
Referenced by PlayerEntity::dialFuelScoopStatus, hasScoop, ProxyPlayerEntity::initWithKey:definition:, and isFrangible.
- (BOOL) hasShieldBooster |
Definition at line 4007 of file ShipEntity.m.
References hasEquipmentItem:, and hasShieldBooster.
Referenced by hasShieldBooster, isFrangible, and shieldBoostFactor.
- (BOOL) hasSubEntity: | (Entity<OOSubEntity> *) | sub |
Definition at line 1325 of file ShipEntity.m.
- (GLfloat) heatInsulation |
Definition at line 8821 of file ShipEntity.m.
References _heatInsulation, and heatInsulation.
Referenced by PlayerEntity::doBookkeeping:, dumpSelfState, heatInsulation, StationEntity::launchDefenseShip, StationEntity::launchMiner, StationEntity::launchPatrol, StationEntity::launchPirateShip, StationEntity::launchPolice, StationEntity::launchScavenger, maxFlightSpeed, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, and update:.
- (OOSystemID) homeSystem |
Definition at line 7905 of file ShipEntity.m.
References home_system, and homeSystem.
Referenced by homeSystem, reportAIMessages, and setSingleCrewWithRole:.
- (GLfloat) hullHeatLevel |
Definition at line 9759 of file ShipEntity.m.
References hullHeatLevel, SHIP_MAX_CABIN_TEMP, and ship_temperature.
Referenced by hullHeatLevel, maxFlightSpeed, OOShipDebugInspectorModule::update, PlayerEntity(OOPrivate)::updateAlertConditionForNearbyEntities, and OOTrumble::updateTrumble:.
- (float) hyperspaceSpinTime |
Definition at line 3213 of file ShipEntity.m.
References hyperspaceMotorSpinTime, and hyperspaceSpinTime.
Referenced by hyperspaceSpinTime, and isFrangible.
- (NSString *) identFromShip: | (ShipEntity*) | otherShip |
Definition at line 7243 of file ShipEntity.m.
References DESC, displayName, hasMilitaryScannerFilter, and isJammingScanning.
Referenced by PlayerEntity::dialTargetName, and sendExpandedMessage:toShip:.
- (void) increase_flight_pitch: | (double) | delta |
Definition at line 8665 of file ShipEntity.m.
References flightPitch, and max_flight_pitch.
Referenced by PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
- (void) increase_flight_roll: | (double) | delta |
Definition at line 8645 of file ShipEntity.m.
References flightRoll, and max_flight_roll.
Referenced by PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
- (void) increase_flight_speed: | (double) | delta |
Definition at line 8614 of file ShipEntity.m.
References afterburnerFactor, desired_speed, flightSpeed, fuel, hasFuelInjection, maxFlightSpeed, and MIN_FUEL.
Referenced by applyThrust:.
- (void) increase_flight_yaw: | (double) | delta |
Definition at line 8685 of file ShipEntity.m.
References flightYaw, and max_flight_yaw.
Referenced by PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity.
Definition at line 175 of file ShipEntity.m.
References init, and initWithKey:definition:.
Referenced by init.
|
implementation |
Provided by category ShipEntity(Hax).
Definition at line 186 of file ShipEntity.m.
References Entity::init, and ShipEntity(Hax)::initBypassForPlayer.
Referenced by PlayerEntity::init, and ShipEntity(Hax)::initBypassForPlayer.
- (id) initWithKey: | (NSString *) | key | |
definition: | (NSDictionary *) | dict |
Reimplemented in DockEntity, ProxyPlayerEntity, and StationEntity.
Definition at line 193 of file ShipEntity.m.
References _nextAegisCheck, _shipKey, aft_weapon_temp, aiScriptWakeTime, currentWeaponFacing, entity_personality, ENTITY_PERSONALITY_MAX, forward_weapon_temp, Entity::init, INITIAL_SHOT_TIME, Entity::isShip, maxFlightSpeed, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOLog, port_weapon_temp, Ranrot(), SCANNER_MAX_RANGE2, setStatus:, SHIP_MIN_CABIN_TEMP, ship_temperature, shot_time, starboard_weapon_temp, WEAPON_FACING_FORWARD, weapon_recharge_rate, weapon_temp, and Entity::zero_distance.
Referenced by init, DockEntity::initWithKey:definition:, ProxyPlayerEntity::initWithKey:definition:, and StationEntity::initWithKey:definition:.
|
implementation |
Provided by category ShipEntity(OOEntityInspectorExtensions).
Definition at line 202 of file OOEntityInspectorExtensions.m.
|
implementation |
Reimplemented in PlayerEntity.
Provided by category ShipEntity(OOEntityInspectorExtensions).
Definition at line 196 of file OOEntityInspectorExtensions.m.
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity.
Provided by category ShipEntity(OOEntityInspectorExtensions).
Definition at line 184 of file OOEntityInspectorExtensions.m.
Referenced by OOShipGroupDebugInspectorModule::update.
|
implementation |
Provided by category ShipEntity(OOEntityInspectorExtensions).
Definition at line 172 of file OOEntityInspectorExtensions.m.
|
implementation |
Reimplemented in PlayerEntity.
Provided by category ShipEntity(OOEntityInspectorExtensions).
Definition at line 178 of file OOEntityInspectorExtensions.m.
|
implementation |
Reimplemented from Entity.
Provided by category ShipEntity(OOEntityInspectorExtensions).
Definition at line 190 of file OOEntityInspectorExtensions.m.
Referenced by OOShipDebugInspectorModule::update.
- (void) interpretAIMessage: | (NSString *) | message |
Reimplemented in PlayerEntity.
Definition at line 14283 of file ShipEntity.m.
References AIMS_AGGRESSOR_SWITCHED_TARGET, bounty, Entity::isShip, primaryAggressor, primaryTarget, scanClass, ScanTokensFromString(), sendExpandedMessage:toShip:, setBounty:withReason:, setThankedShip:, and thankedShip.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1595 of file ShipEntity.m.
References beaconCode, isBeacon, and nil.
Referenced by dumpSelfState, and isBeacon.
|
implementation |
Definition at line 7411 of file ShipEntity.m.
References behaviour.
Referenced by hasHostileTarget.
- (BOOL) isBoulder |
Definition at line 1666 of file ShipEntity.m.
References OORoleSet::hasRole:, and isBoulder.
Referenced by becomeExplosion, findBoundingBoxRelativeToPosition:InVectors:i:j:, isBoulder, and isMinable.
- (BOOL) isCloaked |
Definition at line 6670 of file ShipEntity.m.
References cloaking_device_active, and isCloaked.
Referenced by behaviour_track_as_turret:, PlayerEntity(OOPrivate)::checkEntityForMassLock:withScanClass:, checkScanner, checkScannerIgnoringUnpowered, PlayerEntity::collectBountyFor:, fireDirectLaserDefensiveShot, fireLaserShotInDirection:weaponIdentifier:, fireMissileWithIdentifier:andTarget:, fireSubentityLaserShot:, fireTurretCannon:, isCloaked, PlayerEntity::isValidTarget:, PlayerEntity::markAsOffender:withReason:, markAsOffender:withReason:, PlayerEntity::moveTargetMemoryBy:, reactionTime, removeEquipmentItem:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, and updateTrackingCurve.
- (BOOL) isDefenseTarget: | (Entity *) | target |
Definition at line 11218 of file ShipEntity.m.
References OOWeakSet::containsObject:.
- (BOOL) isDemoShip |
- (BOOL) isEscort |
Definition at line 7375 of file ShipEntity.m.
References isEscort, and primaryRole.
Referenced by canAcceptEscort:, isEscort, isMissile, setUpEscorts, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (BOOL) isExplicitlyUnpiloted |
Definition at line 7399 of file ShipEntity.m.
References _explicitlyUnpiloted, and isExplicitlyUnpiloted.
Referenced by PlayerEntity::addRoleForAggression:, isExplicitlyUnpiloted, isMissile, isUnpiloted, StationEntity::isUnpiloted, and setCrew:.
- (BOOL) isFrangible |
References afterburnerFactor, afterburnerRate, equipmentCount, equipmentEnumerator, extraCargo, hasCargoScoop, hasCascadeMine, hasCloakingDevice, hasDockingComputer, hasECM, hasEscapePod, hasExpandedCargoBay, hasFuelInjection, hasFuelScoop, hasGalacticHyperdrive, hasHeatShield, hasHyperspaceMotor, hasMilitaryJammer, hasMilitaryScannerFilter, hasMilitaryShieldEnhancer, hasScoop, hasShieldBooster, hyperspaceSpinTime, maxAftShieldLevel, maxForwardShieldLevel, maxHyperspaceDistance, maxThrust, missileCapacity, missileCount, parcelCount, passengerCapacity, passengerCount, removeAllEquipment, removeMissiles, selectMissile, shieldBoostFactor, shieldRechargeRate, suppressFlightNotifications, thrust, and weaponFacings.
- (BOOL) isFriendlyTo: | (ShipEntity *) | otherShip |
Definition at line 10157 of file ShipEntity.m.
References group, isPolice, isThargoid, nil, and scanClass.
- (BOOL) isHostileTo: | (Entity *) | entity |
Definition at line 7465 of file ShipEntity.m.
References hasHostileTarget, and primaryTarget.
Referenced by Universe::IsFriendlyStationPredicate.
- (BOOL) isHulk |
References script.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 6701 of file ShipEntity.m.
References hasMilitaryJammer, isJammingScanning, and military_jammer_active.
Referenced by fireMissileWithIdentifier:andTarget:, identFromShip:, isJammingScanning, PlayerEntity::isValidTarget:, scannerDisplayColorForShip:otherShip:isHostile:flash:scannerDisplayColor1:scannerDisplayColor2:scannerDisplayColorH1:, PlayerEntity::setNextCompassMode, and PlayerEntity::setPrevCompassMode.
- (BOOL) isMinable |
Definition at line 1672 of file ShipEntity.m.
References isBoulder, isMinable, and noRocks.
Referenced by findBoundingBoxRelativeToPosition:InVectors:i:j:, and isMinable.
- (BOOL) isMine |
Definition at line 7363 of file ShipEntity.m.
References isMine, and primaryRole.
Referenced by PlayerEntity::fireMissile, isMine, isMissile, and isWeapon.
- (BOOL) isMining |
Reimplemented in PlayerEntity.
Definition at line 14277 of file ShipEntity.m.
References behaviour, forward_weapon_type, and isMining.
Referenced by isMining, sunGlareFilter, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (BOOL) isMissile |
References alertCondition, allDefenseTargets, collisionExceptions, defenseTargetCount, defenseTargetEnumerator, hasHostileTarget, isEscort, isExplicitlyUnpiloted, isMine, isPirateVictim, isShuttle, isTurret, isUnpiloted, isWeapon, realAlertCondition, removeAllDefenseTargets, validateDefenseTargets, and weaponRange.
- (BOOL) isMissileFlagSet |
Definition at line 12317 of file ShipEntity.m.
References isMissile, and isMissileFlagSet.
Referenced by coordinates, fireMissileWithIdentifier:andTarget:, and isMissileFlagSet.
- (BOOL) isPirate |
Definition at line 7351 of file ShipEntity.m.
References isPirate, and primaryRole.
Referenced by isPirate, primaryRole, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (BOOL) isPirateVictim |
Definition at line 7393 of file ShipEntity.m.
References isPirateVictim, and primaryRole.
Referenced by PlayerEntity::addRoleForAggression:, isMissile, and isPirateVictim.
- (BOOL) isPolice |
Definition at line 7333 of file ShipEntity.m.
References isPolice, and scanClass.
Referenced by PlayerEntity::collectBountyFor:, collectBountyFor:, isFriendlyTo:, isPolice, StationEntity::launchDefenseShip, markAsOffender:withReason:, primaryRole, respondToAttackFrom:becauseOf:, setUpEscorts, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
|
implementation |
Reimplemented from Entity.
Provided by category ShipEntity(SubEntityRelationship).
Definition at line 14874 of file ShipEntity.m.
- (BOOL) isShuttle |
Definition at line 7381 of file ShipEntity.m.
References isShuttle, and primaryRole.
Referenced by isMissile, isShuttle, and landOnPlanet:.
- (BOOL) isTemplateCargoPod |
Definition at line 1017 of file ShipEntity.m.
References isTemplateCargoPod, and primaryRole.
Referenced by bounty, and isTemplateCargoPod.
- (BOOL) isThargoid |
Definition at line 7339 of file ShipEntity.m.
References isThargoid, and scanClass.
Referenced by addEquipmentItem:withValidation:inContext:, becomeExplosion, behaviour_fly_to_target_six:, canAddEquipment:inContext:, isFriendlyTo:, isThargoid, primaryRole, removeEquipmentItem:, selectMissile, and setUpEscorts.
- (BOOL) isTrader |
Definition at line 7345 of file ShipEntity.m.
References isTrader, and primaryRole.
Referenced by isTrader, primaryRole, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (BOOL) isTurret |
Definition at line 7387 of file ShipEntity.m.
References behaviour, and isTurret.
Referenced by isMissile, isTurret, and turretCount.
- (BOOL) isUnpiloted |
Reimplemented in StationEntity.
Definition at line 7405 of file ShipEntity.m.
References isExplicitlyUnpiloted, isHulk, isUnpiloted, and scanClass.
Referenced by isMissile, isUnpiloted, and setSingleCrewWithRole:.
- (BOOL) isValidTarget: | (Entity *) | target |
Reimplemented in PlayerEntity.
Definition at line 10034 of file ShipEntity.m.
References Entity::isShip, Entity::isWormhole, nil, scanClass, and Entity::status.
Referenced by noteLostTarget.
|
implementation |
Reimplemented from Entity.
Definition at line 1589 of file ShipEntity.m.
References Entity::cam_zero_distance, isVisible, and Entity::no_draw_distance.
Referenced by becomeExplosion, PlayerEntity::equipmentList, isVisible, and PlayerEntity::lookingAtSunWithThresholdAngleCos:.
|
implementation |
Reimplemented from Entity.
Provided by category ShipEntity(OOJavaScriptExtensions).
Definition at line 115 of file EntityOOJavaScriptExtensions.m.
- (BOOL) isWeapon |
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1353 of file ShipEntityAI.m.
Referenced by coordinates, and landOnPlanet:.
- (void) landOnPlanet: | (OOPlanetEntity *) | planet |
Definition at line 14027 of file ShipEntity.m.
References doScriptEvent:withArgument:andReactToAIMessage:, isShuttle, landOnPlanet, OOLog, and reportAIMessages.
Referenced by behaviour_land_on_planet:, and ShipEntity(PureAI)::landOnPlanet.
- (OOColor *) laserColor |
Definition at line 11717 of file ShipEntity.m.
References laserColor.
Referenced by coordinates, and laserColor.
- (GLfloat) laserHeatLevel |
Reimplemented in PlayerEntity.
Definition at line 9710 of file ShipEntity.m.
References laserHeatLevel, NPC_MAX_WEAPON_TEMP, and weapon_temp.
Referenced by laserHeatLevel, maxFlightSpeed, and OOShipDebugInspectorModule::update.
- (GLfloat) laserHeatLevelAft |
Reimplemented in PlayerEntity.
Definition at line 9717 of file ShipEntity.m.
References aft_weapon_temp, laserHeatLevelAft, and NPC_MAX_WEAPON_TEMP.
Referenced by laserHeatLevelAft, and maxFlightSpeed.
- (GLfloat) laserHeatLevelForward |
Reimplemented in PlayerEntity.
Definition at line 9724 of file ShipEntity.m.
References forward_weapon_temp, forward_weapon_type, isWeaponNone(), laserHeatLevelForward, nil, NPC_MAX_WEAPON_TEMP, and shipSubEntityEnumerator.
Referenced by laserHeatLevelForward, and maxFlightSpeed.
- (GLfloat) laserHeatLevelPort |
Reimplemented in PlayerEntity.
Definition at line 9745 of file ShipEntity.m.
References laserHeatLevelPort, NPC_MAX_WEAPON_TEMP, and port_weapon_temp.
Referenced by laserHeatLevelPort, and maxFlightSpeed.
- (GLfloat) laserHeatLevelStarboard |
Reimplemented in PlayerEntity.
Definition at line 9752 of file ShipEntity.m.
References laserHeatLevelStarboard, NPC_MAX_WEAPON_TEMP, and starboard_weapon_temp.
Referenced by laserHeatLevelStarboard, and maxFlightSpeed.
- (NSArray *) laserPortOffset: | (OOWeaponFacing) | direction |
Definition at line 11918 of file ShipEntity.m.
References aftWeaponOffset, forwardWeaponOffset, nil, portWeaponOffset, starboardWeaponOffset, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_NONE, WEAPON_FACING_PORT, and WEAPON_FACING_STARBOARD.
Referenced by PlayerEntity::currentLaserOffset, fireLaserShotInDirection:weaponIdentifier:, PlayerEntity::fireMainWeapon, and fireWeapon:direction:range:.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 7885 of file ShipEntity.m.
References ShipEntity(Private)::lastAegisLock, and nil.
Referenced by checkForAegis, ShipEntity(Private)::lastAegisLock, and transitionToAegisNone.
- (Entity *) lastEscortTarget |
Definition at line 9956 of file ShipEntity.m.
References _lastEscortTarget, DESTROY, lastEscortTarget, nil, and OOWeakReference::weakRefUnderlyingObject.
Referenced by deployEscorts, ShipEntity(PureAI)::fightOrFleeHostiles, lastEscortTarget, and maxFlightSpeed.
- (BOOL) launchCascadeMine |
Definition at line 12385 of file ShipEntity.m.
References addTarget:, cloaking_device_active, cloakPassive, Entity::collision_radius, deactivateCloakingDevice, flightSpeed, frustration, hasCascadeMine, launchCascadeMine, nil, PLAYER, Entity::position, quaternion_set_random(), randf(), removeEquipmentItem:, setBehaviour:, Entity::setEnergy:, Entity::setOrientation:, setOwner:, setPitch:, Entity::setPosition:, setRoll:, Entity::setScanClass:, setSpeed:, Entity::setVelocity:, v_forward, v_right, and v_up.
Referenced by behaviour_flee_target:, coordinates, and launchCascadeMine.
- (ShipEntity *) launchEscapeCapsule |
Reimplemented in PlayerEntity.
Definition at line 12438 of file ShipEntity.m.
References crew, doScriptEvent:withArgument:andArgument:, launchEscapeCapsule, launchPodWithCrew:, OOCharacter::legalStatus, legalStatus, nil, OOCharacter::randomCharacterWithRole:andOriginalSystem:, setCrew:, setHulk:, and OOCharacter::setLegalStatus:.
Referenced by abandonShip, coordinates, and launchEscapeCapsule.
|
implementation |
Reimplemented in StationEntity.
Provided by category ShipEntity(OOAIStationStubs).
Definition at line 2941 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 2277 of file ShipEntity.m.
References dumpItem:, nil, OOLog, randomEjectaTemperatureWithMaxFactor:, setCommodity:andAmount:, setCrew:, setOwner:, setTemperature:, and switchAITo:.
Referenced by launchEscapeCapsule.
- (void) leaveDock: | (StationEntity *) | station |
Reimplemented in PlayerEntity.
Definition at line 13475 of file ShipEntity.m.
References StationEntity::launchShip:, and nil.
- (void) leaveWitchspace |
Reimplemented in PlayerEntity.
Definition at line 13539 of file ShipEntity.m.
References leaveWitchspace, quaternion_set_random(), randf(), SCANNER_MAX_RANGE, Entity::setPosition:, vector_forward_from_quaternion(), and witchspaceLeavingEffects.
Referenced by coordinates, leaveWitchspace, and Universe::witchspaceShipWithPrimaryRole:.
- (int) legalStatus |
Definition at line 8312 of file ShipEntity.m.
References bounty, Entity::collision_radius, int(), legalStatus, and scanClass.
Referenced by bounty, ShipEntity(PureAI)::checkOwnLegalStatus, ShipEntity(PureAI)::checkTargetLegalStatus, StationEntity::dockingInstructionsForShip:, equipmentValidToAdd:whileLoading:inContext:, launchEscapeCapsule, legalStatus, markForFines, scanDescription, ShipEntity(PureAI)::scanForOffenders, and scoopUpProcess:processEvents:processMessages:.
- (BOOL) lightsActive |
Definition at line 13669 of file ShipEntity.m.
References _lightsActive, and lightsActive.
Referenced by coordinates, and lightsActive.
- (GLfloat) lookingAtSunWithThresholdAngleCos: | (GLfloat) | thresholdAngleCos |
Reimplemented in PlayerEntity.
Definition at line 11351 of file ShipEntity.m.
References currentWeaponFacing, EXPECT_NOT, Entity::position, Entity::relativePosition, v_forward, v_right, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_PORT, and WEAPON_FACING_STARBOARD.
Referenced by currentAimTolerance.
- (void) manageCollisions |
Definition at line 12642 of file ShipEntity.m.
References collideWithShip:, Entity::collidingEntities, count, enterWormhole:, enterWormhole:replacing:, Entity::isPlayer, Entity::isShip, Entity::isStellarObject, Entity::isSun, Entity::isWormhole, manageCollisions, and PLAYER.
Referenced by coordinates, manageCollisions, PlayerEntity::update:, and update:.
- (void) markAsOffender: | (int) | offence_value |
Reimplemented in PlayerEntity.
Definition at line 13591 of file ShipEntity.m.
References markAsOffender:withReason:.
- (void) markAsOffender: | (int) | offence_value | |
withReason: | (OOLegalStatusReason) | reason |
Reimplemented in PlayerEntity.
Definition at line 13597 of file ShipEntity.m.
References bounty, isCloaked, isPolice, Entity::isSubEntity, markAsOffender:withReason:, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromLegalStatusReason(), Entity::parentEntity, scanClass, ShipScriptEvent, and UNIVERSE.
Referenced by StationEntity(OOAIPrivate)::acceptDistressMessageFrom:, collectBountyFor:, ShipEntity(PureAI)::fightOrFleeMissile, markAsOffender:, markAsOffender:withReason:, ShipEntity(PureAI)::markTargetForOffence:, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, ShipEntity(AI)::suggestEscortTo:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, and StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (BOOL) markedForFines |
Definition at line 14262 of file ShipEntity.m.
References being_fined, and markedForFines.
Referenced by markedForFines, and sunGlareFilter.
- (BOOL) markForFines |
Definition at line 14268 of file ShipEntity.m.
References being_fined, legalStatus, and markForFines.
Referenced by PlayerEntity(OOControlsPrivate)::handleAutopilotOn:, markForFines, ShipMarkTargetForFines(), and sunGlareFilter.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2097 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2109 of file ShipEntityAI.m.
- (float) maxAftShieldLevel |
Reimplemented in PlayerEntity.
Definition at line 4078 of file ShipEntity.m.
References BASELINE_SHIELD_LEVEL, maxAftShieldLevel, and shieldBoostFactor.
Referenced by isFrangible, and maxAftShieldLevel.
- (OOCargoQuantity) maxAvailableCargoSpace |
Definition at line 8368 of file ShipEntity.m.
References equipment_weight, max_cargo, and maxAvailableCargoSpace.
Referenced by addCargo:, availableCargoSpace, bounty, canScoop:, PlayerEntity::cargoQuantityOnBoard, PlayerEntity::changePassengerBerths:, PlayerEntity::dialFuelScoopStatus, ShipEntity(PureAI)::ejectCargo, PlayerEntity::enterWitchspace, PlayerEntity::loadCargoPodsForType:amount:, maxAvailableCargoSpace, OOShipLibraryCargo(), scoopUpProcess:processEvents:processMessages:, setCargoFlag:, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity(Contracts)::setGuiToDockingReportScreen, PlayerEntity(Contracts)::setGuiToManifestScreen, PlayerEntity::setGuiToMarketScreen, ShipSetProperty(), PlayerEntity(OOPrivate)::showMarketCashAndLoadLine, PlayerEntity::takeInternalDamage, and PlayerEntity::tryBuyingCommodity:all:.
- (uint8_t) maxEscortCount |
Definition at line 7016 of file ShipEntity.m.
References _maxEscortCount, and maxEscortCount.
Referenced by maxEscortCount, and messageTime.
- (GLfloat) maxFlightPitch |
Definition at line 8729 of file ShipEntity.m.
References max_flight_pitch, and maxFlightPitch.
Referenced by flightSpeed, maxFlightPitch, and OOShipLibraryTurnRate().
- (GLfloat) maxFlightRoll |
Definition at line 8741 of file ShipEntity.m.
References max_flight_roll, and maxFlightRoll.
Referenced by maxFlightRoll, maxFlightSpeed, and OOShipLibraryTurnRate().
- (GLfloat) maxFlightSpeed |
References absoluteIJKForSubentity, becomeEnergyBlast, becomeExplosion, behaviour, broadcastEnergyBlastImminent, canStillTrackPrimaryTarget, checkScanner, checkScannerIgnoringUnpowered, damage, dealEnergyDamageWithinDesiredRange, entityPersonality, entityPersonalityInt, findSubentityBoundingBox, foundTarget, heatInsulation, hullHeatLevel, int(), laserHeatLevel, laserHeatLevelAft, laserHeatLevelForward, laserHeatLevelPort, laserHeatLevelStarboard, lastEscortTarget, maxFlightRoll, maxFlightYaw, noteLostTarget, noteLostTargetAndGoIdle, numberOfScannedShips, positionOffsetForShipInRotationToAlignment, primaryAggressor, primaryTarget, primaryTargetWithoutValidityCheck, proximityAlert, randomEjectaTemperature, rememberedShip, resetExhaustPlumes, scannedShips, shipHitByLaser, showDamage, speedFactor, targetStation, temperature, thankedShip, and weaponRecoveryTime.
- (GLfloat) maxFlightYaw |
Definition at line 8747 of file ShipEntity.m.
References max_flight_yaw, and maxFlightYaw.
Referenced by maxFlightSpeed, and maxFlightYaw.
- (float) maxForwardShieldLevel |
Reimplemented in PlayerEntity.
Definition at line 4072 of file ShipEntity.m.
References BASELINE_SHIELD_LEVEL, maxForwardShieldLevel, and shieldBoostFactor.
Referenced by isFrangible, and maxForwardShieldLevel.
- (double) maxHyperspaceDistance |
Definition at line 4090 of file ShipEntity.m.
References MAX_JUMP_RANGE, and maxHyperspaceDistance.
Referenced by isFrangible, maxHyperspaceDistance, and PlayerEntity::witchJumpChecklist:.
- (NSUInteger) maxShipSubEntities |
Definition at line 792 of file ShipEntity.m.
References _maxShipSubIdx, and maxShipSubEntities.
Referenced by PlayerEntity::canAddEquipment:inContext:, maxShipSubEntities, PlayerEntity(Contracts)::missingSubEntitiesAdjustment, serializeShipSubEntities, and subEntities.
- (float) maxThrust |
Definition at line 4119 of file ShipEntity.m.
References max_thrust, and maxThrust.
Referenced by behaviour_tractored:, dumpItem:, isFrangible, maxThrust, releaseCargoPodsDebris, and ShipSetProperty().
- (OOMesh *) mesh |
Definition at line 1248 of file ShipEntity.m.
References OOEntityWithDrawable::drawable, and mesh.
Referenced by accuracy, PlayerEntity::doBookkeeping:, findBoundingBoxRelativeToPosition:InVectors:_i:_j:, findSubentityBoundingBox, PlayerEntity::launchEscapeCapsule, mesh, setEntityPersonalityInt:, setMesh:, PlayerEntity::setUpTrumbles, and ShipSetMaterialsInternal().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1917 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1931 of file ShipEntityAI.m.
- (double) messageTime |
References escortArray, escortCount, escortEnumerator, escortGroup, group, hasEscorts, maxEscortCount, name, pendingEscortCount, stationGroup, and turretCount.
- (int) missedShots |
Definition at line 12085 of file ShipEntity.m.
References _missed_shots, int(), Entity::isSubEntity, missedShots, and Entity::owner.
Referenced by coordinates, currentAimTolerance, missedShots, and trackPrimaryTarget:delta_t:.
- (NSUInteger) missileCapacity |
Definition at line 3935 of file ShipEntity.m.
References max_missiles, and missileCapacity.
Referenced by equipmentValidToAdd:whileLoading:inContext:, isFrangible, missileCapacity, PlayerEntity::mountMissileWithRole:, and OOShipLibraryWeapons().
- (NSUInteger) missileCount |
Definition at line 3929 of file ShipEntity.m.
References missileCount, and missiles.
Referenced by equipmentValidToAdd:whileLoading:inContext:, isFrangible, missileCount, PlayerEntity::mountMissileWithRole:, and PlayerEntity::setCommanderDataFromDictionary:.
- (Vector) missileLaunchPosition |
Definition at line 12146 of file ShipEntity.m.
References _scaleFactor, Entity::boundingBox, EXPECT_NOT, missileLaunchPosition, and OOLog.
Referenced by coordinates, PlayerEntity::fireMissile, fireMissileWithIdentifier:andTarget:, and missileLaunchPosition.
- (OOTimeDelta) missileLoadTime |
Definition at line 12329 of file ShipEntity.m.
References missile_load_time, and missileLoadTime.
Referenced by coordinates, and missileLoadTime.
- (NSArray *) missilesList |
Reimplemented in PlayerEntity.
Definition at line 3302 of file ShipEntity.m.
References missile_list, missilesList, and nil.
Referenced by cargo, PlayerEntity::missilesList, missilesList, and ShipGetProperty().
- (double) missileTrackPrimaryTarget: | (double) | delta_t |
Definition at line 10830 of file ShipEntity.m.
References accuracy, applySticks:, flightPitch, flightRoll, forwardVector, Entity::isShip, kZeroVector, max_flight_pitch, max_flight_roll, pitch_tolerance, pitching_over, primaryTarget, Entity::speed, stick_pitch, stick_roll, stick_yaw, v_forward, v_right, v_up, Entity::vectorTo:, and Entity::velocity.
Referenced by trackPrimaryTarget:delta_t:, and trackSideTarget:delta_t:.
- (NSString *) name |
References shipUniqueName.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1631 of file ShipEntity.m.
References nextBeacon, and OOWeakReference::weakRefUnderlyingObject.
Referenced by nextBeacon, setNextBeacon:, PlayerEntity::setNextCompassMode, PlayerEntity::setPrevCompassMode, and PlayerEntity::validateCompassTarget.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 2953 of file ShipEntity.m.
References doScriptEvent:withArgument:.
Referenced by behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_to_target:, behaviour_attack_sniper:, behaviour_face_destination:, behaviour_flee_target:, behaviour_fly_thru_navpoints:, behaviour_fly_to_destination:, behaviour_formation_form_up:, and behaviour_intercept_target:.
- (void) noteKilledBy: | (Entity *) | whom | |
damageType: | (OOShipDamageType) | type |
Definition at line 9010 of file ShipEntity.m.
References Entity::isShip, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromNativeObject(), OOJSValueFromShipDamageType(), setStatus:, ShipScriptEvent, and Entity::status.
Referenced by becomeEnergyBlast, PlayerEntity::getDestroyedBy:damageType:, and getDestroyedBy:damageType:.
- (void) noteLostTarget |
Definition at line 10192 of file ShipEntity.m.
References _primaryAggressor, _primaryTarget, DESTROY, doScriptEvent:withArgument:, Entity::isShip, isValidTarget:, AI::message:, nil, noteLostTarget, primaryAggressor, primaryTarget, AI::reactToMessage:context:, and removeDefenseTarget:.
Referenced by getTractoredBy:, PlayerEntity(OOControlsPrivate)::handleButtonIdent, PlayerEntity(OOControlsPrivate)::handleButtonTargetMissile, StationEntity::launchDefenseShip, StationEntity::launchPirateShip, StationEntity::launchPolice, PlayerEntity::loseTargetStatus, ShipEntity(PureAI)::markTargetForFines, ShipEntity(PureAI)::markTargetForOffence:, maxFlightSpeed, noteLostTarget, noteLostTargetAndGoIdle, PlayerEntity(OOControlsPrivate)::pollFlightControls:, removeTarget:, scoopUpProcess:processEvents:processMessages:, PlayerEntity::selectNextMissile, ShipEntity(PureAI)::sendTargetCommsMessage:, update:, PlayerEntity(OOPrivate)::updateTargeting, and PlayerEntity(OOPrivate)::witchStart.
- (void) noteLostTargetAndGoIdle |
Definition at line 10219 of file ShipEntity.m.
References behaviour, frustration, noteLostTarget, and noteLostTargetAndGoIdle.
Referenced by behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_mining_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_close_to_broadside_range:, behaviour_close_with_target:, behaviour_flee_target:, behaviour_fly_to_target_six:, behaviour_intercept_target:, behaviour_running_defense:, behaviour_track_target:, evasiveAction:, maxFlightSpeed, noteLostTargetAndGoIdle, ShipEntity(AI)::performMining, trackPrimaryTarget:delta_t:, and trackSideTarget:delta_t:.
- (void) noteTakingDamage: | (double) | amount | |
from: | (Entity *) | entity | |
type: | (OOShipDamageType) | type |
Reimplemented in DockEntity.
Definition at line 8975 of file ShipEntity.m.
References accuracy, behaviour, COMBAT_AI_IS_SMART, desired_speed, frustration, hasHostileTarget, Entity::isShip, maxFlightSpeed, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromNativeObject(), OOJSValueFromShipDamageType(), randf(), ShipScriptEvent, and UNIVERSE.
Referenced by DockEntity::noteTakingDamage:from:type:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, takeHeatDamage:, and takeScrapeDamage:from:.
- (void) noteTargetDestroyed: | (ShipEntity *) | target |
Definition at line 10226 of file ShipEntity.m.
References collectBountyFor:, doScriptEvent:withArgument:, AI::message:, primaryTarget, removeDefenseTarget:, and removeTarget:.
Referenced by PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, and takeScrapeDamage:from:.
- (void) noticeECM |
Reimplemented in PlayerEntity.
Definition at line 12342 of file ShipEntity.m.
References accuracy, COMBAT_AI_ISNT_AWFUL, missile_launch_time, missile_list, missile_load_time, missiles, and noticeECM.
Referenced by coordinates, noticeECM, and OOECMBlastEntity::update:.
- (int) numberOfScannedShips |
Definition at line 9912 of file ShipEntity.m.
References int(), n_scanned_ships, and numberOfScannedShips.
Referenced by maxFlightSpeed, and numberOfScannedShips.
- (BOOL) onTarget: | (OOWeaponFacing) | direction | |
withWeapon: | (OOWeaponType) | weapon |
Definition at line 11389 of file ShipEntity.m.
References calculateTargetPosition, Entity::collision_radius, currentAimTolerance, Entity::isSunlit, nil, Entity::position, primaryTarget, randf(), Entity::status, v_forward, v_right, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_NONE, WEAPON_FACING_PORT, and WEAPON_FACING_STARBOARD.
|
implementation |
Reimplemented from Entity.
Reimplemented in DockEntity, PlayerEntity, and StationEntity.
Provided by category ShipEntity(OOJavaScriptExtensions).
Definition at line 128 of file EntityOOJavaScriptExtensions.m.
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity.
Definition at line 6787 of file ShipEntity.m.
References Entity::orientation, Entity::orientationChanged, orientationChanged, v_forward, v_right, v_up, vector_forward_from_quaternion(), vector_right_from_quaternion(), and vector_up_from_quaternion().
Referenced by applyRoll:andClimb:, applyRoll:climb:andYaw:, ballTrackLeadingTarget:atTarget:, orientationChanged, and trackOntoTarget:withDForward:.
- (void) overrideScriptInfo: | (NSDictionary *) | override |
Definition at line 14588 of file ShipEntity.m.
References nil, and scriptInfo.
Referenced by setUpOneStandardSubentity:asTurret:.
- (NSUInteger) parcelCount |
Reimplemented in PlayerEntity.
Definition at line 3911 of file ShipEntity.m.
References parcelCount.
Referenced by isFrangible, and parcelCount.
- (NSArray *) parcelListForScripting |
Reimplemented in PlayerEntity.
Definition at line 3316 of file ShipEntity.m.
References parcelListForScripting.
Referenced by cargo, parcelListForScripting, and ShipGetProperty().
- (NSUInteger) passengerCapacity |
Reimplemented in PlayerEntity.
Definition at line 3923 of file ShipEntity.m.
References passengerCapacity.
Referenced by equipmentListForScripting, equipmentValidToAdd:whileLoading:inContext:, isFrangible, passengerCapacity, and ShipRemoveEquipment().
- (NSUInteger) passengerCount |
Reimplemented in PlayerEntity.
Definition at line 3917 of file ShipEntity.m.
References passengerCount.
Referenced by equipmentValidToAdd:whileLoading:inContext:, isFrangible, and passengerCount.
- (NSArray *) passengerListForScripting |
Reimplemented in PlayerEntity.
Definition at line 3310 of file ShipEntity.m.
References passengerListForScripting.
Referenced by cargo, passengerListForScripting, and ShipGetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2057 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 851 of file ShipEntityAI.m.
- (uint8_t) pendingEscortCount |
Definition at line 7004 of file ShipEntity.m.
References _pendingEscortCount, and pendingEscortCount.
Referenced by Universe::addShipAt:withRole:withinRadius:, StationEntity::launchIndependentShip:, DockEntity::launchShip:, messageTime, pendingEscortCount, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, and Universe::witchspaceShipWithPrimaryRole:.
- (void) performAttack |
Provided by category ShipEntity(AI).
Definition at line 378 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(AI).
Definition at line 510 of file ShipEntityAI.m.
- (void) performCollect |
Provided by category ShipEntity(AI).
Definition at line 389 of file ShipEntityAI.m.
- (void) performEscort |
Provided by category ShipEntity(AI).
Definition at line 396 of file ShipEntityAI.m.
- (void) performFaceDestination |
Provided by category ShipEntity(AI).
Definition at line 406 of file ShipEntityAI.m.
- (void) performFlee |
Provided by category ShipEntity(AI).
Definition at line 413 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::broadcastDistressMessageWithDumping:, and ShipEntity(PureAI)::fightOrFleeMissile.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2732 of file ShipEntityAI.m.
- (void) performFlyToRangeFromDestination |
Provided by category ShipEntity(AI).
Definition at line 432 of file ShipEntityAI.m.
- (void) performHold |
Provided by category ShipEntity(AI).
Definition at line 439 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1629 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2758 of file ShipEntityAI.m.
Referenced by ShipEntity(PureAI)::performHyperSpaceExit, and ShipEntity(PureAI)::performHyperSpaceExitWithoutReplacing.
|
implementation |
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2764 of file ShipEntityAI.m.
Referenced by ShipEntity(OOAIPrivate)::performHyperSpaceExitReplace:, and ShipEntity(AI)::performHyperSpaceToSpecificSystem:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1635 of file ShipEntityAI.m.
- (BOOL) performHyperSpaceToSpecificSystem: | (OOSystemID) | systemID |
Provided by category ShipEntity(AI).
Definition at line 536 of file ShipEntityAI.m.
Referenced by ShipExitSystem().
- (void) performIdle |
Provided by category ShipEntity(AI).
Definition at line 447 of file ShipEntityAI.m.
- (void) performIntercept |
Provided by category ShipEntity(AI).
Definition at line 454 of file ShipEntityAI.m.
- (void) performLandOnPlanet |
Provided by category ShipEntity(AI).
Definition at line 461 of file ShipEntityAI.m.
- (void) performMining |
Provided by category ShipEntity(AI).
Definition at line 480 of file ShipEntityAI.m.
- (void) performScriptedAI |
Provided by category ShipEntity(AI).
Definition at line 496 of file ShipEntityAI.m.
- (void) performScriptedAttackAI |
Provided by category ShipEntity(AI).
Definition at line 503 of file ShipEntityAI.m.
- (void) performStop |
Provided by category ShipEntity(AI).
Definition at line 519 of file ShipEntityAI.m.
- (void) performTumble |
Provided by category ShipEntity(AI).
Definition at line 527 of file ShipEntityAI.m.
Referenced by Universe::addWreckageFrom:withRole:at:scale:lifetime:, and behaviour_tractored:.
- (NSArray *) portWeaponOffset |
References starboardWeaponOffset.
- (Vector) positionOffsetForAlignment: | (NSString*) | align |
Definition at line 9546 of file ShipEntity.m.
References Entity::boundingBox, and kZeroVector.
- (Vector) positionOffsetForShipInRotationToAlignment | (ShipEntity *) | ship | |
(Quaternion) | q | ||
(NSString *) | align |
Definition at line 9593 of file ShipEntity.m.
References findBoundingBoxRelativeToPosition:InVectors:i:j:, kZeroVector, positionOffsetForShipInRotationToAlignment, vector_forward_from_quaternion(), vector_right_from_quaternion(), and vector_up_from_quaternion().
Referenced by maxFlightSpeed, and positionOffsetForShipInRotationToAlignment.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1625 of file ShipEntity.m.
References prevBeacon, and OOWeakReference::weakRefUnderlyingObject.
Referenced by prevBeacon, and setPrevBeacon:.
- (Entity *) primaryAggressor |
Definition at line 9937 of file ShipEntity.m.
References _primaryAggressor, DESTROY, nil, primaryAggressor, and OOWeakReference::weakRefUnderlyingObject.
Referenced by ShipEntity(PureAI)::addPrimaryAggressorAsDefenseTarget, PlayerEntity::addRoleForAggression:, becomeExplosion, PlayerEntity::interpretAIMessage:, interpretAIMessage:, maxFlightSpeed, noteLostTarget, primaryAggressor, ShipEntity(PureAI)::setTargetToPrimaryAggressor, and ShipGetProperty().
- (NSString *) primaryRole |
References isMissile, isPirate, isPolice, isThargoid, and isTrader.
- (id) primaryTarget |
Definition at line 10121 of file ShipEntity.m.
References _primaryTarget, DESTROY, EXPECT_NOT, nil, primaryTarget, and OOWeakReference::weakRefUnderlyingObject.
Referenced by ShipEntity(OOAIPrivate)::acceptDistressMessageFrom:, StationEntity(OOAIPrivate)::acceptDistressMessageFrom:, approachAspectToPrimaryTarget, avoidCollision, behaviour_attack_break_off_target:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_attack_target:, behaviour_close_to_broadside_range:, behaviour_close_with_target:, behaviour_evasive_action:, behaviour_flee_target:, behaviour_fly_to_target_six:, behaviour_intercept_target:, behaviour_track_as_turret:, behaviour_track_target:, calculateTargetPosition, ShipEntity(PureAI)::checkGroupOddsVersusTarget, ShipEntity(PureAI)::checkTargetLegalStatus, deployEscorts, PlayerEntity::dialTargetName, PlayerEntity::doBookkeeping:, dockEscorts, ShipEntity(Private)::drawDebugStuff, HeadUpDisplay(Private)::drawScanner:, HeadUpDisplay(Private)::drawSecondaryTargetReticle:, dumpSelfState, ShipEntity(AI)::enterTargetWormhole, evasiveAction:, ShipEntity(PureAI)::fightOrFleeMissile, fireDirectLaserShot:, fireLaserShotInDirection:weaponIdentifier:, PlayerEntity::fireMissile, fireMissile, fireSubentityLaserShot:, Universe::forceWitchspaceEntries, getTractoredBy:, ShipEntity(AI)::groupAttackTarget, PlayerEntity(OOControlsPrivate)::handleAutopilotOn:, PlayerEntity(OOControlsPrivate)::handleButtonTargetMissile, PlayerEntity::hasHostileTarget, hasHostileTarget, StationEntity::hasHostileTarget, hasProximityAlertIgnoringTarget:, HeadUpDisplay::hudDrawReticleOnTarget, OOShipDebugInspectorModule::inspectTarget:, ShipEntity(OOEntityInspectorExtensions)::inspTargetLine, interpretAIMessage:, IsHostileAgainstTargetPredicate(), isHostileTo:, StationEntity::launchDefenseShip, StationEntity::launchPirateShip, StationEntity::launchPolice, PlayerEntity::localMarket, PlayerEntity::loseTargetStatus, PlayerEntity::marketScreenTitle, ShipEntity(PureAI)::markTargetForFines, ShipEntity(PureAI)::markTargetForOffence:, maxFlightSpeed, missileTrackPrimaryTarget:, noteLostTarget, noteTargetDestroyed:, onTarget:withWeapon:, ShipEntity(AI)::performMining, PlayerEntity(OOControlsPrivate)::pollFlightControls:, primaryTarget, PlayerEntity::printIdentLockedOnForMissile:, rangeToPrimaryTarget, ShipEntity(AI)::recallDockingInstructions, PlayerEntity::safeAllMissiles, ShipEntity(PureAI)::safeScriptActionOnTarget:, ShipEntity(PureAI)::scriptActionOnTarget:, PlayerEntity::selectNextMissile, ShipEntity(PureAI)::sendTargetCommsMessage:, ShipEntity(PureAI)::setDestinationToTarget, ShipEntity(PureAI)::setDestinationWithinTarget, PlayerEntity::setDockingClearanceStatus:, PlayerEntity::setGuiToMarketScreen, PlayerEntity::setNextCompassMode, PlayerEntity::setPrevCompassMode, ShipEntity(PureAI)::setRacepointsFromTarget, ShipEntity(OOJavaScriptExtensions)::setTargetForScript:, ShipEntity(PureAI)::setTargetToPrimaryAggressor, ShipFireMissile(), ShipGetProperty(), ShipEntity(ScriptMethods)::spawnShipsWithRole:count:, startTrackingCurve, ShipEntity(PureAI)::storeTarget, ShipEntity(PureAI)::suggestEscort, ShipEntity(PureAI)::targetNextBeaconWithCode:, trackOntoTarget:withDForward:, trackPrimaryTarget:delta_t:, trackSideTarget:delta_t:, update:, PlayerEntity(OOPrivate)::updateAlertConditionForNearbyEntities, PlayerEntity(OOPrivate)::updateTargeting, updateTrackingCurve, PlayerEntity::validateCompassTarget, OODebugController::validateMenuItem:, ShipEntity(AI)::wormholeEscorts, and ShipEntity(PureAI)::wormholeGroup.
- (id) primaryTargetWithoutValidityCheck |
Definition at line 10144 of file ShipEntity.m.
References _primaryTarget, DESTROY, EXPECT_NOT, nil, primaryTargetWithoutValidityCheck, and OOWeakReference::weakRefUnderlyingObject.
Referenced by canStillTrackPrimaryTarget, maxFlightSpeed, primaryTargetWithoutValidityCheck, realAlertCondition, and scoopUpProcess:processEvents:processMessages:.
- (void) processBehaviour: | (OOTimeDelta) | delta_t |
Definition at line 2793 of file ShipEntity.m.
References applyAttitudeChanges:, applyThrust:, behaviour, behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_left:, behaviour_attack_broadside_right:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_mining_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_attack_target:, behaviour_avoid_collision:, behaviour_close_to_broadside_range:, behaviour_close_with_target:, behaviour_evasive_action:, behaviour_face_destination:, behaviour_flee_target:, behaviour_fly_from_destination:, behaviour_fly_range_from_destination:, behaviour_fly_thru_navpoints:, behaviour_fly_to_destination:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, behaviour_idle:, behaviour_intercept_target:, behaviour_land_on_planet:, behaviour_running_defense:, behaviour_scripted_ai:, behaviour_stop_still:, behaviour_track_as_turret:, behaviour_track_target:, behaviour_tractored:, behaviour_tumble:, and Entity::isSubEntity.
Referenced by PlayerEntity(OOPrivate)::performAutopilotUpdates:, and update:.
- (Entity *) proximityAlert |
Definition at line 7044 of file ShipEntity.m.
References _proximityAlert, DESTROY, nil, proximityAlert, and OOWeakReference::weakRefUnderlyingObject.
Referenced by avoidCollision, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_to_target:, behaviour_attack_mining_target:, behaviour_attack_slow_dogfight:, behaviour_avoid_collision:, behaviour_close_to_broadside_range:, behaviour_close_with_target:, behaviour_evasive_action:, behaviour_fly_to_target_six:, dumpSelfState, hasProximityAlertIgnoringTarget:, maxFlightSpeed, proximityAlert, setProximityAlert:, and ShipGetProperty().
- (float) randomEjectaTemperature |
Definition at line 8796 of file ShipEntity.m.
References randomEjectaTemperature, and randomEjectaTemperatureWithMaxFactor:.
Referenced by becomeExplosion, dumpItem:, maxFlightSpeed, randomEjectaTemperature, releaseCargoPodsDebris, and ShipEntity(ScriptMethods)::spawnShipsWithRole:count:.
- (float) randomEjectaTemperatureWithMaxFactor: | (float) | factor |
Definition at line 8802 of file ShipEntity.m.
References bellf(), SHIP_MAX_CABIN_TEMP, SHIP_MIN_CABIN_TEMP, and temperature.
Referenced by ShipEntity(Private)::launchPodWithCrew:, and randomEjectaTemperature.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 857 of file ShipEntityAI.m.
|
implementation |
Definition at line 9778 of file ShipEntity.m.
References entity_personality, and randomSeedForShaders.
Referenced by randomSeedForShaders.
- (GLfloat) rangeToDestination |
Definition at line 11112 of file ShipEntity.m.
References _destination, Entity::position, and rangeToDestination.
Referenced by behaviour, behaviour_avoid_collision:, behaviour_face_destination:, behaviour_fly_from_destination:, behaviour_fly_range_from_destination:, behaviour_fly_to_destination:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, behaviour_intercept_target:, behaviour_tractored:, and rangeToDestination.
- (double) rangeToPrimaryTarget |
Definition at line 11237 of file ShipEntity.m.
References primaryTarget, rangeToPrimaryTarget, and rangeToSecondaryTarget:.
Referenced by behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_mining_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_attack_target:, behaviour_close_to_broadside_range:, behaviour_close_with_target:, behaviour_evasive_action:, behaviour_flee_target:, behaviour_fly_to_target_six:, behaviour_intercept_target:, behaviour_running_defense:, behaviour_scripted_ai:, coordinates, and rangeToPrimaryTarget.
- (double) rangeToSecondaryTarget: | (Entity *) | target |
Definition at line 11243 of file ShipEntity.m.
References Entity::collision_radius, nil, and Entity::position.
Referenced by behaviour_track_as_turret:, fireDirectLaserDefensiveShot, and rangeToPrimaryTarget.
|
implementation |
Provided by category ShipEntity(DebugRawAccess).
Definition at line 6957 of file ShipEntity.m.
References ShipEntity(Debug)::rawEscortGroup.
Referenced by ShipEntity(Debug)::rawEscortGroup, and OOShipDebugInspectorModule::update.
- (float) reactionTime |
References avoidCollision, calculateTargetPosition, calculateTrackingCurve, hasAutoCloak, isCloaked, messageTime, resumePostProximityAlert, scannerDisplayColor1, scannerDisplayColor2, scannerDisplayColorHostile1, scannerDisplayColorHostile2, startTrackingCurve, and updateTrackingCurve.
- (void) reactToAIMessage: | (NSString *) | message | |
context: | (NSString *) | debugContext |
Definition at line 14717 of file ShipEntity.m.
References AI::reactToMessage:context:.
Referenced by broadcastEnergyBlastImminent, broadcastHitByLaserFrom:, doScriptEvent:andReactToAIMessage:, doScriptEvent:withArgument:andReactToAIMessage:, fireMissileWithIdentifier:andTarget:, fireSubentityLaserShot:, ShipEntity(AI)::groupAttackTarget, ShipEntity(PureAI)::messageMother:, ShipReactToAIMessage(), OOECMBlastEntity::update:, ShipEntity(AI)::wormholeEscorts, and ShipEntity(PureAI)::wormholeGroup.
- (OOAlertCondition) realAlertCondition |
Reimplemented in PlayerEntity.
Definition at line 14759 of file ShipEntity.m.
References _escortGroup, _group, ALERT_CONDITION_DOCKED, ALERT_CONDITION_RED, ALERT_CONDITION_YELLOW, hasHostileTarget, Entity::isPlayer, Entity::isShip, nil, OOShipGroup::objectEnumerator, OOWeakSet::objectEnumerator, PLAYER, Entity::position, primaryTargetWithoutValidityCheck, realAlertCondition, scannerRange, and Entity::status.
Referenced by isMissile, and realAlertCondition.
- (void) recallDockingInstructions |
Provided by category ShipEntity(AI).
Definition at line 599 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::requestDockingCoordinates.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2140 of file ShipEntityAI.m.
- (void) receiveCommsMessage: | (NSString *) | message_text | |
from: | (ShipEntity *) | other |
Reimplemented in PlayerEntity.
Definition at line 14240 of file ShipEntity.m.
References doScriptEvent:withArgument:andArgument:.
Referenced by broadcastMessage:withUnpilotedOverride:, PlayerEntity::receiveCommsMessage:from:, and sendMessage:toShip:withUnpilotedOverride:.
- (Vector) reference |
References reportAIMessages.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 13790 of file ShipEntity.m.
References JSValueToVector(), kZeroVector, OOJSAcquireContext(), OOJSRelinquishContext(), and ShipEntity(Private)::refreshEscortPositions.
Referenced by ShipEntity(Private)::refreshEscortPositions, setUpEscorts, ShipEntity(Private)::setUpMixedEscorts, and update:.
|
implementation |
Definition at line 9085 of file ShipEntity.m.
References Entity::boundingBox, AI::exitStateMachineWithMessage:, EXPECT_NOT, getAI, Entity::isPlayer, maxThrust, nil, OORandomPositionInBoundingBox(), Entity::position, quaternion_set_random(), randomEjectaTemperature, Ranrot(), ranrot_rand, releaseCargoPodsDebris, Entity::setOrientation:, setOwner:, Entity::setPosition:, Entity::setScanClass:, setTemperature:, setThrust:, Entity::setVelocity:, and velocity.
Referenced by becomeExplosion, becomeLargeExplosion:, and releaseCargoPodsDebris.
- (Entity *) rememberedShip |
Definition at line 9994 of file ShipEntity.m.
References _rememberedShip, DESTROY, nil, rememberedShip, and OOWeakReference::weakRefUnderlyingObject.
Referenced by maxFlightSpeed, and rememberedShip.
- (void) removeAllDefenseTargets |
Definition at line 11225 of file ShipEntity.m.
References removeAllDefenseTargets, and OOWeakSet::removeAllObjects.
Referenced by isMissile, and removeAllDefenseTargets.
- (void) removeAllEquipment |
Definition at line 3897 of file ShipEntity.m.
References _equipment, nil, and removeAllEquipment.
Referenced by dealloc, PlayerEntity::getDestroyedBy:damageType:, isFrangible, PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, removeAllEquipment, removeEquipmentItem:, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setUpShipFromDictionary:, and ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:.
- (BOOL) removeCargo: | (OOCommodityType) | commodity | |
amount: | (OOCargoQuantity) | amount |
Definition at line 8470 of file ShipEntity.m.
References cargo, commodityType, and nil.
- (void) removeCollisionException: | (ShipEntity *) | ship |
Definition at line 11139 of file ShipEntity.m.
References _collisionExceptions, nil, and OOWeakSet::removeObject:.
Referenced by ShipRemoveCollisionException().
- (void) removeDefenseTarget: | (Entity *) | target |
Definition at line 11231 of file ShipEntity.m.
References OOWeakSet::removeObject:.
Referenced by ShipEntity(PureAI)::becomeUncontrolledThargon, behaviour_track_as_turret:, fireDirectLaserDefensiveShot, noteLostTarget, noteTargetDestroyed:, and validateDefenseTargets.
- (void) removeEquipmentItem: | (NSString *) | equipmentKey |
Reimplemented in PlayerEntity.
Definition at line 3642 of file ShipEntity.m.
References _equipment, count, disengageAutopilot, doScriptEvent:withArgument:, Entity::energy, energy_recharge_rate, equipment_weight, OOEquipmentType::equipmentTypeWithIdentifier:, extra_cargo, hasDockingComputer, isCloaked, Entity::isPlayer, isThargoid, max_cargo, Entity::maxEnergy, nil, removeAllEquipment, removeExternalStore:, OOEquipmentType::requiredCargoSpace, setCloaked:, and Entity::status.
Referenced by abandonShip, launchCascadeMine, Universe::makeDemoShipWithRole:spinning:, PlayerEntity::removeEquipmentItem:, Universe::setupIntroFirstGo:, ShipRemoveEquipment(), ShipSetEquipmentStatus(), and Universe::update:.
- (void) removeExhaust: | (OOExhaustPlumeEntity *) | exhaust |
Definition at line 9506 of file ShipEntity.m.
References Entity::setOwner:.
Referenced by ExhaustPlumeRemove().
- (BOOL) removeExternalStore: | (OOEquipmentType *) | eqType |
Reimplemented in PlayerEntity.
Definition at line 3727 of file ShipEntity.m.
References OOEquipmentType::identifier, missile_list, and missiles.
Referenced by removeEquipmentItem:, and PlayerEntity::removeFromPylon:.
- (void) removeFlasher: | (OOFlasherEntity *) | flasher |
Definition at line 9513 of file ShipEntity.m.
References Entity::setOwner:.
Referenced by FlasherRemove().
- (OOCreditsQuantity) removeMissiles |
Reimplemented in PlayerEntity.
Definition at line 3904 of file ShipEntity.m.
References missiles, and removeMissiles.
Referenced by isFrangible, removeMissiles, ShipAwardEquipment(), and ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:.
- (void) removeRole: | (NSString *) | role |
Definition at line 7288 of file ShipEntity.m.
References nil, roleSet, and OORoleSet::roleSetWithRemovedRole:.
Referenced by setIsBoulder:.
- (void) removeScript |
Definition at line 1148 of file ShipEntity.m.
References nil, removeScript, and script.
Referenced by removeScript, and ShipRemove().
- (void) removeTarget: | (Entity *) | targetEntity |
Definition at line 10073 of file ShipEntity.m.
References _primaryTarget, DESTROY, nil, noteLostTarget, and shipSubEntityEnumerator.
Referenced by ShipEntity(PureAI)::becomeUncontrolledThargon, PlayerEntity::doBookkeeping:, noteTargetDestroyed:, ShipEntity(AI)::recallDockingInstructions, PlayerEntity::safeAllMissiles, PlayerEntity::selectNextMissile, and ShipEntity(OOJavaScriptExtensions)::setTargetForScript:.
|
implementation |
Definition at line 798 of file ShipEntity.m.
Referenced by serializeShipSubEntities.
- (BOOL) reportAIMessages |
References checkForAegis, crew, destinationSystem, findNearestPlanet, findNearestPlanetExcludingMoons, findNearestStellarBody, forceAegisCheck, homeSystem, transitionToAegisNone, and withinStationAegis.
- (void) requestDockingCoordinates |
Provided by category ShipEntity(AI).
Definition at line 542 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2233 of file ShipEntityAI.m.
|
implementation |
Reimplemented from <OOSubEntity>.
Provided by category ShipEntity(Private).
Definition at line 9043 of file ShipEntity.m.
References rescaleBy:writeToCache:.
|
implementation |
Reimplemented from <OOSubEntity>.
Provided by category ShipEntity(Private).
Definition at line 9049 of file ShipEntity.m.
References OOMesh::meshWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget:scaleFactor:cacheWriteable:, nil, Entity::position, rescaleBy:writeToCache:, setMesh:, Entity::setPosition:, and shipInfoDictionary.
Referenced by Universe::addWreckageFrom:withRole:at:scale:lifetime:, ShipEntity(Private)::rescaleBy:, and ShipEntity(Private)::rescaleBy:writeToCache:.
- (void) resetExhaustPlumes |
Definition at line 9800 of file ShipEntity.m.
References exhaustEnumerator, nil, resetExhaustPlumes, and OOExhaustPlumeEntity::resetPlume.
Referenced by EntitySetProperty(), DockEntity::launchShip:, maxFlightSpeed, PlayerEntity(OOPrivate)::performWitchspaceExitUpdates:, resetExhaustPlumes, and wasAddedToUniverse.
- (void) resetShotTime |
Definition at line 11638 of file ShipEntity.m.
References resetShotTime, and shot_time.
Referenced by coordinates, fireDirectLaserShotAt:, fireLaserShotInDirection:weaponIdentifier:, fireMissileWithIdentifier:andTarget:, fireSubentityLaserShot:, fireTurretCannon:, PlayerEntity::launchEscapeCapsule, resetShotTime, and PlayerEntity(OOPrivate)::showGameOver.
Definition at line 2960 of file ShipEntity.m.
References bounty, doScriptEvent:withArgument:, doScriptEvent:withArgument:andReactToAIMessage:, group, hasNewAI, isPolice, Entity::isShip, OOShipGroup::leader, nil, randf(), OOShipGroup::removeShip:, respondToAttackFrom:becauseOf:, setFoundTarget:, and setPrimaryAggressor:.
Referenced by respondToAttackFrom:becauseOf:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, and StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (void) resumePostProximityAlert |
Definition at line 6874 of file ShipEntity.m.
References _destination, _primaryTarget, _proximityAlert, behaviour, desired_range, desired_speed, DESTROY, frustration, nil, previousCondition, resumePostProximityAlert, and startTrackingCurve.
Referenced by behaviour_avoid_collision:, reactionTime, and resumePostProximityAlert.
- (Vector) rightVector |
Definition at line 1283 of file ShipEntity.m.
References rightVector, and v_right.
Referenced by rightVector, totalBoundingBox, and OOExhaustPlumeEntity::update:.
- (OORoleSet *) roleSet |
References primaryRole.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2267 of file ShipEntityAI.m.
- (GLfloat) rollToMatchUp: | (Vector) | up_vec | |
rotating: | (GLfloat) | match_roll |
Definition at line 11082 of file ShipEntity.m.
References Entity::isPlayer, max_flight_roll, v_right, and v_up.
Referenced by trackDestination:delta_t:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2601 of file ShipEntityAI.m.
- (NSDictionary *) savedShipDictionaryWithContext: | (NSMutableDictionary *) | context |
Provided by category ShipEntity(LoadRestore).
Definition at line 79 of file ShipEntityLoadRestore.m.
|
implementation |
Reimplemented from Entity.
Definition at line 2063 of file ShipEntity.m.
References cloaking_device_active, and scanClass.
Referenced by PlayerEntity::addRoleForAggression:, Universe::addShipAt:withRole:withinRadius:, Universe::addShips:withRole:atPosition:withCoordinateSystem:, AuthorityPredicate, avoidCollision, StationEntity::becomeExplosion, behaviour_idle:, behaviour_intercept_target:, behaviour_track_as_turret:, broadcastHitByLaserFrom:, canAcceptEscort:, canScoop:, cascadeIfAppropriateWithDamageAmount:cascadeOwner:, PlayerEntity::collectBountyFor:, ShipEntity(PureAI)::fightOrFleeMissile, fireDirectLaserDefensiveShot, fireMissileWithIdentifier:andTarget:, interpretAIMessage:, isFriendlyTo:, isPolice, isThargoid, isUnpiloted, PlayerEntity::isValidTarget:, isValidTarget:, StationEntity::launchDefenseShip, StationEntity::launchIndependentShip:, StationEntity::launchPatrol, StationEntity::launchPolice, StationEntity::launchShipWithRole:, legalStatus, markAsOffender:withReason:, scanClass, scanDescription, ShipEntity(PureAI)::scanForFormationLeader, ShipEntity(OOAIPrivate)::scanForNearestShipWithPredicate:parameter:, ShipEntity(PureAI)::scanForOffenders, scannerDisplayColorForShip:otherShip:isHostile:flash:scannerDisplayColor1:scannerDisplayColor2:scannerDisplayColorH1:, setAccuracy:, setBounty:withReason:, setCommsMessageColor, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, trackPrimaryTarget:delta_t:, trackSideTarget:delta_t:, update:, and StationEntity::update:.
- (NSString *) scanDescription |
Definition at line 7165 of file ShipEntity.m.
References DESC, legalStatus, nil, scan_description, scanClass, and scanDescription.
Referenced by displayName, HeadUpDisplay::hudDrawReticleOnTarget, and scanDescription.
- (NSString *) scanDescriptionForScripting |
Definition at line 7159 of file ShipEntity.m.
References scan_description, and scanDescriptionForScripting.
Referenced by displayName, scanDescriptionForScripting, and ShipGetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1881 of file ShipEntityAI.m.
- (void) scanForHostiles |
Provided by category ShipEntity(AI).
Definition at line 314 of file ShipEntityAI.m.
Referenced by PlayerEntity(Scripting)::targetNearestHostile.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1057 of file ShipEntityAI.m.
- (void) scanForNearestIncomingMissile |
Provided by category ShipEntity(AI).
Definition at line 624 of file ShipEntityAI.m.
Referenced by PlayerEntity(Scripting)::targetNearestIncomingMissile.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 994 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2302 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2289 of file ShipEntityAI.m.
Referenced by ShipEntity(PureAI)::thargonCheckMother.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2349 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2335 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2322 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2295 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2877 of file ShipEntityAI.m.
Referenced by ShipEntity(PureAI)::scanForNearestShipNotHavingAnyRole:, ShipEntity(PureAI)::scanForNearestShipNotHavingRole:, ShipEntity(PureAI)::scanForNearestShipWithoutAnyPrimaryRole:, ShipEntity(PureAI)::scanForNearestShipWithoutPrimaryRole:, and ShipEntity(PureAI)::scanForNearestShipWithoutScanClass:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2328 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2316 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2342 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2849 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::scanForNearestIncomingMissile, ShipEntity(PureAI)::scanForNearestShipHavingAnyRole:, ShipEntity(PureAI)::scanForNearestShipHavingRole:, ShipEntity(PureAI)::scanForNearestShipMatchingPredicate:, ShipEntity(PureAI)::scanForNearestShipWithAnyPrimaryRole:, ShipEntity(OOAIPrivate)::scanForNearestShipWithNegatedPredicate:parameter:, ShipEntity(PureAI)::scanForNearestShipWithPrimaryRole:, and ShipEntity(PureAI)::scanForNearestShipWithScanClass:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2283 of file ShipEntityAI.m.
Referenced by ShipEntity(PureAI)::scanForThargoid.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2309 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1698 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1563 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1108 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1028 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2167 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1692 of file ShipEntityAI.m.
- (ShipEntity **) scannedShips |
Definition at line 9905 of file ShipEntity.m.
References nil, scanned_ships, and scannedShips.
Referenced by maxFlightSpeed, and scannedShips.
- (OOColor *) scannerDisplayColor1 |
Definition at line 6628 of file ShipEntity.m.
References scannerDisplayColor1.
Referenced by HeadUpDisplay(Private)::drawScanner:, reactionTime, scannerDisplayColor1, scannerDisplayColorForShip:otherShip:isHostile:flash:scannerDisplayColor1:scannerDisplayColor2:scannerDisplayColorH1:, and ShipGetProperty().
- (OOColor *) scannerDisplayColor2 |
Definition at line 6634 of file ShipEntity.m.
References scannerDisplayColor2.
Referenced by HeadUpDisplay(Private)::drawScanner:, reactionTime, scannerDisplayColor2, scannerDisplayColorForShip:otherShip:isHostile:flash:scannerDisplayColor1:scannerDisplayColor2:scannerDisplayColorH1:, and ShipGetProperty().
- (GLfloat *) scannerDisplayColorForShip: | (ShipEntity*) | ||
otherShip: | (BOOL) | ||
isHostile: | (BOOL) | ||
flash: | (OOColor *) | ||
scannerDisplayColor1: | (OOColor *) | ||
scannerDisplayColor2: | (OOColor *) | ||
scannerDisplayColorH1: | (OOColor *) | scannerDisplayColorH2 |
Definition at line 6498 of file ShipEntity.m.
References cargo_color, friendly_color, OOColor::getRed:green:blue:alpha:, hasMilitaryScannerFilter, hostile_color, isJammingScanning, jammed_color, mascem_color1, mascem_color2, missile_color, neutral_color, police_color1, police_color2, scanClass, scannerDisplayColor1, scannerDisplayColor2, and scripted_color.
- (OOColor *) scannerDisplayColorHostile1 |
Definition at line 6658 of file ShipEntity.m.
References scannerDisplayColorHostile1.
Referenced by HeadUpDisplay(Private)::drawScanner:, reactionTime, scannerDisplayColorHostile1, and ShipGetProperty().
- (OOColor *) scannerDisplayColorHostile2 |
Definition at line 6664 of file ShipEntity.m.
References scannerDisplayColorHostile2.
Referenced by HeadUpDisplay(Private)::drawScanner:, reactionTime, scannerDisplayColorHostile2, and ShipGetProperty().
- (GLfloat) scannerRange |
References reference.
- (void) scoopIn: | (ShipEntity *) | other |
Definition at line 12907 of file ShipEntity.m.
Referenced by collideWithShip:.
- (void) scoopUp: | (ShipEntity *) | other |
Definition at line 12919 of file ShipEntity.m.
References scoopUpProcess:processEvents:processMessages:.
Referenced by behaviour_tractored:.
- (void) scoopUpProcess: | (ShipEntity *) | other | |
processEvents: | (BOOL) | proc_events | |
processMessages: | (BOOL) | proc_messages |
Definition at line 12925 of file ShipEntity.m.
References cargo, cargo_flag, CARGO_FLAG_CANISTERS, CARGO_RANDOM, CARGO_SCRIPTED_ITEM, cargoType, checkScannerIgnoringUnpowered, Entity::collisionArray, commodityType, count, crew, doScriptEvent:withArgument:, Entity::isPlayer, legalStatus, max_cargo, maxAvailableCargoSpace, AI::message:, n_scanned_ships, OOCharacter::name, nil, noteLostTarget, PLAYER, primaryTargetWithoutValidityCheck, scanned_ships, PlayerEntity::setScriptTarget:, Entity::setStatus:, showScoopMessage, Entity::status, and suppressTargetLost.
Referenced by scoopUp:, and ShipAddCargoEntity().
- (OOJSScript *) script |
References scriptInfo.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2567 of file ShipEntityAI.m.
- (BOOL) scriptedMisjump |
Definition at line 1289 of file ShipEntity.m.
References scripted_misjump, and scriptedMisjump.
Referenced by PlayerEntity::enterWitchspace, PlayerEntity::enterWormhole:, enterWormhole:replacing:, scriptedMisjump, and scriptInfo.
- (GLfloat) scriptedMisjumpRange |
Definition at line 1301 of file ShipEntity.m.
References _scriptedMisjumpRange, and scriptedMisjumpRange.
Referenced by PlayerEntity::enterWitchspace, PlayerEntity::enterWormhole:, enterWormhole:replacing:, scriptedMisjumpRange, and scriptInfo.
- (NSDictionary *) scriptInfo |
References entityForShaderProperties, isDemoShip, scriptedMisjump, and scriptedMisjumpRange.
- (OOEquipmentType *) selectMissile |
Definition at line 3838 of file ShipEntity.m.
References _missileRole, hasAutoWeapons, OOEquipmentType::identifier, isThargoid, name, nil, OOLogERR, OOLogWARN, randf(), selectMissile, and verifiedMissileTypeFromRole:.
Referenced by isFrangible, selectMissile, setUpShipFromDictionary:, and ShipSelectNewMissile().
- (void) sendAIMessage: | (NSString *) | message |
Definition at line 14723 of file ShipEntity.m.
References AI::message:.
Referenced by DockEntity::abortAllDockings, StationEntity::abortDockingForShip:, ShipEntity(PureAI)::messageSelf:, DockEntity::pruneAndCountShipsOnApproach, and ShipSendAIMessage().
- (void) sendExpandedMessage: | (NSString *) | message_text | |
toShip: | (ShipEntity*) | other_ship |
Definition at line 14151 of file ShipEntity.m.
References Random_Seed::a, Random_Seed::b, Random_Seed::c, crew, Random_Seed::d, displayName, Random_Seed::e, Random_Seed::f, identFromShip:, kOOExpandNoOptions, lastRadioMessage, messageTime, nil, OOExpandDescriptionString(), OOStringExpanderDefaultRandomSeed(), Entity::position, scannerRange, seed_RNG_only_for_planet_description(), and sendMessage:toShip:withUnpilotedOverride:.
Referenced by DockEntity::abortAllDockings, StationEntity::abortAllDockings, DockEntity::abortDockingForShip:, StationEntity::acceptDockingClearanceRequestFrom:, DockEntity(OOPrivate)::addShipToShipsOnApproach:, ShipEntity(AI)::broadcastDistressMessageWithDumping:, DockEntity::dockingInstructionsForShip:, StationEntity(OOPrivate)::holdPositionInstructionForShip:, interpretAIMessage:, StationEntity::noteDockedShip:, ShipEntity(AI)::requestDockingCoordinates, ShipEntity(PureAI)::sendTargetCommsMessage:, and StationEntity::update:.
- (void) sendMessage: | (NSString *) | message_text | |
toShip: | (ShipEntity*) | other_ship | |
withUnpilotedOverride: | (BOOL) | unpilotedOverride |
Definition at line 14128 of file ShipEntity.m.
References crew, Entity::isPlayer, messageTime, OOExpand, Entity::position, PlayerEntity::receiveCommsMessage:from:, receiveCommsMessage:from:, scannerRange, and setCommsMessageColor.
Referenced by sendExpandedMessage:toShip:, and ShipCommsMessage().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2621 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2085 of file ShipEntityAI.m.
- (NSString *) serializeShipSubEntities |
Definition at line 813 of file ShipEntity.m.
References maxShipSubEntities, nil, repeatString:times:, serializeShipSubEntities, shipSubEntityEnumerator, and subIdx.
Referenced by PlayerEntity::commanderDataDictionary, serializeShipSubEntities, and subEntities.
- (void) setAccuracy: | (GLfloat) | new_accuracy |
Definition at line 1223 of file ShipEntity.m.
References accuracy, aim_tolerance, COMBAT_AI_ISNT_AWFUL, missile_load_time, pitch_tolerance, and scanClass.
Referenced by setUpShipFromDictionary:, and ShipSetProperty().
- (void) setAfterburnerFactor: | (GLfloat) | new |
Definition at line 4107 of file ShipEntity.m.
References afterburner_speed_factor.
Referenced by ShipSetProperty().
- (void) setAfterburnerRate: | (GLfloat) | new |
Definition at line 4113 of file ShipEntity.m.
References afterburner_rate.
Referenced by ShipSetProperty().
- (void) setAI: | (AI *) | ai |
Definition at line 8002 of file ShipEntity.m.
References AI::clearAllData, and shipAI.
- (void) setAIScript: | (NSString *) | aiString |
Provided by category ShipEntity(AI).
Definition at line 284 of file ShipEntityAI.m.
Referenced by AI::restorePreviousStateMachine, and ShipEntity(AI)::setAITo:.
- (void) setAIScriptWakeTime: | (OOTimeAbsolute) | t |
Definition at line 1414 of file ShipEntity.m.
References aiScriptWakeTime.
Referenced by ShipSetProperty().
- (void) setAITo: | (NSString *) | aiString |
Provided by category ShipEntity(AI).
Definition at line 252 of file ShipEntityAI.m.
Referenced by abandonShip, ShipEntity(PureAI)::becomeUncontrolledThargon, deployEscorts, dockEscorts, getTractoredBy:, Universe::newShipWithRole:, PlayerEntity::resetAutopilotAI, ShipEntity(PureAI)::scanForFormationLeader, PlayerEntity(Scripting)::sendAllShipsAway, ShipEntity(AI)::setAITo:, ShipEntity(PureAI)::setPlanetPatrolCoordinates, setStateMachine:, setUpShipFromDictionary:, ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, ShipSetAI(), PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, and ShipEntity(AI)::switchAITo:.
- (void) setAutoCloak: | (BOOL) | automatic |
Definition at line 6695 of file ShipEntity.m.
References cloakAutomatic.
Referenced by ShipSetProperty().
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1552 of file ShipEntity.m.
References _beaconCode, _beaconDrawable, _beaconLabel, DESTROY, nil, and setBeaconLabel:.
Referenced by WormholeEntity::disgorgeShips, setUpShipFromDictionary:, and ShipSetProperty().
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1577 of file ShipEntity.m.
References _beaconLabel, and nil.
Referenced by setBeaconCode:, setUpShipFromDictionary:, and ShipSetProperty().
- (void) setBehaviour: | (OOBehaviour) | cond |
Definition at line 10250 of file ShipEntity.m.
References behaviour, and frustration.
Referenced by launchCascadeMine, PlayerEntity::launchMine:, PlayerEntity(Scripting)::processSceneString:atOffset:, setUpOneStandardSubentity:asTurret:, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (void) setBounty: | (OOCreditsQuantity) | amount |
Reimplemented in PlayerEntity.
Definition at line 8246 of file ShipEntity.m.
References setBounty:withReason:.
- (void) setBounty: | (OOCreditsQuantity) | amount | |
withReason: | (OOLegalStatusReason) | reason |
Reimplemented in PlayerEntity.
Definition at line 8252 of file ShipEntity.m.
References Entity::isSubEntity, OOStringFromLegalStatusReason(), Entity::parentEntity, scanClass, setBounty:withReason:, and setBounty:withReasonAsString:.
Referenced by Universe::addShipAt:withRole:withinRadius:, becomeExplosion, WormholeEntity::disgorgeShips, interpretAIMessage:, StationEntity::launchIndependentShip:, StationEntity::launchPatrol, StationEntity::launchPirateShip, StationEntity::launchPolice, Universe::newShipWithRole:, setBounty:, setBounty:withReason:, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, setUpShipFromDictionary:, ShipSetProperty(), update:, and Universe::witchspaceShipWithPrimaryRole:.
- (void) setBounty: | (OOCreditsQuantity) | amount | |
withReasonAsString: | (NSString *) | reason |
Reimplemented in PlayerEntity.
Definition at line 8273 of file ShipEntity.m.
References bounty, Entity::isSubEntity, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromNativeObject(), Entity::parentEntity, setBounty:withReasonAsString:, and ShipScriptEvent.
Referenced by setBounty:withReason:, setBounty:withReasonAsString:, and ShipSetBounty().
- (void) setCargo: | (NSArray *) | some_cargo |
Definition at line 8449 of file ShipEntity.m.
Referenced by setCargoFlag:.
- (void) setCargoFlag: | (OOCargoFlag) | flag |
Definition at line 8517 of file ShipEntity.m.
References cargo_flag, CARGO_FLAG_FULL_CONTRABAND, CARGO_FLAG_FULL_MEDICAL, CARGO_FLAG_FULL_PASSENGERS, CARGO_FLAG_FULL_PLENTIFUL, CARGO_FLAG_FULL_SCARCE, CARGO_FLAG_FULL_UNIFORM, CARGO_FLAG_NONE, CARGO_FLAG_PIRATE, likely_cargo, maxAvailableCargoSpace, nil, randf(), and setCargo:.
Referenced by Universe::addShipAt:withRole:withinRadius:, StationEntity::launchEscort, StationEntity::launchIndependentShip:, PlanetEntity::launchShuttle, StationEntity::launchShuttle, ShipSetCargoType(), and Universe::witchspaceShipWithPrimaryRole:.
- (void) setCloaked: | (BOOL) | cloak |
Definition at line 6682 of file ShipEntity.m.
References activateCloakingDevice, and deactivateCloakingDevice.
Referenced by removeEquipmentItem:, and ShipSetProperty().
- (void) setCommodity: | (OOCommodityType) | co_type | |
andAmount: | (OOCargoQuantity) | co_amount |
Definition at line 8322 of file ShipEntity.m.
References commodity_amount, commodity_type, DESTROY, and nil.
Referenced by PlayerEntity(ScriptMethods)::awardCommodityType:amount:, becomeExplosion, Universe::cargoPodFromTemplate:, PlayerEntity::createCargoPodWithType:andAmount:, Universe::fillCargopodWithRandomCargo:, ShipEntity(Private)::launchPodWithCrew:, PlayerEntity::loadCargoPodsForType:amount:, setCommodityForPod:andAmount:, Universe(OOPrivate)::setUpCargoPods, and PlayerEntity::unloadCargoPodsForType:amount:.
- (void) setCommodityForPod: | (OOCommodityType) | co_type | |
andAmount: | (OOCargoQuantity) | co_amount |
Definition at line 8337 of file ShipEntity.m.
References commodity_amount, commodity_type, DESTROY, nil, setCommodity:andAmount:, UNITS_GRAMS, UNITS_KILOGRAMS, and UNITS_TONS.
Referenced by setUpShipFromDictionary:, and ShipSetCargo().
- (void) setCommsMessageColor |
Definition at line 14229 of file ShipEntity.m.
References OOColor::colorWithHue:saturation:brightness:alpha:, OOColor::cyanColor, OOColor::greenColor, scanClass, setCommsMessageColor, and Entity::universalID.
Referenced by broadcastMessage:withUnpilotedOverride:, sendMessage:toShip:withUnpilotedOverride:, setCommsMessageColor, and sunGlareFilter.
- (void) setCoordinate: | (HPVector) | coord |
Definition at line 10270 of file ShipEntity.m.
References coordinates.
Referenced by ShipSetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2447 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1225 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1311 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1604 of file ShipEntityAI.m.
- (void) setCrew: | (NSArray *) | crewArray |
Definition at line 7951 of file ShipEntity.m.
References crew, isExplicitlyUnpiloted, and nil.
Referenced by Universe::addShipAt:withRole:withinRadius:, Universe::addShipWithRole:launchPos:rfactor:, launchEscapeCapsule, ShipEntity(Private)::launchPodWithCrew:, PlayerEntity(Contracts)::processEscapePods, setSingleCrewWithRole:, setUpShipFromDictionary:, ShipSetCrew(), and Universe::witchspaceShipWithPrimaryRole:.
- (void) setDemoShip: | (OOScalar) | demoRate |
Definition at line 14606 of file ShipEntity.m.
References demoRate, demoStartOrientation, isDemoShip, Entity::orientation, setPitch:, and setRoll:.
Referenced by Universe::makeDemoShipWithRole:spinning:, Universe::setupIntroFirstGo:, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, and Universe::update:.
- (void) setDemoStartTime: | (OOTimeAbsolute) | time |
Definition at line 14620 of file ShipEntity.m.
References demoStartTime.
Referenced by Universe::setupIntroFirstGo:, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, and Universe::update:.
- (void) setDesiredRange: | (double) | amount |
Definition at line 8602 of file ShipEntity.m.
References desired_range.
Referenced by ShipSetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 916 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 911 of file ShipEntityAI.m.
- (void) setDesiredSpeed: | (double) | amount |
Definition at line 8584 of file ShipEntity.m.
References desired_speed.
Referenced by PlayerEntity::launchEscapeCapsule, DockEntity::launchShip:, ShipSetProperty(), and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (void) setDestination: | (HPVector) | dest |
Definition at line 13675 of file ShipEntity.m.
References _destination, and frustration.
Referenced by Universe::setupIntroFirstGo:, and Universe::update:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1219 of file ShipEntityAI.m.
- (void) setDestinationSystem: | (OOSystemID) | s |
Definition at line 7923 of file ShipEntity.m.
References destination_system.
Referenced by ShipSetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 896 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2211 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 903 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1620 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1425 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1614 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1433 of file ShipEntityAI.m.
- (void) setDisplayName: | (NSString *) | inName |
Definition at line 7229 of file ShipEntity.m.
References displayName.
Referenced by setUpOneStandardSubentity:asTurret:, and ShipSetProperty().
- (void) setEnergyRechargeRate: | (GLfloat) | new |
Definition at line 7508 of file ShipEntity.m.
References energy_recharge_rate.
Referenced by ShipSetProperty().
- (void) setEntityPersonalityInt: | (uint16_t) | value |
Definition at line 9784 of file ShipEntity.m.
References entity_personality, ENTITY_PERSONALITY_MAX, mesh, and OOMesh::rebindMaterials.
Referenced by PlayerEntity(Contracts)::buySelectedShip, PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, MissionRunScreen(), PlayerReplaceShip(), PlayerEntity(Contracts)::replaceShipWithNamedShip:, setUpOneStandardSubentity:asTurret:, ShipSetProperty(), and PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:.
- (void) setEscortDestination: | (HPVector) | dest |
Definition at line 13682 of file ShipEntity.m.
References _destination.
Referenced by ShipSetProperty(), and update:.
- (void) setEscortGroup: | (OOShipGroup *) | group |
Definition at line 6944 of file ShipEntity.m.
References _escortGroup, group, OOShipGroup::setLeader:, and updateEscortFormation.
Referenced by ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, and update:.
- (void) setEvasiveJink: | (GLfloat) | z |
Definition at line 10409 of file ShipEntity.m.
References accuracy, COMBAT_AI_ISNT_AWFUL, jink, kZeroVector, and ranrot_rand.
Referenced by behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_sniper:, behaviour_attack_target:, behaviour_evasive_action:, ShipEntity(AI)::performFlee, and trackPrimaryTarget:delta_t:.
- (void) setExhaustEmissiveColor: | (OOColor *) | color |
Definition at line 11707 of file ShipEntity.m.
References exhaust_emissive_color.
Referenced by ShipSetProperty().
- (void) setFoundTarget: | (Entity *) | targetEntity |
Reimplemented in PlayerEntity.
Definition at line 9930 of file ShipEntity.m.
References _foundTarget, and OOWeakRefObject::weakRetain.
Referenced by ShipEntity(OOAIPrivate)::acceptDistressMessageFrom:, broadcastEnergyBlastImminent, broadcastHitByLaserFrom:, enterWormhole:replacing:, ShipEntity(PureAI)::fightOrFleeHostiles, ShipEntity(PureAI)::fightOrFleeMissile, fireSubentityLaserShot:, ShipEntity(AI)::groupAttackTarget, ShipEntity(OOAIPrivate)::performHyperSpaceExitReplace:toSystem:, ShipEntity(PureAI)::recallStoredTarget, ShipEntity(PureAI)::requestNewTarget, respondToAttackFrom:becauseOf:, ShipEntity(PureAI)::scanForFormationLeader, ShipEntity(AI)::scanForHostiles, ShipEntity(PureAI)::scanForLoot, ShipEntity(PureAI)::scanForNearestMerchantman, ShipEntity(OOAIPrivate)::scanForNearestShipWithPredicate:parameter:, ShipEntity(PureAI)::scanForNonThargoid, ShipEntity(PureAI)::scanForOffenders, ShipEntity(PureAI)::scanForRandomLoot, ShipEntity(PureAI)::scanForRandomMerchantman, ShipEntity(PureAI)::scanForRocks, ShipSetProperty(), takeEnergyDamage:from:becauseOf:weaponIdentifier:, and StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (void) setFuel: | (OOFuelQuantity) | amount |
Definition at line 8110 of file ShipEntity.m.
References fuel, and fuelCapacity.
Referenced by ShipEntity(PureAI)::addFuel:, PlayerEntity(Scripting)::awardEquipment:, PlayerEntity(Scripting)::awardFuel:, PlayerEntity::doBookkeeping:, StationEntity::launchIndependentShip:, Universe::makeSunSkimmer:andSetAI:, PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, PlayerEntity(Scripting)::sendAllShipsAway, PlayerEntity(Scripting)::setFuelLeak:, ShipSetProperty(), and update:.
- (void) setGroup: | (OOShipGroup *) | group |
Definition at line 6914 of file ShipEntity.m.
References _escortGroup, _group, OOShipGroup::addShip:, group, OOShipGroup::leader, OOShipGroup::removeShip:, OOShipGroup::setLeader:, and updateEscortFormation.
Referenced by abandonShip, acceptAsEscort:, Universe::addShipsAt:withRole:quantity:withinRadius:asGroup:, ShipEntity(PureAI)::becomeUncontrolledThargon, deployEscorts, dockEscorts, ShipEntity(PureAI)::escortCheckMother, fireMissileWithIdentifier:andTarget:, StationEntity::launchDefenseShip, StationEntity::launchIndependentShip:, StationEntity::launchMiner, StationEntity::launchPatrol, StationEntity::launchPirateShip, StationEntity::launchPolice, StationEntity::launchScavenger, StationEntity::launchShipWithRole:, OOShipGroup::removeShip:, setUpEscorts, ShipEntity(Private)::setUpMixedEscorts, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, StationEntity::setUpShipFromDictionary:, ShipGroupAddShip(), ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, ShipSetProperty(), ShipEntity(AI)::suggestEscortTo:, and ShipEntity(PureAI)::thargonCheckMother.
- (void) setHeatInsulation: | (GLfloat) | value |
Definition at line 8827 of file ShipEntity.m.
References _heatInsulation.
Referenced by Universe::addWreckageFrom:withRole:at:scale:lifetime:, StationEntity::launchDefenseShip, StationEntity::launchMiner, StationEntity::launchPatrol, StationEntity::launchPirateShip, StationEntity::launchPolice, StationEntity::launchScavenger, Universe::makeSunSkimmer:andSetAI:, PlayerEntity::setCommanderDataFromDictionary:, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, setUpShipFromDictionary:, and ShipSetProperty().
- (void) setHomeSystem: | (OOSystemID) | s |
Definition at line 7917 of file ShipEntity.m.
References home_system.
Referenced by ShipSetProperty().
- (void) setHulk: | (BOOL) | isNowHulk |
Definition at line 8966 of file ShipEntity.m.
References isHulk, and Entity::isSubEntity.
Referenced by launchEscapeCapsule, and setUpShipFromDictionary:.
- (void) setHyperspaceSpinTime: | (float) | new |
Definition at line 3219 of file ShipEntity.m.
References hyperspaceMotorSpinTime.
Referenced by ShipSetProperty().
- (void) setIsBoulder: | (BOOL) | flag |
Definition at line 1659 of file ShipEntity.m.
References addRole:, and removeRole:.
Referenced by becomeExplosion, and ShipSetProperty().
- (void) setIsMissileFlag: | (BOOL) | newValue |
Definition at line 12323 of file ShipEntity.m.
References isMissile.
Referenced by fireMissileWithIdentifier:andTarget:, and ShipEntity(ScriptMethods)::spawnShipsWithRole:count:.
- (void) setIsWreckage: | (BOOL) | isw |
Definition at line 9158 of file ShipEntity.m.
References isWreckage.
Referenced by Universe::addWreckageFrom:withRole:at:scale:lifetime:.
- (void) setLaserColor: | (OOColor *) | color |
Definition at line 11697 of file ShipEntity.m.
References laser_color.
Referenced by setWeaponDataFromType:.
- (void) setLastAegisLock: | (Entity<OOStellarBody> *) | lastAegisLock |
Definition at line 7898 of file ShipEntity.m.
References _lastAegisLock.
Referenced by checkForAegis, and PlayerEntity::completeSetUpAndSetTarget:.
- (void) setLastEscortTarget: | (Entity *) | targetEntity |
Definition at line 9968 of file ShipEntity.m.
References _lastEscortTarget, and OOWeakRefObject::weakRetain.
Referenced by deployEscorts.
- (void) setLaunchDelay: | (double) | delay |
Definition at line 7939 of file ShipEntity.m.
References launch_delay.
Referenced by DockEntity::launchShip:.
- (void) setMaxAvailableCargoSpace: | (OOCargoQuantity) | new |
Definition at line 8374 of file ShipEntity.m.
References equipment_weight, and max_cargo.
Referenced by ShipSetProperty().
- (void) setMaxEscortCount: | (uint8_t) | newCount |
Definition at line 7022 of file ShipEntity.m.
References _maxEscortCount.
Referenced by ShipSetProperty().
- (void) setMaxFlightPitch: | (GLfloat) | new |
Reimplemented in PlayerEntity.
Definition at line 8753 of file ShipEntity.m.
References max_flight_pitch.
Referenced by ShipSetProperty().
- (void) setMaxFlightRoll: | (GLfloat) | new |
Reimplemented in PlayerEntity.
Definition at line 8765 of file ShipEntity.m.
References max_flight_roll.
Referenced by ShipSetProperty().
- (void) setMaxFlightSpeed: | (GLfloat) | new |
Definition at line 8759 of file ShipEntity.m.
References maxFlightSpeed.
Referenced by ShipSetProperty().
- (void) setMaxFlightYaw: | (GLfloat) | new |
Reimplemented in PlayerEntity.
Definition at line 8771 of file ShipEntity.m.
References max_flight_yaw.
Referenced by ShipSetProperty().
- (void) setMaxThrust: | (GLfloat) | new |
Definition at line 4125 of file ShipEntity.m.
References max_thrust.
Referenced by ShipSetProperty().
- (void) setMesh: | (OOMesh *) | mesh |
Definition at line 1254 of file ShipEntity.m.
References mesh, OOMesh::octree, octree, and OOEntityWithDrawable::setDrawable:.
Referenced by PlayerEntity::doBookkeeping:, PlayerEntity::launchEscapeCapsule, ShipEntity(Private)::rescaleBy:writeToCache:, and ShipSetMaterialsInternal().
- (void) setMessageTime: | (double) | value |
Definition at line 6902 of file ShipEntity.m.
References messageTime.
Referenced by HeadUpDisplay::refreshLastTransmitter.
- (void) setMissileLoadTime: | (OOTimeDelta) | newMissileLoadTime |
Definition at line 12335 of file ShipEntity.m.
References missile_load_time.
Referenced by ShipSetProperty().
- (void) setName: | (NSString *) | inName |
Reimplemented in PlayerEntity.
Definition at line 7208 of file ShipEntity.m.
References name.
Referenced by ShipSetProperty().
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1647 of file ShipEntity.m.
References _nextBeacon, and nextBeacon.
Referenced by PlayerEntity::setNextCompassMode, and PlayerEntity::setPrevCompassMode.
|
implementation |
Reimplemented from Entity.
Definition at line 6721 of file ShipEntity.m.
References OOEntityWithDrawable::drawable, Entity::isSubEntity, OODrawable::setBindingTarget:, and Entity::setOwner:.
Referenced by abandonShip, ShipEntity(Private)::addSubEntity:, behaviour_tractored:, dockEscorts, dumpItem:, ShipEntity(PureAI)::escortCheckMother, fireMissileWithIdentifier:andTarget:, getTractoredBy:, launchCascadeMine, StationEntity::launchDefenseShip, PlayerEntity::launchEscapeCapsule, StationEntity::launchIndependentShip:, PlayerEntity::launchMine:, StationEntity::launchPirateShip, ShipEntity(Private)::launchPodWithCrew:, releaseCargoPodsDebris, OOShipGroup::removeShip:, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, setUpShipFromDictionary:, ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, ShipEntity(ScriptMethods)::spawnShipsWithRole:count:, ShipEntity(Private)::subEntityDied:, ShipEntity(AI)::suggestEscortTo:, ShipEntity(PureAI)::thargonCheckMother, and update:.
- (void) setPendingEscortCount: | (uint8_t) | count |
Definition at line 7010 of file ShipEntity.m.
References _maxEscortCount, _pendingEscortCount, count, and MIN.
Referenced by StationEntity::launchIndependentShip:, DockEntity::launchShip:, Universe::makeDemoShipWithRole:spinning:, Universe::setupIntroFirstGo:, and PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:.
- (void) setPitch: | (double) | amount |
Definition at line 8222 of file ShipEntity.m.
References flightPitch, and M_PI.
Referenced by WormholeEntity::disgorgeShips, dumpItem:, launchCascadeMine, DockEntity::launchShip:, PlayerEntity(Scripting)::processSceneString:atOffset:, setDemoShip:, and Universe::setUpSpace.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1937 of file ShipEntityAI.m.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1637 of file ShipEntity.m.
References _prevBeacon, and prevBeacon.
- (void) setPrimaryAggressor: | (Entity *) | targetEntity |
Definition at line 9949 of file ShipEntity.m.
References _primaryAggressor, and OOWeakRefObject::weakRetain.
Referenced by ShipEntity(PureAI)::fightOrFleeHostiles, ShipEntity(PureAI)::fightOrFleeMissile, fireMissileWithIdentifier:andTarget:, fireSubentityLaserShot:, respondToAttackFrom:becauseOf:, ShipSetProperty(), takeEnergyDamage:from:becauseOf:weaponIdentifier:, and StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (void) setPrimaryRole: | (NSString *) | role |
Definition at line 7317 of file ShipEntity.m.
References primaryRole.
Referenced by StationEntity::becomeExplosion, StationEntity::launchDefenseShip, StationEntity::launchIndependentShip:, StationEntity::launchPatrol, StationEntity::launchPirateShip, StationEntity::launchPolice, StationEntity::launchShipWithRole:, Universe::newDockWithName:andScaleFactor:, Universe::newShipWithName:usePlayerProxy:isSubentity:andScaleFactor:, Universe::newShipWithRole:, ShipEntity(PureAI)::scanForFormationLeader, PlayerEntity(Scripting)::sendAllShipsAway, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, PlayerEntity::setUpShipFromDictionary:, ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, and ShipSetProperty().
- (void) setProximityAlert: | (ShipEntity *) | targetEntity |
Definition at line 7055 of file ShipEntity.m.
References _proximityAlert, behaviour, Entity::collision_radius, crew, DESTROY, dockingInstructions, flightSpeed, Entity::isStation, Entity::mass, maxFlightSpeed, nil, Entity::position, proximityAlert, Entity::status, v_forward, v_right, v_up, and OOWeakRefObject::weakRetain.
Referenced by CollisionRegion::findCollisions.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2710 of file ShipEntityAI.m.
- (void) setRawRoll: | (double) | amount |
Definition at line 8216 of file ShipEntity.m.
References flightRoll.
Referenced by StationSetProperty().
- (void) setReactionTime: | (float) | newReactionTime |
Definition at line 6293 of file ShipEntity.m.
References reactionTime.
Referenced by ShipSetProperty().
- (void) setReference: | (Vector) | v |
Definition at line 7556 of file ShipEntity.m.
References reference.
Referenced by setUpOneStandardSubentity:asTurret:.
- (void) setRememberedShip: | (Entity *) | targetEntity |
Definition at line 10006 of file ShipEntity.m.
References _rememberedShip, and OOWeakRefObject::weakRetain.
Referenced by ShipEntity(PureAI)::storeTarget.
- (void) setReportAIMessages: | (BOOL) | yn |
Definition at line 7568 of file ShipEntity.m.
References reportAIMessages.
Referenced by ShipSetProperty(), and OOShipDebugInspectorModule::takeReportAIMessagesFrom:.
- (void) setRoll: | (double) | amount |
Definition at line 8210 of file ShipEntity.m.
References flightRoll, and M_PI.
Referenced by Universe::addEntity:, WormholeEntity::disgorgeShips, dumpItem:, launchCascadeMine, PlayerEntity::launchEscapeCapsule, DockEntity::launchShip:, PlayerEntity(Scripting)::processSceneString:atOffset:, and setDemoShip:.
- (void) setScanDescription: | (NSString *) | inName |
Definition at line 7236 of file ShipEntity.m.
References scan_description.
Referenced by ShipSetProperty().
- (void) setScannerDisplayColor1: | (OOColor *) | color1 |
Definition at line 6610 of file ShipEntity.m.
References OOColor::colorWithDescription:, DESTROY, nil, scanner_display_color1, and shipInfoDictionary.
Referenced by setUpShipFromDictionary:, and ShipSetProperty().
- (void) setScannerDisplayColor2: | (OOColor *) | color2 |
Definition at line 6619 of file ShipEntity.m.
References OOColor::colorWithDescription:, DESTROY, nil, scanner_display_color2, and shipInfoDictionary.
Referenced by setUpShipFromDictionary:, and ShipSetProperty().
- (void) setScannerDisplayColorHostile1: | (OOColor *) | color1 |
Definition at line 6640 of file ShipEntity.m.
References OOColor::colorWithDescription:, DESTROY, nil, scanner_display_color_hostile1, and shipInfoDictionary.
Referenced by setUpShipFromDictionary:, and ShipSetProperty().
- (void) setScannerDisplayColorHostile2: | (OOColor *) | color2 |
Definition at line 6649 of file ShipEntity.m.
References OOColor::colorWithDescription:, DESTROY, nil, scanner_display_color_hostile2, and shipInfoDictionary.
Referenced by setUpShipFromDictionary:, and ShipSetProperty().
- (void) setScannerRange: | (GLfloat) | value |
Definition at line 7544 of file ShipEntity.m.
References scannerRange.
- (void) setScriptedMisjump: | (BOOL) | newValue |
Definition at line 1295 of file ShipEntity.m.
References scripted_misjump.
Referenced by enterWormhole:replacing:, PlayerEntity(OOPrivate)::performWitchspaceExitUpdates:, and ShipSetProperty().
- (void) setScriptedMisjumpRange: | (GLfloat) | newValue |
Definition at line 1307 of file ShipEntity.m.
References _scriptedMisjumpRange.
Referenced by enterWormhole:replacing:, PlayerEntity(OOPrivate)::performWitchspaceExitUpdates:, and ShipSetProperty().
- (void) setShipClassName: | (NSString *) | inName |
Definition at line 7222 of file ShipEntity.m.
References shipClassName.
Referenced by PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, PlayerEntity::setCommanderDataFromDictionary:, and ShipSetProperty().
- (void) setShipDataKey: | (NSString *) | key |
Definition at line 1986 of file ShipEntity.m.
References _shipKey, and DESTROY.
Referenced by PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, PlayerEntity::setCommanderDataFromDictionary:, and PlayerEntity::setUpAndConfirmOK:saveGame:.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 10182 of file ShipEntity.m.
References OOWeakRefObject::weakRetain.
Referenced by fireDirectLaserShotAt:, fireLaserShotInDirection:weaponIdentifier:, and fireSubentityLaserShot:.
- (void) setShipScript: | (NSString *) | script_name |
Definition at line 8038 of file ShipEntity.m.
References displayName, OOScript::jsScriptFromFileNamed:properties:, nil, OOEnforceStandards(), OOStandardsDeprecated(), and script.
Referenced by setUpShipFromDictionary:, and ShipSetScript().
- (void) setShipUniqueName: | (NSString *) | inName |
Definition at line 7215 of file ShipEntity.m.
References shipUniqueName.
Referenced by PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, PlayerEntity::setCommanderDataFromDictionary:, and ShipSetProperty().
- (void) setSingleCrewWithRole: | (NSString *) | crewRole |
Convenience to set the crew to a single character of the given role, originating in the ship's home system. Does nothing if unpiloted.
Definition at line 7967 of file ShipEntity.m.
References homeSystem, isUnpiloted, OOCharacter::randomCharacterWithRole:andOriginalSystem:, and setCrew:.
Referenced by StationEntity::launchDefenseShip, StationEntity::launchEscort, StationEntity::launchIndependentShip:, StationEntity::launchMiner, StationEntity::launchPatrol, StationEntity::launchPirateShip, StationEntity::launchPolice, StationEntity::launchScavenger, StationEntity::launchShipWithRole:, PlanetEntity::launchShuttle, StationEntity::launchShuttle, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, and StationEntity::setUpShipFromDictionary:.
- (void) setSpeed: | (double) | amount |
Definition at line 8578 of file ShipEntity.m.
References flightSpeed.
Referenced by ShipEntity(PureAI)::becomeUncontrolledThargon, WormholeEntity::disgorgeShips, fireMissileWithIdentifier:andTarget:, launchCascadeMine, PlayerEntity::launchEscapeCapsule, and DockEntity::launchShip:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 927 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 921 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 932 of file ShipEntityAI.m.
- (void) setStateMachine: | (NSString *) | ai_desc |
Definition at line 7996 of file ShipEntity.m.
References setAITo:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 845 of file ShipEntityAI.m.
|
implementation |
Reimplemented from Entity.
Definition at line 7929 of file ShipEntity.m.
References launch_time, Entity::setStatus:, and Entity::status.
Referenced by Universe::addEntity:, DockEntity::addShipToLaunchQueue:withPriority:, PlayerEntity(ScriptMethods)::awardCommodityType:amount:, ballTrackLeadingTarget:atTarget:, becomeExplosion, becomeLargeExplosion:, PlayerEntity(Controls)::beginWitchspaceCountdown:, behaviour_tractored:, PlayerEntity(Contracts)::buySelectedShip, PlayerEntity(Controls)::cancelWitchspaceCountdown, PlayerEntity(Scripting)::checkScript, PlayerEntity::createCargoPodWithType:andAmount:, PlayerEntity::deferredInit, PlayerEntity::disengageAutopilot, PlayerEntity::doBookkeeping:, PlayerEntity::docked, PlayerEntity::endScenario:, PlayerEntity::engageAutopilotToStation:, PlayerEntity::enterDock:, PlayerEntity::enterGalacticWitchspace, PlayerEntity::enterWitchspace, PlayerEntity::enterWormhole:, getTractoredBy:, Universe::handleOoliteException:, Universe::initWithGameView:, initWithKey:definition:, PlayerEntity::interpretAIMessage:, PlayerEntity::isDocked, PlayerEntity::launchEscapeCapsule, PlayerEntity(Scripting)::launchFromStation, DockEntity::launchShip:, PlayerEntity::leaveWitchspace, PlayerEntity::loadCargoPodsForType:amount:, Universe::makeDemoShipWithRole:spinning:, noteKilledBy:damageType:, PlayerEntity(OOPrivate)::performLaunchingUpdates:, PlayerEntity(OOPrivate)::performWitchspaceCountdownUpdates:, PlayerEntity(OOPrivate)::performWitchspaceExitUpdates:, PlayerShipBeginGalacticHyperspaceCountdown(), PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(Scripting)::processSceneString:atOffset:, Universe::reinitAndShowDemo:, PlayerEntity::setDockedAtMainStation, PlayerEntity::setUpAndConfirmOK:saveGame:, Universe::setupIntroFirstGo:, setUpOneStandardSubentity:asTurret:, Universe::setUpSpace, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, WormholeEntity::suckInShip:, update:, Universe::update:, PlayerEntity::witchJumpChecklist:, and witchspaceLeavingEffects.
- (void) setSubEntityRotationalVelocity: | (Quaternion) | rv |
Definition at line 1175 of file ShipEntity.m.
References subentityRotationalVelocity.
Referenced by ShipSetProperty().
- (void) setSubEntityTakingDamage: | (ShipEntity *) | sub |
Definition at line 1372 of file ShipEntity.m.
References _subEntityTakingDamage, Entity::isShip, nil, OOLog, and OOWeakRefObject::weakRetain.
Referenced by dealloc, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, ShipEntity(Private)::subEntityDied:, ShipEntity(Private)::subEntityReallyDied:, and subEntityTakingDamage.
- (void) setSubIdx: | (NSUInteger) | value |
Definition at line 780 of file ShipEntity.m.
References _subIdx.
Referenced by setUpOneStandardSubentity:asTurret:.
- (void) setSunGlareFilter: | (GLfloat) | newValue |
Definition at line 1211 of file ShipEntity.m.
References sunGlareFilter.
Referenced by ShipSetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2027 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2040 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2005 of file ShipEntityAI.m.
- (void) setSuppressExplosion: | (BOOL) | suppress |
Definition at line 9794 of file ShipEntity.m.
References suppressExplosion.
Referenced by becomeExplosion, becomeLargeExplosion:, and deserializeShipSubEntitiesFrom:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1336 of file ShipEntityAI.m.
- (void) setTargetForScript: | (ShipEntity *) | target |
Provided by category ShipEntity(OOJavaScriptExtensions).
Definition at line 140 of file EntityOOJavaScriptExtensions.m.
Referenced by ShipSetProperty().
- (void) setTargetStation: | (Entity *) | targetEntity |
Definition at line 10025 of file ShipEntity.m.
References _targetStation, and OOWeakRefObject::weakRetain.
Referenced by PlayerEntity::disengageAutopilot, dockEscorts, PlayerEntity::engageAutopilotToStation:, ShipEntity(AI)::recallDockingInstructions, ShipEntity(PureAI)::setPlanetPatrolCoordinates, ShipEntity(PureAI)::setTargetToLastStation, setTargetToNearestStationIncludingHostiles:, ShipEntity(PureAI)::setTargetToRandomStation, and setTargetToSystemStation.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1142 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2543 of file ShipEntityAI.m.
- (void) setTargetToNearestFriendlyStation |
Definition at line 13985 of file ShipEntity.m.
References setTargetToNearestFriendlyStation, and setTargetToNearestStationIncludingHostiles:.
Referenced by coordinates, and setTargetToNearestFriendlyStation.
- (void) setTargetToNearestStation |
Definition at line 13992 of file ShipEntity.m.
References setTargetToNearestStation, and setTargetToNearestStationIncludingHostiles:.
Referenced by coordinates, and setTargetToNearestStation.
|
implementation |
Definition at line 13934 of file ShipEntity.m.
References addTarget:, group, Entity::isStation, OOShipGroup::leader, AI::message:, nil, Entity::position, SCANNER_MAX_RANGE2, setTargetStation:, and UNIVERSE.
Referenced by setTargetToNearestFriendlyStation, and setTargetToNearestStation.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 943 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2490 of file ShipEntityAI.m.
- (void) setTargetToSystemStation |
Definition at line 13999 of file ShipEntity.m.
References _primaryTarget, addTarget:, DESTROY, Entity::isStation, AI::message:, setTargetStation:, and setTargetToSystemStation.
Referenced by coordinates, and setTargetToSystemStation.
- (void) setTemperature: | (GLfloat) | value |
Definition at line 8790 of file ShipEntity.m.
References ship_temperature.
Referenced by Universe::addWreckageFrom:withRole:at:scale:lifetime:, becomeExplosion, dumpItem:, ShipEntity(Private)::launchPodWithCrew:, releaseCargoPodsDebris, ShipSetProperty(), and ShipEntity(ScriptMethods)::spawnShipsWithRole:count:.
- (void) setThankedShip: | (Entity *) | targetEntity |
Definition at line 9987 of file ShipEntity.m.
References _thankedShip, and OOWeakRefObject::weakRetain.
Referenced by interpretAIMessage:.
- (void) setThrust: | (double) | amount |
Definition at line 8234 of file ShipEntity.m.
References thrust.
Referenced by behaviour_tractored:, dumpItem:, PlayerEntity::launchEscapeCapsule, releaseCargoPodsDebris, and ShipSetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 937 of file ShipEntityAI.m.
- (void) setThrustForDemo: | (float) | factor |
Definition at line 8240 of file ShipEntity.m.
References flightSpeed, and maxFlightSpeed.
- (void) setTotalVelocity: | (Vector) | vel |
Definition at line 12843 of file ShipEntity.m.
References Entity::setVelocity:, and thrustVector.
Referenced by ShipSetProperty().
- (void) setTrackCloseContacts: | (BOOL) | value |
Definition at line 14392 of file ShipEntity.m.
References closeContactsInfo, nil, and trackCloseContacts.
Referenced by dealloc, setUpShipFromDictionary:, and ShipSetProperty().
- (void) setUpCargoType: | (NSString *) | cargoString |
Definition at line 1023 of file ShipEntity.m.
References CARGO_ALLOY, CARGO_MINERALS, CARGO_RANDOM, CARGO_SCRIPTED_ITEM, CARGO_SLAVES, CARGO_THARGOID, cargo_type, commodity_amount, commodity_type, DESTROY, and StringToCargoType().
Referenced by setUpShipFromDictionary:.
- (void) setUpEscorts |
Definition at line 1691 of file ShipEntity.m.
References _maxEscortCount, _pendingEscortCount, coordinatesForEscortPosition:, OOShipGroup::count, escortGroup, group, isEscort, isPolice, isThargoid, MAX_ESCORTS, nil, OOLogWARN, refreshEscortPositions, setGroup:, OOShipGroup::setLeader:, setUpEscorts, setUpMixedEscorts, setUpOneEscort:inGroup:withRole:atPosition:andCount:, shipinfoDictionary, UNIVERSE, and updateEscortFormation.
Referenced by findBoundingBoxRelativeToPosition:InVectors:i:j:, StationEntity::launchIndependentShip:, setUpEscorts, and wasAddedToUniverse.
- (BOOL) setUpFromDictionary: | (NSDictionary *) | shipDict |
Definition at line 240 of file ShipEntity.m.
References _lightsActive, _scriptedMisjumpRange, being_fined, haveExecutedSpawnAction, haveStartedJSAI, isMissile, isNearPlanetSurface, nil, OOJS_PROFILE_ENTER, scripted_misjump, shipinfoDictionary, suppressAegisMessages, and suppressExplosion.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 1790 of file ShipEntity.m.
References coordinatesForEscortPosition:, OOShipGroup::count, escortGroup, MAX_ESCORTS, nil, OOLogWARN, Ranrot(), refreshEscortPositions, setGroup:, OOShipGroup::setLeader:, ShipEntity(Private)::setUpMixedEscorts, and setUpOneEscort:inGroup:withRole:atPosition:andCount:.
Referenced by setUpEscorts, and ShipEntity(Private)::setUpMixedEscorts.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 1868 of file ShipEntity.m.
References Entity::collision_radius, ResourceManager::dictionaryFromFilesNamed:inFolder:andMerge:, doScriptEvent:withArgument:, EXPECT, getAI, heatInsulation, markAsOffender:withReason:, MAX_ESCORTS, maxFlightSpeed, nil, Entity::owner, randf(), ranrot_rand, setBounty:withReason:, setGroup:, setHeatInsulation:, setOwner:, Entity::setPosition:, setPrimaryRole:, Entity::setScanClass:, setSingleCrewWithRole:, AI::setState:, shipInfoDictionary, and switchAITo:.
Referenced by setUpEscorts, and ShipEntity(Private)::setUpMixedEscorts.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 926 of file ShipEntity.m.
References addSubEntity:, OOFlasherEntity::flasherWithDictionary:, OOFlasherEntity::rescaleBy:, and Entity::setPosition:.
Referenced by ShipEntity(Private)::setUpOneSubentity:.
- (BOOL) setUpOneStandardSubentity: | (NSDictionary *) | subentDict | |
asTurret: | (BOOL) | asTurret |
Definition at line 936 of file ShipEntity.m.
References _maxShipSubIdx, _scaleFactor, addSubEntity:, entityPersonalityInt, findSubentityBoundingBox, Entity::isStation, nil, OOLog, overrideScriptInfo:, setBehaviour:, setDisplayName:, setEntityPersonalityInt:, Entity::setOrientation:, Entity::setPosition:, setReference:, setStatus:, setSubIdx:, DockEntity::setVirtual, setWeaponEnergy:, setWeaponRange:, setWeaponRechargeRate:, and totalBoundingBox.
Referenced by ShipEntity(Private)::setUpOneSubentity:.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 906 of file ShipEntity.m.
References nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, setUpOneFlasher:, and setUpOneStandardSubentity:asTurret:.
Referenced by setUpSubEntities.
- (BOOL) setUpShipFromDictionary: | (NSDictionary *) | shipDict |
Reimplemented in DockEntity, PlayerEntity, and StationEntity.
Definition at line 519 of file ShipEntity.m.
References _explicitlyUnpiloted, _maxEscortCount, _missed_shots, _missileRole, _pendingEscortCount, accuracy, addEquipmentItem:inContext:, aft_weapon_temp, cargo, cargo_flag, CARGO_FLAG_FULL_PLENTIFUL, CARGO_FLAG_FULL_SCARCE, CARGO_FLAG_FULL_UNIFORM, CARGO_NOT_CARGO, cargo_type, OOCharacter::characterWithDictionary:, commodity_amount, commodity_type, destination_system, Entity::energy, forward_weapon_temp, fuel, fuel_accumulator, hasHeatShield, hasScoopMessage, home_system, Entity::isShip, kBasisXVector, kBasisYVector, kBasisZVector, kIdentityMatrix, kIdentityQuaternion, likely_cargo, MAX_ESCORTS, Entity::maxEnergy, MIN, missile_list, missiles, nil, noRocks, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOScanClassFromString(), Entity::orientation, port_weapon_temp, primaryRole, randf(), reactionTime, reference, roleSet, OORoleSet::roleSetWithString:, Entity::rotMatrix, scan_description, scanClass, scannerRange, selectMissile, setAccuracy:, setAITo:, setBeaconCode:, setBeaconLabel:, setBounty:withReason:, setCommodityForPod:andAmount:, setCrew:, setHeatInsulation:, setHulk:, AI::setOwner:, setOwner:, setScannerDisplayColor1:, setScannerDisplayColor2:, setScannerDisplayColorHostile1:, setScannerDisplayColorHostile2:, setShipScript:, setTrackCloseContacts:, setUpCargoType:, shipAI, starboard_weapon_temp, UNIVERSE, v_forward, v_right, v_up, weapon_damage, weapon_damage_override, and weapon_temp.
- (BOOL) setUpSubEntities |
Reimplemented in StationEntity.
Definition at line 855 of file ShipEntity.m.
References _maxShipSubIdx, _profileRadius, addSubEntity:, Entity::boundingBox, Entity::collision_radius, OOExhaustPlumeEntity::exhaustForShip:withDefinition:andScale:, Entity::no_draw_distance, NO_DRAW_DISTANCE_FACTOR, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, ScanTokensFromString(), setUpOneSubentity:, setUpSubEntities, shipInfoDictionary, and totalBoundingBox.
Referenced by findBoundingBoxRelativeToPosition:InVectors:i:j:, PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, setUpSubEntities, ShipRestoreSubEntities(), and PlayerEntity(OOPrivate)::tryBuyingItem:.
- (void) setWeaponDataFromType: | (OOWeaponType) | weapon_type |
Definition at line 7482 of file ShipEntity.m.
References default_laser_color, getWeaponRangeFromType(), nil, setLaserColor:, weapon_damage, weapon_energy_use, weapon_recharge_rate, weapon_shot_temperature, OOEquipmentType::weaponColor, OOEquipmentType::weaponDamage, OOEquipmentType::weaponEnergyUse, weaponRange, OOEquipmentType::weaponRechargeRate, and OOEquipmentType::weaponShotTemperature.
Referenced by behaviour_attack_broadside:, behaviour_close_to_broadside_range:, PlayerEntity::currentWeaponStats, fireAftWeapon:, fireMainWeapon:, firePortWeapon:, fireStarboardWeapon:, fireSubentityLaserShot:, and PlayerEntity::setCommanderDataFromDictionary:.
- (void) setWeaponEnergy: | (float) | value |
Definition at line 7526 of file ShipEntity.m.
References weapon_damage.
Referenced by setUpOneStandardSubentity:asTurret:.
- (BOOL) setWeaponMount: | (OOWeaponFacing) | facing | |
toWeapon: | (NSString *) | eqKey |
Reimplemented in PlayerEntity.
Definition at line 3494 of file ShipEntity.m.
References aft_weapon_type, forward_weapon_type, OOWeaponTypeFromEquipmentIdentifierStrict(), port_weapon_type, starboard_weapon_type, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_NONE, WEAPON_FACING_PORT, WEAPON_FACING_STARBOARD, and weapon_facings.
Referenced by ShipSetProperty().
- (void) setWeaponRange: | (GLfloat) | value |
Definition at line 7476 of file ShipEntity.m.
References weaponRange.
Referenced by setUpOneStandardSubentity:asTurret:.
- (void) setWeaponRechargeRate: | (float) | value |
Definition at line 7520 of file ShipEntity.m.
References weapon_recharge_rate.
Referenced by setUpOneStandardSubentity:asTurret:.
- (void) setYaw: | (double) | amount |
Definition at line 8228 of file ShipEntity.m.
References flightYaw, and M_PI.
Referenced by DockEntity::launchShip:.
- (float) shieldBoostFactor |
Definition at line 4060 of file ShipEntity.m.
References hasMilitaryShieldEnhancer, hasShieldBooster, and shieldBoostFactor.
Referenced by isFrangible, maxAftShieldLevel, maxForwardShieldLevel, and shieldBoostFactor.
- (float) shieldRechargeRate |
Definition at line 4084 of file ShipEntity.m.
References hasMilitaryShieldEnhancer, and shieldRechargeRate.
Referenced by isFrangible, and shieldRechargeRate.
- (OOScript *) shipAIScript |
Definition at line 1402 of file ShipEntity.m.
References aiScript, and shipAIScript.
Referenced by shipAIScript, and ShipGetProperty().
- (OOTimeAbsolute) shipAIScriptWakeTime |
Definition at line 1408 of file ShipEntity.m.
References aiScriptWakeTime, and shipAIScriptWakeTime.
Referenced by shipAIScriptWakeTime.
- (NSString *) shipClassName |
References displayName.
- (NSString *) shipDataKey |
Definition at line 1974 of file ShipEntity.m.
References _shipKey, and shipDataKey.
Referenced by PlayerEntity::availableFacings, PlayerEntity(Contracts)::buySelectedShip, PlayerEntity::commanderDataDictionary, PlayerEntity::createDoppelganger, PlayerEntity::doBookkeeping:, dumpSelfState, equipmentValidToAdd:whileLoading:inContext:, findBoundingBoxRelativeToPosition:InVectors:i:j:, fuelChargeRate, PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, PlayerEntity(Scripting)::processSceneString:atOffset:, PlayerEntity::renovationFactor, PlayerEntity::resetHud, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setGuiToStatusScreen, Universe(OOPrivate)::setUpInitialUniverse, StationEntity::setUpSubEntities, PlayerEntity::setWeaponMount:toWeapon:inContext:, shipDataKey, shipDataKeyAutoRole, ShipGetProperty(), and ShipEntity(LoadRestoreInternal)::simplifyShipdata:andGetDeletes:.
- (NSString *) shipDataKeyAutoRole |
Definition at line 1980 of file ShipEntity.m.
References shipDataKey, and shipDataKeyAutoRole.
Referenced by findBoundingBoxRelativeToPosition:InVectors:i:j:, hasRole:, and shipDataKeyAutoRole.
- (ShipEntity *) shipHitByLaser |
Definition at line 10176 of file ShipEntity.m.
References shipHitByLaser, and OOWeakReference::weakRefUnderlyingObject.
Referenced by maxFlightSpeed, PlayerEntity(OOControlsPrivate)::pollFlightControls:, and shipHitByLaser.
- (NSDictionary *) shipInfoDictionary |
Definition at line 1993 of file ShipEntity.m.
References shipInfoDictionary, and shipinfoDictionary.
Referenced by Universe::addEntity:, becomeExplosion, clearSubEntities, PlayerEntity::commanderDataDictionary, countsAsKill, findBoundingBoxRelativeToPosition:InVectors:i:j:, hasAutoAI, hasAutoWeapons, ShipEntity(Private)::rescaleBy:writeToCache:, setScannerDisplayColor1:, setScannerDisplayColor2:, setScannerDisplayColorHostile1:, setScannerDisplayColorHostile2:, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, setUpSubEntities, shipInfoDictionary, and ShipSetMaterialsInternal().
+ (id) shipRestoredFromDictionary: | (NSDictionary *) | dictionary | |
useFallback: | (BOOL) | fallback | |
context: | (NSMutableDictionary *) | context |
Provided by category ShipEntity(LoadRestore).
Definition at line 173 of file ShipEntityLoadRestore.m.
Referenced by WormholeEntity::initWithDict:.
- (OOScript *) shipScript |
Definition at line 1396 of file ShipEntity.m.
References script, and shipScript.
Referenced by ShipGetProperty(), and shipScript.
- (NSEnumerator *) shipSubEntityEnumerator |
Definition at line 1337 of file ShipEntity.m.
References shipSubEntityEnumerator, and subEntities.
Referenced by addTarget:, becomeExplosion, becomeLargeExplosion:, behaviour_attack_target:, PlayerEntity::canAddEquipment:inContext:, deserializeShipSubEntitiesFrom:, PlayerEntity::doesHitLine:v0:v1:, doesHitLine:v0:v1:, fireMainWeapon:, fireWeapon:direction:range:, hasPrimaryWeapon:, laserHeatLevelForward, PlayerEntity(Contracts)::missingSubEntitiesAdjustment, removeTarget:, serializeShipSubEntities, StationEntity::setUpSubEntities, shipSubEntityEnumerator, subEntities, ShipEntity(OOJavaScriptExtensions)::subEntitiesForScript, switchLightsOff, switchLightsOn, turretCount, and weaponTypeIDForFacing:strict:.
- (NSString *) shipUniqueName |
References shipClassName.
|
implementation |
Definition at line 1199 of file ShipEntity.m.
References name, and shortDescriptionComponents.
Referenced by shortDescriptionComponents.
- (OOTimeDelta) shotTime |
Definition at line 11632 of file ShipEntity.m.
References shot_time, and shotTime.
Referenced by canCollide, coordinates, dumpSelfState, fireSubentityLaserShot:, fireTurretCannon:, fireWeapon:direction:range:, shotTime, and weaponRecoveryTime.
- (BOOL) showDamage |
Definition at line 9164 of file ShipEntity.m.
References _showDamage, and showDamage.
Referenced by maxFlightSpeed, and showDamage.
- (BOOL) showScoopMessage |
Definition at line 8505 of file ShipEntity.m.
References hasScoopMessage, and showScoopMessage.
Referenced by cargo, scoopUpProcess:processEvents:processMessages:, and showScoopMessage.
|
implementation |
Provided by category ShipEntity(LoadRestoreInternal).
Definition at line 264 of file ShipEntityLoadRestore.m.
References count, nil, OOShipRegistry::sharedRegistry, shipDataKey, OOShipRegistry::shipInfoForKey:, and StripIgnoredKeys().
Referenced by ShipEntity(LoadRestore)::savedShipDictionaryWithContext:.
- (void) spawn: | (NSString *) | roles_number |
Definition at line 14321 of file ShipEntity.m.
References count, kOOLogSyntaxAddShips, nil, OOLog, ScanTokensFromString(), and spawnShipsWithRole:count:.
- (NSArray *) spawnShipsWithRole: | (NSString *) | role | |
count: | (NSUInteger) | count |
Provided by category ShipEntity(ScriptMethods).
Definition at line 64 of file ShipEntityScriptMethods.m.
Referenced by ShipSpawn(), and spawn:.
- (GLfloat) speedFactor |
Definition at line 8777 of file ShipEntity.m.
References flightSpeed, maxFlightSpeed, and speedFactor.
Referenced by maxFlightSpeed, speedFactor, and OOExhaustPlumeEntity::update:.
- (NSArray *) starboardWeaponOffset |
- (void) startTrackingCurve |
Definition at line 6315 of file ShipEntity.m.
References calculateTrackingCurve, nil, Entity::position, primaryTarget, reactionTime, startTrackingCurve, trackingCurvePositions, and trackingCurveTimes.
Referenced by addTarget:, reactionTime, resumePostProximityAlert, and startTrackingCurve.
- (OOShipGroup *) stationGroup |
Definition at line 6964 of file ShipEntity.m.
References _group, nil, OOShipGroup::setLeader:, and stationGroup.
Referenced by StationEntity::launchDefenseShip, StationEntity::launchMiner, StationEntity::launchPatrol, StationEntity::launchPirateShip, StationEntity::launchPolice, StationEntity::launchScavenger, StationEntity::launchShipWithRole:, messageTime, StationEntity::setUpShipFromDictionary:, and stationGroup.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2125 of file ShipEntityAI.m.
- (NSArray *) subEntities |
References clearSubEntities, exhaustEnumerator, flasherEnumerator, maxShipSubEntities, octree, serializeShipSubEntities, shipSubEntityEnumerator, subEntityCount, subEntityEnumerator, subEntityRotationalVelocity, subEntityTakingDamage, and subIdx.
- (NSArray *) subEntitiesForScript |
Provided by category ShipEntity(OOJavaScriptExtensions).
Definition at line 134 of file EntityOOJavaScriptExtensions.m.
Referenced by ShipGetProperty(), and ShipRestoreSubEntities().
- (NSUInteger) subEntityCount |
Definition at line 1319 of file ShipEntity.m.
References subEntityCount.
Referenced by drawImmediate:translucent:, dumpSelfState, subEntities, subEntityCount, and update:.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 9520 of file ShipEntity.m.
References Entity::mass, setOwner:, and setSubEntityTakingDamage:.
Referenced by becomeExplosion.
- (NSEnumerator *) subEntityEnumerator |
Definition at line 1331 of file ShipEntity.m.
References subEntities, and subEntityEnumerator.
Referenced by subEntities, and subEntityEnumerator.
|
implementation |
Reimplemented from Entity.
Provided by category ShipEntity(Private).
Definition at line 9532 of file ShipEntity.m.
References nil, OOLogERR, and setSubEntityTakingDamage:.
Referenced by dealloc.
- (Quaternion) subEntityRotationalVelocity |
Definition at line 1169 of file ShipEntity.m.
References subEntityRotationalVelocity, and subentityRotationalVelocity.
Referenced by subEntities, and subEntityRotationalVelocity.
- (ShipEntity *) subEntityTakingDamage |
Definition at line 1355 of file ShipEntity.m.
References nil, Entity::parentEntity, setSubEntityTakingDamage:, subEntityTakingDamage, and OOWeakReference::weakRefUnderlyingObject.
Referenced by fireDirectLaserShotAt:, fireLaserShotInDirection:weaponIdentifier:, fireSubentityLaserShot:, subEntities, and subEntityTakingDamage.
- (NSUInteger) subIdx |
Definition at line 786 of file ShipEntity.m.
References _subIdx, and subIdx.
Referenced by deserializeShipSubEntitiesFrom:, serializeShipSubEntities, subEntities, and subIdx.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1832 of file ShipEntityAI.m.
- (BOOL) suggestEscortTo: | (ShipEntity *) | mother |
Provided by category ShipEntity(AI).
Definition at line 720 of file ShipEntityAI.m.
Referenced by ShipEntity(PureAI)::suggestEscort.
- (GLfloat) sunGlareFilter |
References checkShipsInVicinityForWitchJumpExit, int(), isMining, markedForFines, markForFines, setCommsMessageColor, and trackCloseContacts.
- (BOOL) suppressFlightNotifications |
Definition at line 2057 of file ShipEntity.m.
References suppressAegisMessages, and suppressFlightNotifications.
Referenced by isFrangible, and suppressFlightNotifications.
|
implementation |
Reimplemented in PlayerEntity.
Definition at line 12913 of file ShipEntity.m.
References suppressTargetLost.
Referenced by scoopUpProcess:processEvents:processMessages:, and suppressTargetLost.
|
implementation |
Definition at line 7613 of file ShipEntity.m.
References Entity::position, reference, and SurfaceDistanceSqaredV.
Referenced by findNearestStellarBody.
|
implementation |
Definition at line 7602 of file ShipEntity.m.
References Entity::position, and reference.
Referenced by ComparePlanetsBySurfaceDistance, findNearestPlanet, and SurfaceDistanceSqared.
- (void) switchAITo: | (NSString *) | aiString |
Provided by category ShipEntity(AI).
Definition at line 307 of file ShipEntityAI.m.
Referenced by Universe::addShipAt:withRole:withinRadius:, StationEntity::launchDefenseShip, StationEntity::launchEscort, StationEntity::launchMiner, StationEntity::launchPatrol, ShipEntity(Private)::launchPodWithCrew:, StationEntity::launchPolice, StationEntity::launchScavenger, PlanetEntity::launchShuttle, StationEntity::launchShuttle, Universe::makeDemoShipWithRole:spinning:, Universe::makeSunSkimmer:andSetAI:, PlayerEntity(Scripting)::processSceneString:atOffset:, Universe::setupIntroFirstGo:, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, ShipSwitchAI(), Universe::update:, and Universe::witchspaceShipWithPrimaryRole:.
- (void) switchLightsOff |
Definition at line 13650 of file ShipEntity.m.
References _lightsActive, flasherEnumerator, nil, shipSubEntityEnumerator, and switchLightsOff.
Referenced by coordinates, StationEntity::launchPatrol, ShipSetProperty(), and switchLightsOff.
- (void) switchLightsOn |
Definition at line 13631 of file ShipEntity.m.
References _lightsActive, flasherEnumerator, nil, shipSubEntityEnumerator, and switchLightsOn.
Referenced by coordinates, ShipSetProperty(), and switchLightsOn.
|
implementation |
Reimplemented from Entity.
Reimplemented in DockEntity, PlayerEntity, and StationEntity.
Definition at line 13126 of file ShipEntity.m.
References _lastEscortTarget, abandonShip, behaviour, being_mined, broadcastHitByLaserFrom:, cascadeIfAppropriateWithDamageAmount:cascadeOwner:, DESTROY, doScriptEvent:andReactToAIMessage:, Entity::energy, getDestroyedBy:damageType:, group, hasEscapePod, hasNewAI, heatInsulation, Entity::isCascadeWeapon, isCloaked, isEscort, isMining, isPirate, isPolice, Entity::isShip, isTrader, OOShipGroup::leader, markAsOffender:withReason:, Entity::maxEnergy, maxFlightSpeed, nil, noteTakingDamage:from:type:, noteTargetDestroyed:, Entity::owner, randf(), ranrot_rand, respondToAttackFrom:becauseOf:, Entity::rootShipEntity, setBehaviour:, setDesiredSpeed:, setFoundTarget:, setPrimaryAggressor:, SHIP_ENERGY_DAMAGE_TO_HEAT_FACTOR, SHIP_MAX_CABIN_TEMP, ship_temperature, Entity::status, suppressExplosion, and UNIVERSE.
Referenced by deserializeShipSubEntitiesFrom:, fireDirectLaserShotAt:, fireLaserShotInDirection:weaponIdentifier:, fireSubentityLaserShot:, DockEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, and StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (void) takeHeatDamage: | (double) | amount |
Reimplemented in PlayerEntity, and StationEntity.
Definition at line 13424 of file ShipEntity.m.
References doScriptEvent:andReactToAIMessage:, Entity::energy, getDestroyedBy:damageType:, isFrangible, Entity::isSubEntity, Entity::maxEnergy, noteTakingDamage:from:type:, Entity::owner, Entity::status, and Entity::throw_sparks.
Referenced by PlayerEntity::takeHeatDamage:, StationEntity::takeHeatDamage:, and update:.
- (void) takeScrapeDamage: | (double) | amount | |
from: | (Entity *) | ent |
Reimplemented in PlayerEntity, and StationEntity.
Definition at line 13380 of file ShipEntity.m.
References being_mined, doScriptEvent:andReactToAIMessage:, Entity::energy, getDestroyedBy:damageType:, Entity::isShip, Entity::mass, Entity::maxEnergy, noteTakingDamage:from:type:, noteTargetDestroyed:, randf(), and Entity::status.
Referenced by collideWithShip:, DockEntity::shipIsInDockingCorridor:, PlayerEntity::takeScrapeDamage:from:, and StationEntity::takeScrapeDamage:from:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2660 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2673 of file ShipEntityAI.m.
- (StationEntity *) targetStation |
Definition at line 10013 of file ShipEntity.m.
References _targetStation, DESTROY, nil, targetStation, and OOWeakReference::weakRefUnderlyingObject.
Referenced by behaviour_fly_to_destination:, PlayerEntity::cancelDockingRequest:, ShipEntity(Private)::drawDebugStuff, PlayerEntity::engageAutopilotToStation:, maxFlightSpeed, PlayerEntity::performDockingRequest:, ShipEntity(AI)::requestDockingCoordinates, ShipEntity(PureAI)::setDestinationToDockingAbort, ShipEntity(PureAI)::setTargetToLastStation, targetStation, and trackDestination:delta_t:.
- (GLfloat) temperature |
Definition at line 8784 of file ShipEntity.m.
References ship_temperature, and temperature.
Referenced by PlayerEntity::createDoppelganger, maxFlightSpeed, randomEjectaTemperatureWithMaxFactor:, temperature, and update:.
- (Entity *) thankedShip |
Definition at line 9975 of file ShipEntity.m.
References _thankedShip, DESTROY, nil, thankedShip, and OOWeakReference::weakRefUnderlyingObject.
Referenced by interpretAIMessage:, maxFlightSpeed, and thankedShip.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1722 of file ShipEntityAI.m.
|
implementation |
Reimplemented from Entity.
Definition at line 12098 of file ShipEntity.m.
References Entity::boundingBox, OOColor::colorWithHue:saturation:brightness:alpha:, next_spark_time, Entity::normalOrientation, Entity::position, quaternion_rotate_vector(), randf(), Entity::setOwner:, and throwSparks.
Referenced by throwSparks, and update:.
- (float) thrust |
References reactionTime.
- (Vector) thrustVector |
Definition at line 12831 of file ShipEntity.m.
References flightSpeed, thrustVector, and v_forward.
Referenced by cruiseSpeed, setTotalVelocity:, thrustVector, and velocity.
- (BoundingBox) totalBoundingBox |
References forwardVector, rightVector, subEntities, and upVector.
- (BOOL) trackCloseContacts |
References isHulk.
- (double) trackDestination: | (double) | ||
delta_t: | (BOOL) | retreat |
Definition at line 10930 of file ShipEntity.m.
References _destination, applySticks:, desired_range, docking_match_rotation, dockingInstructions, flightPitch, flightRoll, Entity::isPlayer, Entity::isStation, kZeroVector, MAX_COS, max_flight_pitch, max_flight_roll, nil, pitching_over, StationEntity::portUpVectorForShip:, Entity::position, rollToMatchUp:rotating:, stick_pitch, stick_roll, stick_yaw, targetStation, v_forward, v_right, and v_up.
Referenced by behaviour_avoid_collision:, behaviour_face_destination:, behaviour_fly_from_destination:, behaviour_fly_thru_navpoints:, behaviour_fly_to_destination:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, behaviour_intercept_target:, and behaviour_land_on_planet:.
- (void) trackOntoTarget: | (double) | delta_t | |
withDForward: | (GLfloat) | dp |
Definition at line 10292 of file ShipEntity.m.
References Entity::collision_radius, flightPitch, flightRoll, flightYaw, Entity::orientation, orientationChanged, primaryTarget, quaternion_multiply(), quaternion_rotation_between(), stick_pitch, stick_roll, stick_yaw, v_forward, and Entity::vectorTo:.
- (double) trackPrimaryTarget: | (double) | ||
delta_t: | (BOOL) | retreat |
Definition at line 10477 of file ShipEntity.m.
References accuracy, applySticks:, avoidCollision, behaviour, calculateTargetPosition, canStillTrackPrimaryTarget, Entity::collision_radius, COMBAT_AI_FLEES_BETTER, COMBAT_AI_FLEES_BETTER_2, COMBAT_AI_ISNT_AWFUL, COMBAT_AI_TRACKS_CLOSER, currentAimTolerance, flightPitch, flightRoll, Entity::isShip, jink, kBasisZVector, kZeroVector, max_flight_pitch, max_flight_roll, missedShots, missileTrackPrimaryTarget:, noteLostTargetAndGoIdle, Entity::orientation, pitching_over, Entity::position, primaryTarget, scanClass, setEvasiveJink:, stick_pitch, stick_roll, stick_yaw, v_forward, v_right, v_up, vector_forward_from_quaternion(), vector_right_from_quaternion(), and vector_up_from_quaternion().
Referenced by behaviour_attack_break_off_target:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_mining_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_flee_target:, behaviour_intercept_target:, behaviour_running_defense:, and behaviour_track_target:.
- (double) trackSideTarget: | (double) | ||
delta_t: | (BOOL) | leftside |
Definition at line 10711 of file ShipEntity.m.
References accuracy, applySticks:, calculateTargetPosition, canStillTrackPrimaryTarget, COMBAT_AI_TRACKS_CLOSER, currentAimTolerance, flightPitch, flightYaw, kZeroVector, max_flight_pitch, max_flight_yaw, missileTrackPrimaryTarget:, noteLostTargetAndGoIdle, Entity::position, primaryTarget, scanClass, stick_pitch, stick_roll, stick_yaw, v_forward, v_right, and v_up.
Referenced by behaviour_attack_broadside_target:leftside:.
- (void) transitionToAegisNone |
Definition at line 7574 of file ShipEntity.m.
References AEGIS_CLOSE_TO_ANY_PLANET, AEGIS_NONE, aegis_status, doScriptEvent:withArgument:, lastAegisLock, AI::message:, nil, suppressAegisMessages, transitionToAegisNone, and UNIVERSE.
Referenced by checkForAegis, reportAIMessages, transitionToAegisNone, and PlayerEntity(OOPrivate)::witchStart.
- (NSUInteger) turretCount |
Definition at line 7028 of file ShipEntity.m.
References count, isTurret, nil, shipSubEntityEnumerator, and turretCount.
Referenced by messageTime, OOShipLibraryTurrets(), and turretCount.
|
implementation |
Reimplemented from Entity.
Reimplemented in DockEntity, PlayerEntity, and StationEntity.
Definition at line 2319 of file ShipEntity.m.
References _destination, _nextAegisCheck, _primaryTarget, _showDamage, AEGIS_NONE, aegis_status, aft_weapon_temp, aiScriptWakeTime, applyAttitudeChanges:, applyThrust:, behaviour, Entity::boundingBox, bounty, checkForAegis, cloaking_device_active, CLOAKING_DEVICE_ENERGY_RATE, CLOAKING_DEVICE_MIN_ENERGY, closeContactsInfo, Entity::collision_radius, coordinatesForEscortPosition:, deactivateCloakingDevice, debugLastBehaviour, demoRate, demoStartTime, Entity::distanceTravelled, doScriptEvent:, doScriptEvent:withArgument:, doScriptEvent:withArgument:andReactToAIMessage:, Entity::energy, energy_recharge_rate, escortArray, escortGroup, AI::exitStateMachineWithMessage:, findSubentityBoundingBox, flightSpeed, flightYaw, foreachkey, forward_weapon_temp, frustration, fuel, fuel_accumulator, fuelCapacity, fuelChargeRate, hasCloakingDevice, hasEscorts, hasFuelScoop, hasMilitaryJammer, haveExecutedSpawnAction, haveStartedJSAI, heatInsulation, isDemoShip, Entity::isShip, Entity::isSubEntity, kIdentityQuaternion, kOOLogEntityBehaviourChanged, kZeroQuaternion, kZeroVector, launch_delay, launch_time, OOShipGroup::leader, M_PI, manageCollisions, Entity::maxEnergy, maxFlightSpeed, AI::message:, messageTime, military_jammer_active, MILITARY_JAMMER_ENERGY_RATE, MILITARY_JAMMER_MIN_ENERGY, next_spark_time, nil, NO_TARGET, noteLostTarget, OOLog, OOStringFromBehaviour(), Entity::owner, PLAYER, port_weapon_temp, Entity::position, primaryRole, primaryTarget, processBehaviour:, AI::reactToMessage:context:, refreshEscortPositions, OOShipGroup::removeShip:, reportAIMessages, scanClass, ScanVectorFromString(), script, setBounty:withReason:, setEscortDestination:, setEscortGroup:, setFuel:, Entity::setOrientation:, setOwner:, setStatus:, SHIP_COOLING_FACTOR, SHIP_INSULATION_FACTOR, SHIP_MAX_CABIN_TEMP, SHIP_MIN_CABIN_TEMP, ship_temperature, shipinfoDictionary, shot_time, starboard_weapon_temp, Entity::status, subEntities, subEntityCount, subentityRotationalVelocity, SUN_TEMPERATURE, takeHeatDamage:, temperature, Entity::throw_sparks, throwSparks, totalBoundingBox, trackCloseContacts, UNIVERSE, Entity::update:, update:, updateTrackingCurve, v_forward, v_right, v_up, velocity, OOWeakRefObject::weakRetain, WEAPON_COOLING_FACTOR, and weapon_temp.
Referenced by DockEntity::clearDockingCorridor, WormholeEntity::disgorgeShips, PlayerEntity::doBookkeeping:, DockEntity::update:, update:, and StationEntity::update:.
- (void) updateEscortFormation |
Definition at line 13779 of file ShipEntity.m.
References _escortPositionsValid, and updateEscortFormation.
Referenced by deployEscorts, findBoundingBoxRelativeToPosition:InVectors:i:j:, setEscortGroup:, setGroup:, setUpEscorts, and updateEscortFormation.
- (void) updateTrackingCurve |
Definition at line 6336 of file ShipEntity.m.
References calculateTrackingCurve, EXPECT_NOT, flightSpeed, isCloaked, Entity::isShip, nil, OOHPVectorRandomSpatial(), Entity::position, primaryTarget, reactionTime, trackingCurvePositions, trackingCurveTimes, and updateTrackingCurve.
Referenced by reactionTime, update:, and updateTrackingCurve.
- (Vector) upVector |
Definition at line 1277 of file ShipEntity.m.
References upVector, and v_up.
Referenced by behaviour_fly_to_destination:, OOExhaustPlumeEntity(Private)::saveToLastFrame, totalBoundingBox, OOExhaustPlumeEntity::update:, and upVector.
- (void) validateDefenseTargets |
Definition at line 11199 of file ShipEntity.m.
References _defenseTargets, allDefenseTargets, nil, removeDefenseTarget:, Entity::status, and validateDefenseTargets.
Referenced by isMissile, ShipGetProperty(), and validateDefenseTargets.
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity.
Definition at line 2308 of file ShipEntity.m.
References nil, OOLog, shipinfoDictionary, Entity::validForAddToUniverse, and validForAddToUniverse.
Referenced by validForAddToUniverse.
|
implementation |
Reimplemented from Entity.
Definition at line 12837 of file ShipEntity.m.
References thrustVector, and velocity.
Referenced by addImpactMoment:fraction:, Universe::addLaserHitEffectsAt:against:damage:color:, Universe::addWreckageFrom:withRole:at:scale:lifetime:, adjustVelocity:, applyThrust:, becomeExplosion, behaviour_attack_target:, behaviour_land_on_planet:, behaviour_tractored:, collideWithShip:, PlayerEntity::createDoppelganger, dealEnergyDamage:atRange:withBias:, StationEntity::dockingInstructionsForShip:, dumpItem:, PlayerEntity::engageAutopilotToStation:, PlayerEntity::getDestroyedBy:damageType:, PlayerEntity::launchEscapeCapsule, PlayerEntity::launchMine:, DockEntity::launchShip:, PlayerEntity::leaveDock:, PlayerEntity::leaveWitchspace, releaseCargoPodsDebris, PlayerEntity::setUpAndConfirmOK:saveGame:, update:, velocity, and witchspaceLeavingEffects.
|
implementation |
Definition at line 3747 of file ShipEntity.m.
References OOEquipmentType::equipmentTypeWithIdentifier:, generateMissileEquipmentTypeFrom:, OOEquipmentType::getMissileRegistryRoleForShip:, name, nil, OOLogWARN, OORoleSet::roles, roleSet, OOEquipmentType::setMissileRegistryRole:forShip:, and verifiedMissileTypeFromRole:.
Referenced by selectMissile, and verifiedMissileTypeFromRole:.
- (float) volume |
Definition at line 1436 of file ShipEntity.m.
References Octree::volume, and volume.
Referenced by clearSubEntities, octree, PlayerEntity::setGuiToGameOptionsScreen, and volume.
|
implementation |
Reimplemented from Entity.
Definition at line 1503 of file ShipEntity.m.
References _pendingEscortCount, NO_TARGET, resetExhaustPlumes, setUpEscorts, Entity::status, Entity::universalID, Entity::wasAddedToUniverse, and wasAddedToUniverse.
Referenced by PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, and wasAddedToUniverse.
|
implementation |
Reimplemented from Entity.
Definition at line 1534 of file ShipEntity.m.
References wasRemovedFromUniverse.
Referenced by wasRemovedFromUniverse.
- (OOWeaponFacingSet) weaponFacings |
Definition at line 3247 of file ShipEntity.m.
References weapon_facings, and weaponFacings.
Referenced by PlayerEntity::availableFacings, isFrangible, OOShipLibraryWeapons(), PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setWeaponMount:toWeapon:inContext:, and weaponFacings.
- (GLfloat) weaponRange |
References currentWeaponFacing, energyRechargeRate, and weaponRechargeRate.
- (float) weaponRechargeRate |
Definition at line 7514 of file ShipEntity.m.
References weapon_recharge_rate, and weaponRechargeRate.
Referenced by weaponRange, and weaponRechargeRate.
- (GLfloat) weaponRecoveryTime |
Definition at line 9703 of file ShipEntity.m.
References shotTime, weapon_recharge_rate, and weaponRecoveryTime.
Referenced by maxFlightSpeed, and weaponRecoveryTime.
- (OOEquipmentType *) weaponTypeForFacing: | (OOWeaponFacing) | facing | |
strict: | (BOOL) | strict |
Reimplemented in PlayerEntity.
Definition at line 3294 of file ShipEntity.m.
References weaponTypeIDForFacing:strict:.
Referenced by fireDirectLaserShotAt:, fireSubentityLaserShot:, and ShipGetProperty().
- (OOWeaponType) weaponTypeIDForFacing: | (OOWeaponFacing) | facing | |
strict: | (BOOL) | strict |
Definition at line 3253 of file ShipEntity.m.
References aft_weapon_type, forward_weapon_type, isWeaponNone(), nil, port_weapon_type, shipSubEntityEnumerator, starboard_weapon_type, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_NONE, WEAPON_FACING_PORT, WEAPON_FACING_STARBOARD, and weapon_facings.
Referenced by weaponTypeForFacing:strict:.
- (BOOL) witchspaceLeavingEffects |
Definition at line 13563 of file ShipEntity.m.
References flightPitch, flightRoll, flightSpeed, flightYaw, kZeroVector, AI::message:, Entity::orientation, setStatus:, stick_pitch, stick_roll, stick_yaw, UNIVERSE, velocity, and witchspaceLeavingEffects.
Referenced by Universe::addShipAt:withRole:withinRadius:, coordinates, WormholeEntity::disgorgeShips, leaveWitchspace, and witchspaceLeavingEffects.
- (BOOL) withinStationAegis |
Definition at line 7879 of file ShipEntity.m.
References AEGIS_IN_DOCKING_RANGE, aegis_status, and withinStationAegis.
Referenced by AuthorityPredicate, reportAIMessages, and withinStationAegis.
- (void) wormholeEntireGroup |
Provided by category ShipEntity(AI).
Definition at line 713 of file ShipEntityAI.m.
- (void) wormholeEscorts |
Provided by category ShipEntity(AI).
Definition at line 684 of file ShipEntityAI.m.
Referenced by enterWormhole:replacing:, and ShipEntity(AI)::wormholeEntireGroup.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1647 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::wormholeEntireGroup.
|
private |
Definition at line 484 of file ShipEntity.h.
Referenced by beaconCode, dealloc, and setBeaconCode:.
|
private |
Definition at line 488 of file ShipEntity.h.
Referenced by beaconDrawable, dealloc, and setBeaconCode:.
|
private |
Definition at line 485 of file ShipEntity.h.
Referenced by beaconLabel, dealloc, setBeaconCode:, and setBeaconLabel:.
|
private |
Definition at line 477 of file ShipEntity.h.
Referenced by addCollisionException:, collisionExceptedFor:, collisionExceptions, dealloc, and removeCollisionException:.
|
private |
Definition at line 474 of file ShipEntity.h.
Referenced by addDefenseTarget:, dealloc, and validateDefenseTargets.
- (HPVector) _destination |
Definition at line 203 of file ShipEntity.h.
Referenced by avoidCollision, behaviour_avoid_collision:, behaviour_fly_thru_navpoints:, behaviour_fly_to_target_six:, behaviour_intercept_target:, behaviour_tractored:, destination, dumpSelfState, rangeToDestination, resumePostProximityAlert, setDestination:, setEscortDestination:, trackDestination:delta_t:, and update:.
|
private |
Definition at line 461 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, countEquipmentItem:, equipmentItemProviding:, hasAllEquipment:includeWeapons:whileLoading:, hasEquipmentItemProviding:, hasOneEquipmentItem:includeMissiles:whileLoading:, hasOneEquipmentItem:includeWeapons:whileLoading:, removeAllEquipment, and removeEquipmentItem:.
|
private |
Definition at line 467 of file ShipEntity.h.
Referenced by abandonShip, dealloc, deployEscorts, dockEscorts, escortArray, escortCount, escortEnumerator, escortGroup, hasEscorts, realAlertCondition, setEscortGroup:, and setGroup:.
|
private |
Definition at line 471 of file ShipEntity.h.
|
private |
Definition at line 472 of file ShipEntity.h.
Referenced by updateEscortFormation.
|
protected |
Definition at line 274 of file ShipEntity.h.
Referenced by isExplicitlyUnpiloted, and setUpShipFromDictionary:.
|
protected |
Definition at line 440 of file ShipEntity.h.
Referenced by foundTarget, PlayerEntity::setFoundTarget:, and setFoundTarget:.
|
private |
Definition at line 466 of file ShipEntity.h.
Referenced by dealloc, fireMissileWithIdentifier:andTarget:, group, realAlertCondition, setGroup:, and stationGroup.
|
private |
Definition at line 462 of file ShipEntity.h.
Referenced by heatInsulation, and setHeatInsulation:.
|
private |
Definition at line 464 of file ShipEntity.h.
Referenced by dealloc, and setLastAegisLock:.
|
protected |
Definition at line 441 of file ShipEntity.h.
Referenced by lastEscortTarget, setLastEscortTarget:, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
|
protected |
Definition at line 282 of file ShipEntity.h.
Referenced by lightsActive, setUpFromDictionary:, switchLightsOff, and switchLightsOn.
|
private |
Definition at line 468 of file ShipEntity.h.
Referenced by acceptAsEscort:, maxEscortCount, setMaxEscortCount:, setPendingEscortCount:, setUpEscorts, and setUpShipFromDictionary:.
|
protected |
Definition at line 343 of file ShipEntity.h.
Referenced by maxShipSubEntities, setUpOneStandardSubentity:asTurret:, and setUpSubEntities.
|
protected |
Definition at line 376 of file ShipEntity.h.
Referenced by adjustMissedShots:, missedShots, and setUpShipFromDictionary:.
|
protected |
Definition at line 321 of file ShipEntity.h.
Referenced by selectMissile, and setUpShipFromDictionary:.
|
protected |
Definition at line 391 of file ShipEntity.h.
Referenced by fireLaserShotInDirection:weaponIdentifier:, PlayerEntity::fireMainWeapon, fireWeapon:direction:range:, and PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:.
|
private |
Definition at line 490 of file ShipEntity.h.
Referenced by forceAegisCheck, initWithKey:definition:, and update:.
|
private |
Definition at line 487 of file ShipEntity.h.
Referenced by setNextBeacon:.
|
private |
Definition at line 469 of file ShipEntity.h.
Referenced by pendingEscortCount, setPendingEscortCount:, setUpEscorts, setUpShipFromDictionary:, and wasAddedToUniverse.
|
private |
Definition at line 486 of file ShipEntity.h.
Referenced by setPrevBeacon:.
|
protected |
Definition at line 438 of file ShipEntity.h.
Referenced by noteLostTarget, primaryAggressor, and setPrimaryAggressor:.
|
protected |
Definition at line 437 of file ShipEntity.h.
Referenced by addTarget:, checkCloseCollisionWith:, PlayerEntity::disengageAutopilot, PlayerEntity::engageAutopilotToStation:, PlayerEntity::enterDock:, PlayerEntity::interpretAIMessage:, noteLostTarget, primaryTarget, primaryTargetWithoutValidityCheck, removeTarget:, resumePostProximityAlert, PlayerEntity::selectNextMissile, setTargetToSystemStation, PlayerEntity::setUpShipFromDictionary:, and update:.
|
private |
Definition at line 479 of file ShipEntity.h.
Referenced by clearSubEntities, frustumRadius, and setUpSubEntities.
|
protected |
Definition at line 444 of file ShipEntity.h.
Referenced by proximityAlert, resumePostProximityAlert, and setProximityAlert:.
|
protected |
Definition at line 443 of file ShipEntity.h.
Referenced by rememberedShip, and setRememberedShip:.
|
protected |
Definition at line 388 of file ShipEntity.h.
Referenced by getWeaponOffsetFrom:withKey:inMode:, missileLaunchPosition, PlayerEntity::setCustomViewDataFromDictionary:withScaling:, setUpOneStandardSubentity:asTurret:, and PlayerEntity::setUpShipFromDictionary:.
|
protected |
Definition at line 284 of file ShipEntity.h.
Referenced by scriptedMisjumpRange, setScriptedMisjumpRange:, PlayerEntity::setUpAndConfirmOK:saveGame:, and setUpFromDictionary:.
|
private |
Definition at line 481 of file ShipEntity.h.
|
private |
Definition at line 459 of file ShipEntity.h.
Referenced by dealloc, initWithKey:definition:, setShipDataKey:, and shipDataKey.
|
protected |
Definition at line 270 of file ShipEntity.h.
Referenced by showDamage, and update:.
|
private |
Definition at line 457 of file ShipEntity.h.
Referenced by setSubEntityTakingDamage:.
|
protected |
Definition at line 342 of file ShipEntity.h.
Referenced by setSubIdx:, and subIdx.
|
protected |
Definition at line 439 of file ShipEntity.h.
Referenced by setTargetStation:, and targetStation.
|
protected |
Definition at line 442 of file ShipEntity.h.
Referenced by setThankedShip:, and thankedShip.
|
protected |
Definition at line 1217 of file ShipEntity.m.
Referenced by applySticks:, behaviour_attack_break_off_target:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_sniper:, behaviour_attack_target:, behaviour_flee_target:, behaviour_fly_to_target_six:, behaviour_running_defense:, currentAimTolerance, dumpSelfState, fireDirectLaserShot:, fireDirectLaserShotAt:, fireWeapon:direction:range:, frustration, missileTrackPrimaryTarget:, noteTakingDamage:from:type:, noticeECM, setAccuracy:, setEvasiveJink:, setUpShipFromDictionary:, trackPrimaryTarget:delta_t:, and trackSideTarget:delta_t:.
|
protected |
Definition at line 378 of file ShipEntity.h.
Referenced by checkForAegis, transitionToAegisNone, update:, StationEntity::update:, and withinStationAegis.
|
protected |
Definition at line 315 of file ShipEntity.h.
Referenced by behaviour_attack_target:, PlayerEntity::doBookkeeping:, PlayerEntity::fireMainWeapon, fireWeapon:direction:range:, initWithKey:definition:, PlayerEntity::laserHeatLevelAft, laserHeatLevelAft, PlayerEntity::leaveDock:, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, and update:.
|
protected |
Definition at line 306 of file ShipEntity.h.
Referenced by behaviour_attack_fly_to_target:, behaviour_attack_target:, PlayerEntity::commanderDataDictionary, PlayerEntity::equipmentList, PlayerEntity::hasPrimaryWeapon:, hasPrimaryWeapon:, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setUpAndConfirmOK:saveGame:, setWeaponMount:toWeapon:, PlayerEntity::setWeaponMount:toWeapon:inContext:, PlayerEntity::weaponForFacing:, PlayerEntity::weaponTypeForFacing:strict:, and weaponTypeIDForFacing:strict:.
|
protected |
Definition at line 291 of file ShipEntity.h.
Referenced by afterburnerRate, applyThrust:, PlayerEntity::doBookkeeping:, and setAfterburnerRate:.
|
protected |
Definition at line 292 of file ShipEntity.h.
Referenced by afterburnerFactor, and setAfterburnerFactor:.
|
protected |
Definition at line 2027 of file ShipEntity.m.
Referenced by dealloc, findBoundingBoxRelativeToPosition:InVectors:i:j:, Universe::firstEntityTargetedByPlayerPrecisely, laserPortOffset:, and ShipGetProperty().
|
protected |
Definition at line 375 of file ShipEntity.h.
Referenced by behaviour_attack_fly_to_target:, behaviour_attack_target:, currentAimTolerance, and setAccuracy:.
|
protected |
Definition at line 223 of file ShipEntity.h.
Referenced by dealloc, and shipAIScript.
|
protected |
Definition at line 224 of file ShipEntity.h.
Referenced by behaviour_land_on_planet:, initWithKey:definition:, setAIScriptWakeTime:, shipAIScriptWakeTime, and update:.
- (OOBehaviour) behaviour |
Definition at line 10244 of file ShipEntity.m.
Referenced by abandonShip, applyThrust:, avoidCollision, behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_attack_target:, behaviour_close_to_broadside_range:, behaviour_close_with_target:, behaviour_evasive_action:, behaviour_face_destination:, behaviour_fly_from_destination:, behaviour_fly_range_from_destination:, behaviour_fly_thru_navpoints:, behaviour_fly_to_destination:, behaviour_fly_to_target_six:, behaviour_intercept_target:, behaviour_land_on_planet:, behaviour_running_defense:, behaviour_scripted_ai:, behaviour_tractored:, descriptionComponents, PlayerEntity::disengageAutopilot, dumpSelfState, fireMainWeapon:, getTractoredBy:, hasHostileTarget, IsBehaviourHostile, isMining, isTurret, maxFlightSpeed, noteLostTargetAndGoIdle, noteTakingDamage:from:type:, processBehaviour:, resumePostProximityAlert, setBehaviour:, setProximityAlert:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, trackPrimaryTarget:delta_t:, OOAIDebugInspectorModule::update, and update:.
|
protected |
Definition at line 259 of file ShipEntity.h.
Referenced by PlayerEntity::docked, dumpSelfState, PlayerEntity::leaveWitchspace, markedForFines, markForFines, and setUpFromDictionary:.
|
protected |
Definition at line 257 of file ShipEntity.h.
Referenced by becomeExplosion, StationEntity::becomeExplosion, dumpSelfState, takeEnergyDamage:from:becauseOf:weaponIdentifier:, and takeScrapeDamage:from:.
|
protected |
Definition at line 8299 of file ShipEntity.m.
Referenced by StationEntity::acceptDockingClearanceRequestFrom:, broadcastHitByLaserFrom:, canAcceptEscort:, PlayerEntity::collectBountyFor:, WormholeEntity::disgorgeShips, fuel, interpretAIMessage:, legalStatus, markAsOffender:withReason:, respondToAttackFrom:becauseOf:, setBounty:withReasonAsString:, StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, and update:.
|
protected |
Definition at line 268 of file ShipEntity.h.
Referenced by becomeExplosion, and dumpSelfState.
|
protected |
Definition at line 8405 of file ShipEntity.m.
Referenced by addCargo:, bounty, canScoop:, PlayerEntity::cargoQuantityForType:, PlayerEntity::cargoQuantityOnBoard, cargoQuantityOnBoard, dealloc, PlayerEntity::dialFuelScoopStatus, dumpCargoItem:, PlayerEntity::loadCargoPodsForType:amount:, removeCargo:amount:, PlayerEntity::rotateCargo, scoopUpProcess:processEvents:processMessages:, PlayerEntity::setUpShipFromDictionary:, setUpShipFromDictionary:, PlayerEntity::takeInternalDamage, PlayerEntity::unloadCargoPods, and OOTrumble::updateTrumble:.
|
protected |
Definition at line 358 of file ShipEntity.h.
Referenced by dumpCargoItem:, dumpItem:, and PlayerEntity::loadCargoPods.
|
protected |
Definition at line 299 of file ShipEntity.h.
Referenced by cargoFlag, scoopUpProcess:processEvents:processMessages:, setCargoFlag:, and setUpShipFromDictionary:.
|
protected |
Definition at line 298 of file ShipEntity.h.
Referenced by cargoType, setUpCargoType:, and setUpShipFromDictionary:.
|
protected |
Definition at line 267 of file ShipEntity.h.
Referenced by behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_attack_target:, behaviour_evasive_action:, behaviour_flee_target:, behaviour_fly_to_target_six:, behaviour_running_defense:, hasAutoCloak, and setAutoCloak:.
|
protected |
Definition at line 265 of file ShipEntity.h.
Referenced by activateCloakingDevice, deactivateCloakingDevice, PlayerEntity::doBookkeeping:, drawImmediate:translucent:, dumpSelfState, PlayerEntity::enterDock:, PlayerEntity::fireMainWeapon, PlayerEntity::fireMissile, fireMissileWithIdentifier:andTarget:, fireWeapon:direction:range:, isCloaked, launchCascadeMine, scanClass, PlayerEntity::setUpAndConfirmOK:saveGame:, and update:.
|
protected |
Provided by category ShipEntity(Private).
Definition at line 6676 of file ShipEntity.m.
References OOLog.
Referenced by PlayerEntity::fireMainWeapon, PlayerEntity::fireMissile, fireMissileWithIdentifier:andTarget:, fireTurretCannon:, fireWeapon:direction:range:, and launchCascadeMine.
|
protected |
Definition at line 402 of file ShipEntity.h.
Referenced by checkCloseCollisionWith:, setTrackCloseContacts:, and update:.
|
protected |
Definition at line 386 of file ShipEntity.h.
|
protected |
Definition at line 364 of file ShipEntity.h.
Referenced by commodityAmount, setCommodity:andAmount:, setCommodityForPod:andAmount:, setUpCargoType:, and setUpShipFromDictionary:.
|
protected |
Definition at line 363 of file ShipEntity.h.
Referenced by commodityType, dealloc, setCommodity:andAmount:, setCommodityForPod:andAmount:, setUpCargoType:, and setUpShipFromDictionary:.
|
protected |
Definition at line 10265 of file ShipEntity.m.
Referenced by behaviour, dumpSelfState, and setCoordinate:.
|
protected |
Definition at line 7945 of file ShipEntity.m.
Referenced by broadcastMessage:withUnpilotedOverride:, crewForScripting, dealloc, dumpItem:, StationEntity::launchDefenseShip, launchEscapeCapsule, StationEntity::launchEscort, StationEntity::launchIndependentShip:, StationEntity::launchMiner, StationEntity::launchPatrol, StationEntity::launchPirateShip, StationEntity::launchPolice, StationEntity::launchScavenger, StationEntity::launchShipWithRole:, StationEntity::launchShuttle, PlayerEntity(Contracts)::processEscapePods, reportAIMessages, scoopUpProcess:processEvents:processMessages:, sendExpandedMessage:toShip:, sendMessage:toShip:withUnpilotedOverride:, setCrew:, setProximityAlert:, and StationEntity::setUpShipFromDictionary:.
|
protected |
Definition at line 8608 of file ShipEntity.m.
Referenced by acceptAsEscort:, and cargo.
|
protected |
Definition at line 7532 of file ShipEntity.m.
Referenced by currentAimTolerance, PlayerEntity::doBookkeeping:, fireAftWeapon:, PlayerEntity::fireMainWeapon, fireMainWeapon:, firePortWeapon:, fireStarboardWeapon:, initWithKey:definition:, PlayerEntity::leaveDock:, lookingAtSunWithThresholdAngleCos:, PlayerShipGetProperty(), PlayerShipSetProperty(), PlayerEntity::setCustomViewDataFromDictionary:withScaling:, PlayerEntity::setUpAndConfirmOK:saveGame:, ShipGetProperty(), ShipSetProperty(), weaponRange, and PlayerEntity::weaponViewOffset.
|
protected |
Definition at line 427 of file ShipEntity.h.
Referenced by update:.
|
protected |
Definition at line 230 of file ShipEntity.h.
Referenced by dealloc, and setWeaponDataFromType:.
|
private |
Definition at line 494 of file ShipEntity.h.
Referenced by setDemoShip:, and update:.
|
private |
Definition at line 496 of file ShipEntity.h.
Referenced by setDemoShip:.
|
private |
Definition at line 495 of file ShipEntity.h.
Referenced by getDemoStartTime, setDemoStartTime:, and update:.
- (GLfloat) desired_range |
Definition at line 205 of file ShipEntity.h.
Referenced by avoidCollision, becomeExplosion, behaviour_avoid_collision:, behaviour_face_destination:, behaviour_flee_target:, behaviour_fly_from_destination:, behaviour_fly_range_from_destination:, behaviour_fly_thru_navpoints:, behaviour_fly_to_destination:, behaviour_formation_form_up:, behaviour_intercept_target:, behaviour_tractored:, dealEnergyDamageWithinDesiredRange, dealMomentumWithinDesiredRange:, desiredRange, resumePostProximityAlert, setDesiredRange:, and trackDestination:delta_t:.
- (GLfloat) desired_speed |
Definition at line 206 of file ShipEntity.h.
Referenced by abandonShip, applyThrust:, behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_mining_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_avoid_collision:, behaviour_evasive_action:, behaviour_face_destination:, behaviour_flee_target:, behaviour_fly_from_destination:, behaviour_fly_range_from_destination:, behaviour_fly_thru_navpoints:, behaviour_fly_to_destination:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, behaviour_intercept_target:, behaviour_land_on_planet:, behaviour_running_defense:, behaviour_scripted_ai:, behaviour_tractored:, desiredSpeed, dumpSelfState, getTractoredBy:, increase_flight_speed:, noteTakingDamage:from:type:, resumePostProximityAlert, and setDesiredSpeed:.
|
protected |
Definition at line 380 of file ShipEntity.h.
Referenced by destinationSystem, setDestinationSystem:, and setUpShipFromDictionary:.
|
protected |
Definition at line 7127 of file ShipEntity.m.
Referenced by StationEntity::acceptDockingClearanceRequestFrom:, PlayerEntity(Scripting)::commanderShipDisplayName_string, dealloc, PlayerEntity(ScriptMethods)::dockedStationDisplayName, dumpSelfState, StationEntity::dumpSelfState, StationEntity::fitsInDock:andLogNoFit:, PlayerEntity(OOControlsPrivate)::handleAutopilotOn:, identFromShip:, ShipEntity(OOEntityInspectorExtensions)::inspDescription, PlayerEntity(OOEntityInspectorExtensions)::inspSecondaryIdentityLine, ShipEntity(OOEntityInspectorExtensions)::inspSecondaryIdentityLine, StationEntity::launchDefenseShip, StationEntity::launchEscort, StationEntity::launchIndependentShip:, StationEntity::launchMiner, StationEntity::launchPatrol, StationEntity::launchPirateShip, StationEntity::launchPolice, StationEntity::launchScavenger, StationEntity::launchShipWithRole:, StationEntity::launchShuttle, PlayerEntity::marketScreenTitle, PlayerEntity::receiveCommsMessage:from:, sendExpandedMessage:toShip:, setDisplayName:, PlayerEntity::setGuiToInterfacesScreen:, PlayerEntity::setGuiToStatusScreen, setShipScript:, StationEntity::setUpSubEntities, shipClassName, ShipGetProperty(), PlayerEntity(Contracts)::showTradeInInformationFooter, and StationEntity::update:.
|
protected |
Definition at line 414 of file ShipEntity.h.
Referenced by checkScanner, and checkScannerIgnoringUnpowered.
|
protected |
Definition at line 251 of file ShipEntity.h.
Referenced by behaviour_face_destination:, behaviour_fly_to_destination:, dumpSelfState, and trackDestination:delta_t:.
|
protected |
Definition at line 14057 of file ShipEntity.m.
Referenced by behaviour_fly_to_destination:, canAcceptEscort:, coordinates, dealloc, enterDock:, setProximityAlert:, ShipGetProperty(), and trackDestination:delta_t:.
|
protected |
Definition at line 302 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, energyRechargeRate, removeEquipmentItem:, setEnergyRechargeRate:, and update:.
|
protected |
Definition at line 430 of file ShipEntity.h.
Referenced by behaviour_fly_to_target_six:, entityPersonality, entityPersonalityInt, initWithKey:definition:, randomSeedForShaders, PlayerEntity::setCommanderDataFromDictionary:, setEntityPersonalityInt:, and PlayerEntity::setUpAndConfirmOK:saveGame:.
|
protected |
Definition at line 297 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, availableCargoSpace, maxAvailableCargoSpace, removeEquipmentItem:, and setMaxAvailableCargoSpace:.
|
protected |
Definition at line 231 of file ShipEntity.h.
Referenced by dealloc, and setExhaustEmissiveColor:.
|
protected |
Definition at line 335 of file ShipEntity.h.
Referenced by becomeExplosion, and dealloc.
|
protected |
Definition at line 296 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, extraCargo, removeEquipmentItem:, and PlayerEntity::setCommanderDataFromDictionary:.
|
protected |
Definition at line 8711 of file ShipEntity.m.
Referenced by applySticks:, behaviour_face_destination:, behaviour_idle:, decrease_flight_pitch:, PlayerEntity::dialPitch, PlayerEntity::docked, StationEntity::dockingInstructionsForShip:, PlayerEntity::enterWitchspace, PlayerEntity::enterWormhole:, evasiveAction:, flightRoll, PlayerEntity::getDestroyedBy:damageType:, increase_flight_pitch:, PlayerEntity::launchEscapeCapsule, PlayerEntity::leaveWitchspace, missileTrackPrimaryTarget:, PlayerShipSetProperty(), setPitch:, PlayerEntity::setUpAndConfirmOK:saveGame:, trackDestination:delta_t:, trackOntoTarget:withDForward:, trackPrimaryTarget:delta_t:, trackSideTarget:delta_t:, and witchspaceLeavingEffects.
|
protected |
Definition at line 8705 of file ShipEntity.m.
Referenced by applySticks:, behaviour_idle:, cruiseSpeed, decrease_flight_roll:, PlayerEntity::dialRoll, PlayerEntity::docked, StationEntity::dockingInstructionsForShip:, evasiveAction:, PlayerEntity::getDestroyedBy:damageType:, increase_flight_roll:, PlayerEntity::launchEscapeCapsule, DockEntity::launchShip:, PlayerEntity::leaveDock:, PlayerEntity::leaveWitchspace, missileTrackPrimaryTarget:, PlayerShipSetProperty(), setRawRoll:, setRoll:, PlayerEntity::setUpAndConfirmOK:saveGame:, trackDestination:delta_t:, trackOntoTarget:withDForward:, trackPrimaryTarget:delta_t:, and witchspaceLeavingEffects.
|
protected |
Definition at line 8723 of file ShipEntity.m.
Referenced by applyThrust:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_face_destination:, behaviour_fly_thru_navpoints:, behaviour_fly_to_destination:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, behaviour_intercept_target:, behaviour_land_on_planet:, PlayerEntity::createDoppelganger, decrease_flight_speed:, PlayerEntity::dialHyperSpeed, PlayerEntity::dialSpeed, PlayerEntity::doBookkeeping:, PlayerEntity::docked, PlayerEntity::dumpCargo, dumpItem:, fireDirectLaserShotAt:, fireLaserShotInDirection:weaponIdentifier:, fireMissileWithIdentifier:andTarget:, flightYaw, PlayerEntity::getDestroyedBy:damageType:, increase_flight_speed:, launchCascadeMine, PlayerEntity::launchEscapeCapsule, DockEntity::launchShip:, PlayerEntity::leaveWitchspace, setProximityAlert:, setSpeed:, setThrustForDemo:, DockEntity::shipIsInDockingCorridor:, speedFactor, thrustVector, OOExhaustPlumeEntity::update:, update:, updateTrackingCurve, and witchspaceLeavingEffects.
|
protected |
Definition at line 8717 of file ShipEntity.m.
Referenced by applySticks:, behaviour_attack_break_off_target:, behaviour_evasive_action:, behaviour_tractored:, decrease_flight_yaw:, PlayerEntity::dialYaw, PlayerEntity::docked, StationEntity::dockingInstructionsForShip:, flightPitch, PlayerEntity::getDestroyedBy:damageType:, increase_flight_yaw:, PlayerEntity::launchEscapeCapsule, PlayerEntity::leaveWitchspace, PlayerShipSetProperty(), PlayerEntity::setUpAndConfirmOK:saveGame:, setYaw:, trackOntoTarget:withDForward:, trackSideTarget:delta_t:, update:, and witchspaceLeavingEffects.
|
protected |
Definition at line 315 of file ShipEntity.h.
Referenced by behaviour_attack_break_off_target:, behaviour_attack_target:, PlayerEntity::doBookkeeping:, PlayerEntity::fireMainWeapon, fireMainWeapon:, fireSubentityLaserShot:, fireWeapon:direction:range:, initWithKey:definition:, PlayerEntity::laserHeatLevelForward, laserHeatLevelForward, PlayerEntity::leaveDock:, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, and update:.
|
protected |
Definition at line 305 of file ShipEntity.h.
Referenced by behaviour_attack_target:, behaviour_flee_target:, behaviour_fly_to_target_six:, behaviour_running_defense:, PlayerEntity::commanderDataDictionary, PlayerEntity::equipmentList, fireMainWeapon:, fireSubentityLaserShot:, PlayerEntity::hasPrimaryWeapon:, hasPrimaryWeapon:, isMining, laserHeatLevelForward, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setUpAndConfirmOK:saveGame:, setWeaponMount:toWeapon:, PlayerEntity::setWeaponMount:toWeapon:inContext:, PlayerEntity::weaponForFacing:, PlayerEntity::weaponTypeForFacing:strict:, and weaponTypeIDForFacing:strict:.
|
protected |
Definition at line 2033 of file ShipEntity.m.
Referenced by aftWeaponOffset, dealloc, Universe::firstEntityTargetedByPlayerPrecisely, laserPortOffset:, and ShipGetProperty().
|
protected |
Definition at line 8098 of file ShipEntity.m.
Referenced by abandonShip, behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_attack_target:, behaviour_close_with_target:, behaviour_evasive_action:, behaviour_face_destination:, behaviour_flee_target:, behaviour_fly_from_destination:, behaviour_fly_range_from_destination:, behaviour_fly_thru_navpoints:, behaviour_fly_to_destination:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, behaviour_intercept_target:, behaviour_running_defense:, behaviour_tractored:, PlayerEntity::disengageAutopilot, dumpSelfState, launchCascadeMine, noteLostTargetAndGoIdle, noteTakingDamage:from:type:, resumePostProximityAlert, setBehaviour:, setDestination:, OOAIDebugInspectorModule::update, and update:.
|
protected |
Definition at line 8104 of file ShipEntity.m.
Referenced by ShipEntity(PureAI)::addFuel:, applyThrust:, PlayerEntity(Scripting)::awardFuel:, behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_sniper:, behaviour_evasive_action:, behaviour_flee_target:, behaviour_fly_to_target_six:, cascadeIfAppropriateWithDamageAmount:cascadeOwner:, PlayerEntity::commanderDataDictionary, crew, PlayerEntity::dialFuel, PlayerEntity::doBookkeeping:, dumpSelfState, PlayerEntity::enterWitchspace, equipmentValidToAdd:whileLoading:inContext:, PlayerEntity::hasSufficientFuelForJump, increase_flight_speed:, StationEntity::launchIndependentShip:, PlayerEntity::setCommanderDataFromDictionary:, setFuel:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, WormholeEntity::suckInShip:, PlayerEntity(OOPrivate)::tryBuyingItem:, OOShipDebugInspectorModule::update, and update:.
|
protected |
Definition at line 289 of file ShipEntity.h.
Referenced by applyThrust:, PlayerEntity::doBookkeeping:, dumpSelfState, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, and update:.
|
protected |
Definition at line 275 of file ShipEntity.h.
Referenced by setUpShipFromDictionary:, and showScoopMessage.
|
protected |
Definition at line 279 of file ShipEntity.h.
Referenced by setUpFromDictionary:, and update:.
|
protected |
Definition at line 280 of file ShipEntity.h.
Referenced by setUpFromDictionary:, and update:.
|
protected |
Definition at line 379 of file ShipEntity.h.
Referenced by homeSystem, setHomeSystem:, and setUpShipFromDictionary:.
|
protected |
Definition at line 247 of file ShipEntity.h.
Referenced by hasHyperspaceMotor, hyperspaceSpinTime, and setHyperspaceSpinTime:.
|
private |
Definition at line 14615 of file ShipEntity.m.
Referenced by scriptInfo, setDemoShip:, and update:.
|
protected |
Definition at line 2051 of file ShipEntity.m.
Referenced by collideWithShip:, dumpSelfState, fireDirectLaserShotAt:, fireLaserShotInDirection:weaponIdentifier:, fireSubentityLaserShot:, starboardWeaponOffset, and takeHeatDamage:.
|
protected |
Definition at line 8960 of file ShipEntity.m.
Referenced by PlayerEntity::addRoleForAggression:, PlayerEntity::collectBountyFor:, dumpSelfState, isUnpiloted, StationEntity::isUnpiloted, setHulk:, and trackCloseContacts.
|
protected |
Definition at line 7357 of file ShipEntity.m.
Referenced by PlayerEntity::addTarget:, canCollide, fireMissileWithIdentifier:andTarget:, hasHostileTarget, isMissileFlagSet, isWeapon, PlayerEntity::moveTargetMemoryBy:, primaryRole, PlayerEntity::selectNextMissile, setIsMissileFlag:, and setUpFromDictionary:.
|
protected |
Definition at line 263 of file ShipEntity.h.
Referenced by checkForAegis, dumpSelfState, and setUpFromDictionary:.
|
protected |
Definition at line 269 of file ShipEntity.h.
Referenced by becomeExplosion, canCollide, and setIsWreckage:.
|
protected |
Definition at line 338 of file ShipEntity.h.
Referenced by behaviour_attack_broadside:, behaviour_attack_fly_from_target:, behaviour_attack_target:, behaviour_running_defense:, dumpSelfState, setEvasiveJink:, and trackPrimaryTarget:delta_t:.
|
protected |
Definition at line 229 of file ShipEntity.h.
Referenced by dealloc, and setLaserColor:.
|
protected |
Definition at line 359 of file ShipEntity.h.
Referenced by fireLaserShotInDirection:weaponIdentifier:.
|
protected |
Definition at line 404 of file ShipEntity.h.
Referenced by dealloc, and sendExpandedMessage:toShip:.
|
protected |
Definition at line 345 of file ShipEntity.h.
Referenced by setLaunchDelay:, and update:.
|
protected |
Definition at line 344 of file ShipEntity.h.
Referenced by setStatus:, and update:.
|
protected |
Definition at line 294 of file ShipEntity.h.
Referenced by becomeExplosion, setCargoFlag:, and setUpShipFromDictionary:.
|
protected |
Definition at line 295 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, availableCargoSpace, PlayerEntity::changePassengerBerths:, PlayerEntity::commanderDataDictionary, maxAvailableCargoSpace, removeEquipmentItem:, scoopUpProcess:processEvents:processMessages:, PlayerEntity::setCommanderDataFromDictionary:, setMaxAvailableCargoSpace:, and PlayerEntity::setUpAndConfirmOK:saveGame:.
|
protected |
Definition at line 241 of file ShipEntity.h.
Referenced by behaviour_attack_fly_from_target:, behaviour_face_destination:, behaviour_fly_to_destination:, behaviour_formation_form_up:, behaviour_intercept_target:, behaviour_scripted_ai:, decrease_flight_pitch:, PlayerEntity::dialPitch, PlayerEntity::enterWitchspace, PlayerEntity::enterWormhole:, evasiveAction:, increase_flight_pitch:, maxFlightPitch, missileTrackPrimaryTarget:, PlayerEntity::setMaxFlightPitch:, setMaxFlightPitch:, PlayerEntity::setUpShipFromDictionary:, trackDestination:delta_t:, trackPrimaryTarget:delta_t:, and trackSideTarget:delta_t:.
|
protected |
Definition at line 240 of file ShipEntity.h.
Referenced by behaviour_attack_break_off_target:, behaviour_fly_to_destination:, behaviour_formation_form_up:, behaviour_intercept_target:, behaviour_scripted_ai:, decrease_flight_roll:, PlayerEntity::dialRoll, evasiveAction:, increase_flight_roll:, maxFlightRoll, missileTrackPrimaryTarget:, rollToMatchUp:rotating:, PlayerEntity::setMaxFlightRoll:, setMaxFlightRoll:, PlayerEntity::setUpShipFromDictionary:, trackDestination:delta_t:, and trackPrimaryTarget:delta_t:.
|
protected |
Definition at line 242 of file ShipEntity.h.
Referenced by behaviour_scripted_ai:, decrease_flight_yaw:, PlayerEntity::dialYaw, increase_flight_yaw:, maxFlightYaw, PlayerEntity::setMaxFlightYaw:, setMaxFlightYaw:, PlayerEntity::setUpShipFromDictionary:, and trackSideTarget:delta_t:.
|
protected |
Definition at line 320 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, PlayerEntity::assignToActivePylon:, canAddEquipment:inContext:, PlayerEntity::commanderDataDictionary, PlayerEntity::countMissiles, PlayerEntity::dialMaxMissiles, PlayerEntity::hasOneEquipmentItem:includeMissiles:, missileCapacity, PlayerEntity::missileForPylon:, PlayerEntity::mountMissile:, PlayerEntity::removeExternalStore:, PlayerEntity::removeFromPylon:, PlayerEntity::removeMissiles, PlayerEntity::safeAllMissiles, PlayerEntity::selectNextMissile, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setUpAndConfirmOK:saveGame:, and PlayerEntity::setUpShipFromDictionary:.
|
protected |
Definition at line 245 of file ShipEntity.h.
Referenced by PlayerEntity::doBookkeeping:, maxThrust, and setMaxThrust:.
|
protected |
Definition at line 8735 of file ShipEntity.m.
Referenced by acceptAsEscort:, applyThrust:, becomeExplosion, behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_mining_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_avoid_collision:, behaviour_evasive_action:, behaviour_flee_target:, behaviour_fly_range_from_destination:, behaviour_fly_to_destination:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, behaviour_intercept_target:, behaviour_running_defense:, behaviour_scripted_ai:, ShipEntity(PureAI)::checkHeatInsulation, decrease_flight_speed:, PlayerEntity::dialHyperSpeed, PlayerEntity::dialSpeed, WormholeEntity::disgorgeShips, PlayerEntity::doBookkeeping:, DockEntity::dockingInstructionsForShip:, PlayerEntity::dumpCargo, flightSpeed, increase_flight_speed:, initWithKey:definition:, PlayerEntity::launchEscapeCapsule, DockEntity::launchShip:, PlayerEntity::leaveWitchspace, Universe::makeSunSkimmer:andSetAI:, noteTakingDamage:from:type:, OOShipLibrarySpeed(), setMaxFlightSpeed:, setProximityAlert:, setThrustForDemo:, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, speedFactor, WormholeEntity::suckInShip:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, and update:.
|
protected |
Definition at line 6896 of file ShipEntity.m.
Referenced by broadcastMessage:withUnpilotedOverride:, HeadUpDisplay(Private)::drawScanner:, reactionTime, sendExpandedMessage:toShip:, sendMessage:toShip:withUnpilotedOverride:, setMessageTime:, and update:.
|
protected |
Definition at line 249 of file ShipEntity.h.
Referenced by PlayerEntity::doBookkeeping:, dumpSelfState, isJammingScanning, and update:.
|
protected |
Definition at line 323 of file ShipEntity.h.
Referenced by fireMissileWithIdentifier:andTarget:, and noticeECM.
|
protected |
Definition at line 434 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, PlayerEntity::assignToActivePylon:, fireMissileWithIdentifier:andTarget:, hasOneEquipmentItem:includeMissiles:whileLoading:, missilesList, PlayerEntity::mountMissile:, noticeECM, removeExternalStore:, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setUpShipFromDictionary:, setUpShipFromDictionary:, and PlayerEntity::tidyMissilePylons.
|
protected |
Definition at line 322 of file ShipEntity.h.
Referenced by fireMissileWithIdentifier:andTarget:, missileLoadTime, noticeECM, setAccuracy:, and setMissileLoadTime:.
|
protected |
Definition at line 319 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_flee_target:, behaviour_fly_to_target_six:, canAddEquipment:inContext:, PlayerEntity::commanderDataDictionary, considerFiringMissile:, dumpSelfState, fireMissileWithIdentifier:andTarget:, hasOneEquipmentItem:includeMissiles:whileLoading:, missileCount, PlayerEntity::mountMissile:, noticeECM, removeExternalStore:, PlayerEntity::removeFromPylon:, PlayerEntity::removeMissiles, removeMissiles, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setUpAndConfirmOK:saveGame:, PlayerEntity::setUpShipFromDictionary:, setUpShipFromDictionary:, and PlayerEntity::tidyMissilePylons.
|
protected |
Definition at line 415 of file ShipEntity.h.
Referenced by broadcastAIMessage:, broadcastMessage:withUnpilotedOverride:, checkScanner, checkScannerIgnoringUnpowered, dumpCargoItem:, getTractoredBy:, numberOfScannedShips, and scoopUpProcess:processEvents:processMessages:.
|
protected |
Definition at line 7109 of file ShipEntity.m.
Referenced by ShipEntity(PureAI)::ai_debugMessage:, PlayerEntity(Scripting)::commanderShip_string, dealloc, deployEscorts, descriptionComponents, PlayerEntity(ScriptMethods)::dockedStationName, dumpSelfState, messageTime, AI(OOPrivate)::refreshOwnerDesc, PlayerEntity::resetAutopilotAI, selectMissile, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setExtraGuiScreenKeys:definition:, setName:, ShipGetProperty(), ShipRunLegacyScriptActions(), shortDescriptionComponents, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, verifiedMissileTypeFromRole:, and PlayerEntity::witchJumpChecklist:.
|
protected |
Definition at line 418 of file ShipEntity.h.
Referenced by behaviour_fly_thru_navpoints:.
|
protected |
Definition at line 419 of file ShipEntity.h.
Referenced by behaviour_fly_thru_navpoints:.
|
protected |
Definition at line 384 of file ShipEntity.h.
Referenced by throwSparks, and update:.
|
protected |
Definition at line 281 of file ShipEntity.h.
Referenced by becomeExplosion, isMinable, and setUpShipFromDictionary:.
|
protected |
Definition at line 420 of file ShipEntity.h.
Referenced by behaviour_fly_thru_navpoints:, and dumpSelfState.
|
protected |
Definition at line 1430 of file ShipEntity.m.
Referenced by clearSubEntities, dealloc, doOctreesCollide, setMesh:, and subEntities.
|
protected |
Definition at line 351 of file ShipEntity.h.
|
protected |
Definition at line 374 of file ShipEntity.h.
Referenced by missileTrackPrimaryTarget:, and setAccuracy:.
|
protected |
Definition at line 253 of file ShipEntity.h.
Referenced by avoidCollision, behaviour_attack_target:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, dumpSelfState, missileTrackPrimaryTarget:, trackDestination:delta_t:, and trackPrimaryTarget:delta_t:.
|
protected |
Definition at line 346 of file ShipEntity.h.
|
protected |
Definition at line 315 of file ShipEntity.h.
Referenced by behaviour_attack_broadside:, behaviour_attack_target:, PlayerEntity::doBookkeeping:, PlayerEntity::fireMainWeapon, fireWeapon:direction:range:, initWithKey:definition:, PlayerEntity::laserHeatLevelPort, laserHeatLevelPort, PlayerEntity::leaveDock:, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, and update:.
|
protected |
Definition at line 307 of file ShipEntity.h.
Referenced by behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_to_target:, behaviour_attack_target:, behaviour_close_to_broadside_range:, PlayerEntity::commanderDataDictionary, PlayerEntity::equipmentList, PlayerEntity::hasPrimaryWeapon:, hasPrimaryWeapon:, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setUpAndConfirmOK:saveGame:, setWeaponMount:toWeapon:, PlayerEntity::setWeaponMount:toWeapon:inContext:, PlayerEntity::weaponForFacing:, PlayerEntity::weaponTypeForFacing:strict:, and weaponTypeIDForFacing:strict:.
|
protected |
Definition at line 2039 of file ShipEntity.m.
Referenced by dealloc, Universe::firstEntityTargetedByPlayerPrecisely, forwardWeaponOffset, laserPortOffset:, and ShipGetProperty().
|
protected |
Definition at line 353 of file ShipEntity.h.
Referenced by avoidCollision, dealloc, hasHostileTarget, and resumePostProximityAlert.
|
protected |
Definition at line 7302 of file ShipEntity.m.
Referenced by PlayerEntity::addRoleForAggression:, PlayerEntity::commanderDataDictionary, dealEnergyDamage:atRange:withBias:, dealEnergyDamageWithinDesiredRange, dealloc, dumpSelfState, StationEntity::dumpSelfState, enterWitchspace, PlayerEntity::fireMissile, StationEntity::fitsInDock:andLogNoFit:, hasPrimaryRole:, HasPrimaryRoleInSetPredicate(), isEscort, isMine, isPirate, isPirateVictim, isShuttle, isTemplateCargoPod, isTrader, PlayerEntity::mountMissile:, PlayerEntity::removeFromPylon:, roleSet, ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, Universe::setDockingClearanceProtocolActive:, setPrimaryRole:, setUpShipFromDictionary:, ShipGetProperty(), PlayerEntity::tidyMissilePylons, OOShipDebugInspectorModule::update, and update:.
|
protected |
Definition at line 6287 of file ShipEntity.m.
Referenced by calculateTargetPosition, calculateTrackingCurve, setReactionTime:, setUpShipFromDictionary:, startTrackingCurve, thrust, and updateTrackingCurve.
|
protected |
Definition at line 7550 of file ShipEntity.m.
Referenced by ballTrackLeadingTarget:atTarget:, scannerRange, setReference:, setUpShipFromDictionary:, SurfaceDistanceSqared, and SurfaceDistanceSqaredV.
|
protected |
Definition at line 7562 of file ShipEntity.m.
Referenced by dumpSelfState, landOnPlanet:, reference, setReportAIMessages:, AI::takeAction:, OOShipDebugInspectorModule::update, and update:.
|
protected |
Definition at line 7259 of file ShipEntity.m.
Referenced by addRole:withProbability:, becomeExplosion, dealloc, displayName, dumpSelfState, HasRoleInSetPredicate(), removeRole:, ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, PlayerEntity::setUpShipFromDictionary:, setUpShipFromDictionary:, ShipGetProperty(), OOShipDebugInspectorModule::update, and verifiedMissileTypeFromRole:.
|
protected |
Definition at line 254 of file ShipEntity.h.
|
protected |
Definition at line 331 of file ShipEntity.h.
Referenced by dealloc, scanDescription, scanDescriptionForScripting, setScanDescription:, and setUpShipFromDictionary:.
|
protected |
Definition at line 413 of file ShipEntity.h.
Referenced by broadcastAIMessage:, broadcastMessage:withUnpilotedOverride:, checkScanner, checkScannerIgnoringUnpowered, dumpCargoItem:, getTractoredBy:, scannedShips, and scoopUpProcess:processEvents:processMessages:.
|
protected |
Definition at line 232 of file ShipEntity.h.
Referenced by dealloc, and setScannerDisplayColor1:.
|
protected |
Definition at line 233 of file ShipEntity.h.
Referenced by dealloc, and setScannerDisplayColor2:.
|
protected |
Definition at line 234 of file ShipEntity.h.
Referenced by dealloc, and setScannerDisplayColorHostile1:.
|
protected |
Definition at line 235 of file ShipEntity.h.
Referenced by dealloc, and setScannerDisplayColorHostile2:.
|
protected |
Definition at line 7538 of file ShipEntity.m.
Referenced by behaviour_attack_fly_from_target:, behaviour_attack_sniper:, behaviour_formation_form_up:, behaviour_running_defense:, behaviour_track_as_turret:, canStillTrackPrimaryTarget, checkScanner, checkScannerIgnoringUnpowered, currentWeaponFacing, fireDirectLaserDefensiveShot, fireMissileWithIdentifier:andTarget:, realAlertCondition, sendExpandedMessage:toShip:, sendMessage:toShip:withUnpilotedOverride:, setScannerRange:, PlayerEntity::setUpAndConfirmOK:saveGame:, PlayerEntity::setUpShipFromDictionary:, and setUpShipFromDictionary:.
|
protected |
Definition at line 14576 of file ShipEntity.m.
Referenced by StationEntity::acceptDockingClearanceRequestFrom:, DockEntity::allowsLaunchingOf:, behaviour_scripted_ai:, DockEntity::canAcceptShipForDocking:, dealloc, StationEntity::dockingInstructionsForShip:, dumpSelfState, isHulk, removeScript, setShipScript:, PlayerEntity::setUpShipFromDictionary:, shipScript, OOShipDebugInspectorModule::update, and update:.
|
protected |
Definition at line 278 of file ShipEntity.h.
Referenced by scriptedMisjump, setScriptedMisjump:, PlayerEntity::setUpAndConfirmOK:saveGame:, and setUpFromDictionary:.
|
protected |
Definition at line 14582 of file ShipEntity.m.
Referenced by overrideScriptInfo:, script, and ShipGetProperty().
|
protected |
Definition at line 410 of file ShipEntity.h.
Referenced by PlayerEntity::doBookkeeping:, PlayerEntity::docked, dumpSelfState, hullHeatLevel, initWithKey:definition:, setTemperature:, PlayerEntity::setUpAndConfirmOK:saveGame:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, temperature, and update:.
|
protected |
Definition at line 325 of file ShipEntity.h.
Referenced by acceptAsEscort:, dealloc, dumpSelfState, getAI, setAI:, PlayerEntity::setUpAndConfirmOK:saveGame:, and setUpShipFromDictionary:.
|
protected |
Definition at line 7121 of file ShipEntity.m.
Referenced by PlayerEntity::commanderDataDictionary, dealloc, setShipClassName:, ShipGetProperty(), and shipUniqueName.
|
protected |
Definition at line 217 of file ShipEntity.h.
Referenced by dealloc, StationEntity::isRotatingStation, setUpEscorts, setUpFromDictionary:, shipInfoDictionary, update:, and validForAddToUniverse.
|
protected |
Definition at line 7115 of file ShipEntity.m.
Referenced by PlayerEntity::commanderDataDictionary, dealloc, name, setShipUniqueName:, and ShipGetProperty().
|
protected |
Definition at line 357 of file ShipEntity.h.
Referenced by dumpSelfState.
- (OOTimeDelta) shot_time |
Definition at line 197 of file ShipEntity.h.
Referenced by PlayerEntity::doBookkeeping:, initWithKey:definition:, resetShotTime, PlayerEntity::setUpAndConfirmOK:saveGame:, shotTime, and update:.
|
protected |
Definition at line 315 of file ShipEntity.h.
Referenced by behaviour_attack_broadside:, behaviour_attack_target:, PlayerEntity::doBookkeeping:, PlayerEntity::fireMainWeapon, fireWeapon:direction:range:, initWithKey:definition:, PlayerEntity::laserHeatLevelStarboard, laserHeatLevelStarboard, PlayerEntity::leaveDock:, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, and update:.
|
protected |
Definition at line 308 of file ShipEntity.h.
Referenced by behaviour_attack_broadside:, behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_to_target:, behaviour_attack_target:, PlayerEntity::commanderDataDictionary, PlayerEntity::equipmentList, PlayerEntity::hasPrimaryWeapon:, hasPrimaryWeapon:, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setUpAndConfirmOK:saveGame:, setWeaponMount:toWeapon:, PlayerEntity::setWeaponMount:toWeapon:inContext:, PlayerEntity::weaponForFacing:, PlayerEntity::weaponTypeForFacing:strict:, and weaponTypeIDForFacing:strict:.
|
protected |
Definition at line 2045 of file ShipEntity.m.
Referenced by dealloc, Universe::firstEntityTargetedByPlayerPrecisely, laserPortOffset:, portWeaponOffset, and ShipGetProperty().
- (GLfloat) stick_pitch |
Definition at line 209 of file ShipEntity.h.
Referenced by applySticks:, behaviour_idle:, behaviour_scripted_ai:, behaviour_stop_still:, evasiveAction:, missileTrackPrimaryTarget:, trackDestination:delta_t:, trackOntoTarget:withDForward:, trackPrimaryTarget:delta_t:, trackSideTarget:delta_t:, and witchspaceLeavingEffects.
- (GLfloat) stick_roll |
Definition at line 208 of file ShipEntity.h.
Referenced by applySticks:, behaviour_idle:, behaviour_scripted_ai:, behaviour_stop_still:, evasiveAction:, missileTrackPrimaryTarget:, trackDestination:delta_t:, trackOntoTarget:withDForward:, trackPrimaryTarget:delta_t:, trackSideTarget:delta_t:, and witchspaceLeavingEffects.
- (GLfloat) stick_yaw |
Definition at line 210 of file ShipEntity.h.
Referenced by applySticks:, behaviour_idle:, behaviour_scripted_ai:, behaviour_stop_still:, missileTrackPrimaryTarget:, trackDestination:delta_t:, trackOntoTarget:withDForward:, trackPrimaryTarget:delta_t:, trackSideTarget:delta_t:, and witchspaceLeavingEffects.
|
protected |
Definition at line 1313 of file ShipEntity.m.
Referenced by clearSubEntities, PlayerEntity::doBookkeeping:, StationEntity::dockSubEntityEnumerator, doOctreesCollide, drawImmediate:translucent:, exhaustEnumerator, flasherEnumerator, shipSubEntityEnumerator, subEntityEnumerator, totalBoundingBox, and update:.
|
protected |
Definition at line 219 of file ShipEntity.h.
Referenced by setSubEntityRotationalVelocity:, subEntityRotationalVelocity, and update:.
|
protected |
Definition at line 349 of file ShipEntity.h.
Referenced by behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_sniper:, behaviour_flee_target:, behaviour_fly_thru_navpoints:, behaviour_fly_to_destination:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, behaviour_intercept_target:, and dumpSelfState.
|
protected |
Definition at line 1205 of file ShipEntity.m.
Referenced by currentAimTolerance, dockingInstructions, and setSunGlareFilter:.
|
protected |
Definition at line 272 of file ShipEntity.h.
Referenced by checkForAegis, PlayerEntity::leaveDock:, setUpFromDictionary:, suppressFlightNotifications, and transitionToAegisNone.
|
protected |
Definition at line 271 of file ShipEntity.h.
Referenced by becomeExplosion, setSuppressExplosion:, setUpFromDictionary:, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
|
protected |
Definition at line 4131 of file ShipEntity.m.
Referenced by abandonShip, applyThrust:, ballTrackLeadingTarget:atTarget:, behaviour_fly_to_destination:, behaviour_formation_form_up:, behaviour_intercept_target:, behaviour_land_on_planet:, behaviour_tractored:, PlayerEntity::doBookkeeping:, dumpSelfState, isFrangible, PlayerEntity::launchEscapeCapsule, and setThrust:.
- (BoundingBox) totalBoundingBox |
Definition at line 1265 of file ShipEntity.m.
Referenced by accuracy, DockEntity::allowsLaunchingOf:, DockEntity::canAcceptShipForDocking:, PlayerEntity::doBookkeeping:, drawImmediate:translucent:, HeadUpDisplay(Private)::drawScanner:, OOShipLibrarySize(), setUpOneStandardSubentity:asTurret:, setUpSubEntities, CollisionRegion::shadowAtPointOcclusionToValue, ShipGetProperty(), and update:.
|
protected |
Definition at line 14386 of file ShipEntity.m.
Referenced by checkCloseCollisionWith:, dumpSelfState, setTrackCloseContacts:, sunGlareFilter, and update:.
|
protected |
Definition at line 452 of file ShipEntity.h.
Referenced by calculateTargetPosition, and calculateTrackingCurve.
|
protected |
Definition at line 450 of file ShipEntity.h.
Referenced by calculateTrackingCurve, startTrackingCurve, and updateTrackingCurve.
|
protected |
Definition at line 451 of file ShipEntity.h.
Referenced by calculateTargetPosition, calculateTrackingCurve, startTrackingCurve, and updateTrackingCurve.
|
protected |
Definition at line 407 of file ShipEntity.h.
Referenced by absoluteTractorPosition.
- (Vector) v_forward |
Definition at line 200 of file ShipEntity.h.
Referenced by approachAspectToPrimaryTarget, canScoop:, checkCloseCollisionWith:, distance_six:, doesHitLine:v0:, PlayerEntity::doesHitLine:v0:v1:, doesHitLine:v0:v1:, HeadUpDisplay(Private)::drawScanner:, dumpItem:, fireDirectLaserShotAt:, fireLaserShotInDirection:weaponIdentifier:, fireMissileWithIdentifier:andTarget:, forwardVector, launchCascadeMine, PlayerEntity::launchEscapeCapsule, PlayerEntity::launchMine:, PlayerEntity::lookingAtSunWithThresholdAngleCos:, lookingAtSunWithThresholdAngleCos:, missileTrackPrimaryTarget:, onTarget:withWeapon:, PlayerEntity::orientationChanged, orientationChanged, setProximityAlert:, ShipEntity(PureAI)::setRacepointsFromTarget, setUpShipFromDictionary:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeScrapeDamage:from:, thrustVector, trackDestination:delta_t:, trackOntoTarget:withDForward:, trackPrimaryTarget:delta_t:, trackSideTarget:delta_t:, and update:.
- (Vector) v_right |
Definition at line 200 of file ShipEntity.h.
Referenced by checkCloseCollisionWith:, distance_twelve:withOffset:, doesHitLine:v0:, PlayerEntity::doesHitLine:v0:v1:, doesHitLine:v0:v1:, HeadUpDisplay(Private)::drawScanner:, evasiveAction:, launchCascadeMine, PlayerEntity::lookingAtSunWithThresholdAngleCos:, lookingAtSunWithThresholdAngleCos:, missileTrackPrimaryTarget:, onTarget:withWeapon:, PlayerEntity::orientationChanged, orientationChanged, rightVector, rollToMatchUp:rotating:, setProximityAlert:, setUpShipFromDictionary:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeScrapeDamage:from:, trackDestination:delta_t:, trackPrimaryTarget:delta_t:, trackSideTarget:delta_t:, and update:.
- (Vector) v_up |
Definition at line 200 of file ShipEntity.h.
Referenced by canScoop:, checkCloseCollisionWith:, distance_twelve:withOffset:, doesHitLine:v0:, PlayerEntity::doesHitLine:v0:v1:, doesHitLine:v0:v1:, HeadUpDisplay(Private)::drawScanner:, launchCascadeMine, PlayerEntity::launchEscapeCapsule, missileTrackPrimaryTarget:, PlayerEntity::orientationChanged, orientationChanged, rollToMatchUp:rotating:, setProximityAlert:, setUpShipFromDictionary:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeScrapeDamage:from:, trackDestination:delta_t:, trackPrimaryTarget:delta_t:, trackSideTarget:delta_t:, update:, and upVector.
|
protected |
Definition at line 309 of file ShipEntity.h.
Referenced by behaviour_attack_broadside:, dealEnergyDamageWithinDesiredRange, fireLaserShotInDirection:weaponIdentifier:, setUpShipFromDictionary:, setWeaponDataFromType:, and setWeaponEnergy:.
|
protected |
Definition at line 310 of file ShipEntity.h.
Referenced by setUpShipFromDictionary:.
|
protected |
Definition at line 314 of file ShipEntity.h.
Referenced by PlayerEntity::fireMainWeapon, fireSubentityLaserShot:, fireWeapon:direction:range:, and setWeaponDataFromType:.
|
protected |
Definition at line 304 of file ShipEntity.h.
Referenced by setWeaponMount:toWeapon:, weaponFacings, and weaponTypeIDForFacing:strict:.
|
protected |
Definition at line 356 of file ShipEntity.h.
Referenced by fireSubentityLaserShot:, fireTurretCannon:, fireWeapon:direction:range:, initWithKey:definition:, setWeaponDataFromType:, setWeaponRechargeRate:, weaponRechargeRate, and weaponRecoveryTime.
|
protected |
Definition at line 314 of file ShipEntity.h.
Referenced by PlayerEntity::fireMainWeapon, fireSubentityLaserShot:, fireWeapon:direction:range:, and setWeaponDataFromType:.
|
protected |
Definition at line 314 of file ShipEntity.h.
Referenced by behaviour_attack_broadside_target:leftside:, behaviour_attack_fly_to_target:, behaviour_attack_sniper:, behaviour_fly_to_target_six:, behaviour_running_defense:, PlayerEntity::doBookkeeping:, PlayerEntity::docked, PlayerEntity::fireMainWeapon, fireMainWeapon:, fireWeapon:direction:range:, initWithKey:definition:, PlayerEntity::laserHeatLevel, laserHeatLevel, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, and update:.
|
protected |
Definition at line 7470 of file ShipEntity.m.
Referenced by ballTrackLeadingTarget:atTarget:, behaviour_attack_break_off_target:, behaviour_attack_broadside:, behaviour_attack_fly_from_target:, behaviour_attack_fly_to_target:, behaviour_attack_slow_dogfight:, behaviour_attack_sniper:, behaviour_attack_target:, behaviour_close_to_broadside_range:, behaviour_fly_to_target_six:, behaviour_running_defense:, behaviour_track_as_turret:, fireDirectLaserDefensiveShot, fireDirectLaserShot:, fireDirectLaserShotAt:, fireLaserShotInDirection:weaponIdentifier:, fireMainWeapon:, fireSubentityLaserShot:, fireTurretCannon:, fireWeapon:direction:range:, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, OOLaserShotEntity::initLaserFromShip:direction:offset:, isMissile, setWeaponDataFromType:, and setWeaponRange:.