|
Oolite
|
#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 183 of file ShipEntity.h.
| - (BOOL) abandonShip |
Definition at line 11585 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 12245 of file ShipEntity.m.
References abortDocking.
Referenced by abortDocking, coordinates, PlayerEntity::disengageAutopilot, and getDestroyedBy:damageType:.
| - (Triangle) absoluteIJKForSubentity |
Definition at line 2007 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:v1:hitEntity:, doesHitLine:v1:hitEntity:, doOctreesCollide, and maxFlightSpeed.
| - (HPVector) absoluteTractorPosition |
Definition at line 1400 of file ShipEntity.m.
References absoluteTractorPosition, HPvector_add(), Entity::normalOrientation, Entity::position, quaternion_rotate_vector(), tractor_position, and vectorToHPVector().
Referenced by absoluteTractorPosition, behaviour_tractored:, and octree.
| - (BOOL) acceptAsEscort: | (ShipEntity*) | other_ship |
Definition at line 11935 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(), and ShipGroupAddShip().
|
implementation |
Reimplemented in StationEntity.
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2513 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::broadcastDistressMessageWithDumping:.
| - (BOOL) activateCloakingDevice |
Reimplemented in PlayerEntity.
Definition at line 10744 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 7284 of file ShipEntity.m.
References cargo, count, and maxAvailableCargoSpace.
| - (void) addCollisionException: | (ShipEntity*) | ship |
Definition at line 9639 of file ShipEntity.m.
References _collisionExceptions, OOWeakSet::addObject:, and nil.
Referenced by ShipAddCollisionException(), and ShipAddCollisionException().
| - (BOOL) addDefenseTarget: | (Entity*) | target |
Definition at line 9678 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 3169 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 3174 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(), ShipAwardEquipment(), ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, ShipSetEquipmentStatus(), and ShipSetEquipmentStatus().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1016 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2237 of file ShipEntityAI.m.
| - (void) addImpactMoment: | (Vector) | moment | |
| fraction: | (GLfloat) | howmuch |
Definition at line 11187 of file ShipEntity.m.
References Entity::mass, vector_add(), vector_multiply_scalar(), and velocity.
Referenced by dealMomentumWithinDesiredRange:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 871 of file ShipEntityAI.m.
| - (void) addRole: | (NSString*) | role |
Definition at line 6283 of file ShipEntity.m.
References addRole:withProbability:.
Referenced by setIsBoulder:.
| - (void) addRole: | (NSString*) | role | |
| withProbability: | (float) | probability |
Definition at line 6288 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 5788 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 2028 of file ShipEntity.m.
References distance(), and HPmagnitude().
Referenced by ShipEntity(Private)::addSubEntity:.
| - (void) addTarget: | (Entity*) | targetEntity |
Reimplemented in PlayerEntity.
Definition at line 8667 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 10477 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 11182 of file ShipEntity.m.
References vector_add(), and velocity.
Referenced by StationEntity::adjustVelocity:, behaviour_land_on_planet:, collideWithShip:, and DockEntity::shipIsInDockingCorridor:.
| - (float) afterburnerFactor |
Definition at line 3661 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 3666 of file ShipEntity.m.
References afterburner_rate, and afterburnerRate.
Referenced by afterburnerRate, and isFrangible.
| - (NSArray *) aftWeaponOffset |
References aftWeaponOffset.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2312 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2302 of file ShipEntityAI.m.
| - (OOAlertCondition) alertCondition |
Reimplemented in PlayerEntity, and ProxyPlayerEntity.
Definition at line 12883 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 9668 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 5908 of file ShipEntity.m.
References applyRoll:climb:andYaw:.
Referenced by processBehaviour:, and update:.
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity.
Definition at line 5874 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 5890 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 7027 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:retreat:, trackPrimaryTarget:retreat:, and trackSideTarget:leftside:.
| - (void) applyThrust: | (double) | delta_t |
Definition at line 5817 of file ShipEntity.m.
References afterburner_rate, afterburnerFactor, behaviour, decrease_flight_speed:, desired_speed, flightSpeed, fuel, fuel_accumulator, hasFuelInjection, increase_flight_speed:, magnitude(), maxFlightSpeed, MIN_FUEL, Entity::moveForward:, scale_vector(), SHIP_THRUST_FACTOR, thrust, and velocity.
Referenced by processBehaviour:, and update:.
| - (double) approachAspectToPrimaryTarget |
Definition at line 9745 of file ShipEntity.m.
References approachAspectToPrimaryTarget, dot_product(), HPvector_subtract(), HPVectorToVector(), Entity::isShip, nil, Entity::position, primaryTarget, v_forward, and vector_normal().
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 12270 of file ShipEntity.m.
References HPdistance2(), Entity::position, scanClass, SCANNER_MAX_RANGE2, UNIVERSE, and withinStationAegis.
| - (OOCargoQuantity) availableCargoSpace |
Definition at line 7217 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(), ShipAwardEquipment(), ShipSetProperty(), ShipSetProperty(), and PlayerEntity::tryBuyingCommodity:all:.
| - (void) avoidCollision |
Definition at line 5913 of file ShipEntity.m.
References _destination, avoidCollision, behaviour, Entity::collision_radius, desired_range, nil, OOHPVectorInterpolate(), 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:retreat:.
| - (double) ballTrackLeadingTarget: | (double) | delta_t | |
| atTarget: | (Entity*) | target |
Definition at line 8916 of file ShipEntity.m.
References Entity::absolutePositionForSubentity, cross_product(), dot_product(), HPvector_subtract(), HPVectorToVector(), Entity::isSubEntity, kBasisZVector, kIdentityQuaternion, magnitude(), nil, NO_TARGET, Entity::normalOrientation, Entity::orientation, orientationChanged, Entity::owner, Entity::parentEntity, Entity::position, quaternion_conjugate(), quaternion_multiply(), quaternion_rotate_about_axis(), quaternion_rotate_vector(), reference, setStatus:, thrust, TURRET_MINIMUM_COS, TURRET_SHOT_SPEED, vector_add(), vector_forward_from_quaternion(), vector_multiply_scalar(), vector_normal_or_fallback(), Entity::velocity, Quaternion::w, and weaponRange.
Referenced by behaviour_track_as_turret:.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1405 of file ShipEntity.m.
References _beaconCode, and beaconCode.
Referenced by beaconCode, beaconDrawable, compareBeaconCodeWith:, isBeacon, ShipGetProperty(), ShipGetProperty(), and WormholeEntity::suckInShip:.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1453 of file ShipEntity.m.
References _beaconDrawable, beaconCode, beaconDrawable, and nil.
Referenced by beaconDrawable.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1427 of file ShipEntity.m.
References _beaconLabel, and beaconLabel.
Referenced by beaconLabel, ShipGetProperty(), and ShipGetProperty().
| - (void) becomeEnergyBlast |
Reimplemented in StationEntity.
Definition at line 8155 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 7900 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:, HPdistance2(), HPvector_add(), 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, vector_multiply_scalar(), vector_normal(), vectorToHPVector(), velocity, HPVector::x, Vector::x, HPVector::y, Vector::y, HPVector::z, and Vector::z.
Referenced by becomeExplosion, StationEntity::becomeExplosion, becomeLargeExplosion:, PlayerEntity::doBookkeeping:, getDestroyedBy:damageType:, and maxFlightSpeed.
| - (void) becomeLargeExplosion: | (double) | factor |
Reimplemented in StationEntity.
Definition at line 8309 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 1512 of file ShipEntityAI.m.
| - (OOBehaviour) behaviour |
| - (void) behaviour_attack_break_off_target: | (double) | delta_t |
Definition at line 3886 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:retreat:, and weaponRange.
Referenced by processBehaviour:.
| - (void) behaviour_attack_broadside: | (double) | delta_t |
Definition at line 4187 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 4235 of file ShipEntity.m.
References behaviour_attack_broadside_target:leftside:.
Referenced by processBehaviour:.
| - (void) behaviour_attack_broadside_right: | (double) | delta_t |
Definition at line 4240 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 4245 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:leftside:, 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 4733 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:retreat:, 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 4611 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:retreat:, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, weapon_temp, and weaponRange.
Referenced by processBehaviour:.
| - (void) behaviour_attack_mining_target: | (double) | delta_t |
Definition at line 4582 of file ShipEntity.m.
References avoidCollision, canStillTrackPrimaryTarget, desired_speed, fireMainWeapon:, maxFlightSpeed, nil, NO_TARGET, noteLostTargetAndGoIdle, proximityAlert, rangeToPrimaryTarget, and trackPrimaryTarget:retreat:.
Referenced by processBehaviour:.
| - (void) behaviour_attack_slow_dogfight: | (double) | delta_t |
Definition at line 3944 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:retreat:, and weaponRange.
Referenced by processBehaviour:.
| - (void) behaviour_attack_sniper: | (double) | delta_t |
Definition at line 4397 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:retreat:, weapon_temp, and weaponRange.
Referenced by processBehaviour:.
| - (void) behaviour_attack_target: | (double) | delta_t |
Definition at line 4038 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, magnitude(), nil, OOWeaponTypeFromEquipmentIdentifierSloppy(), pitching_over, port_weapon_temp, port_weapon_type, primaryTarget, randf(), rangeToPrimaryTarget, setEvasiveJink:, shipSubEntityEnumerator, starboard_weapon_temp, starboard_weapon_type, vector_subtract(), velocity, and weaponRange.
Referenced by processBehaviour:.
| - (void) behaviour_avoid_collision: | (double) | delta_t |
Definition at line 5155 of file ShipEntity.m.
References _destination, Entity::collision_radius, desired_range, desired_speed, distance(), maxFlightSpeed, Entity::position, PROXIMITY_AVOID_DISTANCE_FACTOR, proximityAlert, rangeToDestination, resumePostProximityAlert, and trackDestination:retreat:.
Referenced by processBehaviour:.
| - (void) behaviour_close_to_broadside_range: | (double) | delta_t |
Definition at line 4338 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 4369 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 3996 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 4920 of file ShipEntity.m.
References avoidCollision, behaviour, desired_range, desired_speed, distance(), docking_match_rotation, doScriptEvent:, flightPitch, flightSpeed, frustration, MAX_COS, max_flight_pitch, AI::message:, noteFrustration:, rangeToDestination, and trackDestination:retreat:.
Referenced by processBehaviour:.
| - (void) behaviour_flee_target: | (double) | delta_t |
Definition at line 4840 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:retreat:.
Referenced by processBehaviour:.
| - (void) behaviour_fly_from_destination: | (double) | delta_t |
Definition at line 5136 of file ShipEntity.m.
References avoidCollision, behaviour, desired_range, desired_speed, distance(), doScriptEvent:, frustration, AI::message:, rangeToDestination, and trackDestination:retreat:.
Referenced by processBehaviour:.
| - (void) behaviour_fly_range_from_destination: | (double) | delta_t |
Definition at line 4903 of file ShipEntity.m.
References avoidCollision, behaviour, desired_range, desired_speed, distance(), frustration, maxFlightSpeed, and rangeToDestination.
Referenced by processBehaviour:.
| - (void) behaviour_fly_thru_navpoints: | (double) | delta_t |
Definition at line 5223 of file ShipEntity.m.
References _destination, behaviour, desired_range, desired_speed, doScriptEvent:andReactToAIMessage:, flightSpeed, frustration, HPdot_product(), HPmagnitude(), HPmagnitude2(), HPvector_between, HPvector_normal(), make_HPvector(), navpoints, next_navpoint_index, noteFrustration:, number_of_navpoints, Entity::position, success_factor, trackDestination:retreat:, HPVector::x, HPVector::y, and HPVector::z.
Referenced by processBehaviour:.
| - (void) behaviour_fly_to_destination: | (double) | delta_t |
Definition at line 5049 of file ShipEntity.m.
References avoidCollision, behaviour, desired_range, desired_speed, distance(), docking_match_rotation, dockingInstructions, doScriptEvent:, dot_product(), flightSpeed, frustration, Entity::isStation, MAX_COS, max_flight_pitch, max_flight_roll, maxFlightSpeed, AI::message:, nil, noteFrustration:, rangeToDestination, success_factor, targetStation, thrust, trackDestination:retreat:, and upVector.
Referenced by processBehaviour:.
| - (void) behaviour_fly_to_target_six: | (double) | delta_t |
Definition at line 4461 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, distance(), 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:retreat:, 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 5002 of file ShipEntity.m.
References avoidCollision, desired_range, desired_speed, distance(), flightSpeed, frustration, Entity::isShip, max_flight_pitch, max_flight_roll, maxFlightSpeed, noteFrustration:, Entity::owner, pitching_over, rangeToDestination, scannerRange, success_factor, thrust, and trackDestination:retreat:.
Referenced by processBehaviour:.
| - (void) behaviour_idle: | (double) | delta_t |
Definition at line 3708 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 3817 of file ShipEntity.m.
References _destination, avoidCollision, behaviour, CARGO_NOT_CARGO, cargoType, Entity::collision_radius, desired_range, desired_speed, distance(), 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:retreat:, and trackPrimaryTarget:retreat:.
Referenced by processBehaviour:.
| - (void) behaviour_land_on_planet: | (double) | delta_t |
Definition at line 4967 of file ShipEntity.m.
References adjustVelocity:, aiScriptWakeTime, avoidCollision, behaviour, Entity::collisionRadius, desired_speed, flightSpeed, forwardVector, HPdistance(), Entity::isPlanet, landOnPlanet:, magnitude2(), MAX_COS2, MAX_LANDING_SPEED2, AI::message:, Entity::position, thrust, trackDestination:retreat:, and velocity.
Referenced by processBehaviour:.
| - (void) behaviour_running_defense: | (double) | delta_t |
Definition at line 4801 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:retreat:, weapon_temp, and weaponRange.
Referenced by processBehaviour:.
| - (void) behaviour_scripted_ai: | (double) | delta_t |
Definition at line 5300 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(), OOJSFreeValue, OOJSNativeObjectFromJSObject(), OOJSRelinquishContext(), OOJSUndefinedValue, OOJSValueFromDouble(), OOLog, rangeToPrimaryTarget, script, stick_pitch, stick_roll, and stick_yaw.
Referenced by processBehaviour:.
| - (void) behaviour_stop_still: | (double) | delta_t |
Definition at line 3700 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 5173 of file ShipEntity.m.
References ballTrackLeadingTarget:atTarget:, Entity::collisionRadius, defenseTargetEnumerator, Entity::energy, fireTurretCannon:, hasHostileTarget, HPvector_subtract(), 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 3805 of file ShipEntity.m.
References avoidCollision, nil, noteLostTargetAndGoIdle, primaryTarget, and trackPrimaryTarget:retreat:.
Referenced by processBehaviour:.
| - (void) behaviour_tractored: | (double) | delta_t |
Definition at line 3729 of file ShipEntity.m.
References _destination, absoluteTractorPosition, behaviour, Entity::collision_radius, desired_range, desired_speed, distance(), AI::exitStateMachineWithMessage:, flightYaw, frustration, HPmagnitude2(), HPvector_between, 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, vector_between, velocity, HPVector::x, Vector::x, HPVector::y, Vector::y, HPVector::z, and Vector::z.
Referenced by processBehaviour:.
| - (void) behaviour_tumble: | (double) | delta_t |
Definition at line 3724 of file ShipEntity.m.
References applySticks:.
Referenced by processBehaviour:.
Reimplemented in PlayerEntity.
References availableCargoSpace, bounty, cargoListForScripting, cargoQuantityOnBoard, cargoType, commodityAmount, commodityType, int(), isTemplateCargoPod, legalStatus, and maxAvailableCargoSpace.
| - (void) broadcastAIMessage: | (NSString*) | ai_message |
Definition at line 12370 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 677 of file ShipEntityAI.m.
| - (void) broadcastDistressMessageWithDumping: | (BOOL) | dumpCargo |
Provided by category ShipEntity(AI).
Definition at line 683 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::broadcastDistressMessage.
| - (void) broadcastEnergyBlastImminent |
Definition at line 8164 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 12288 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 12382 of file ShipEntity.m.
References checkScanner, crew, HPdistance2(), 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 12260 of file ShipEntity.m.
References broadcastThargoidDestroyed.
Referenced by becomeExplosion, broadcastThargoidDestroyed, and dockingInstructions.
| - (HPVector) calculateTargetPosition |
Definition at line 5421 of file ShipEntity.m.
References calculateTargetPosition, HPvector_add(), HPvector_multiply_scalar(), kZeroHPVector, nil, Entity::position, primaryTarget, reactionTime, trackingCurveCoeffs, and trackingCurveTimes.
Referenced by calculateTargetPosition, onTarget:withWeapon:, reactionTime, trackPrimaryTarget:retreat:, and trackSideTarget:leftside:.
| - (void) calculateTrackingCurve |
Definition at line 5478 of file ShipEntity.m.
References calculateTrackingCurve, HPvector_add(), HPvector_multiply_scalar(), kZeroHPVector, reactionTime, trackingCurveCoeffs, trackingCurvePositions, and trackingCurveTimes.
Referenced by calculateTrackingCurve, reactionTime, startTrackingCurve, and updateTrackingCurve.
| - (BOOL) canAcceptEscort: | (ShipEntity*) | potentialEscort |
Definition at line 11914 of file ShipEntity.m.
References bounty, dockingInstructions, isEscort, and scanClass.
| - (BOOL) canAddEquipment: | (NSString*) | equipmentKey | |
| inContext: | (NSString*) | context |
Reimplemented in PlayerEntity.
Definition at line 2879 of file ShipEntity.m.
References OOEquipmentType::equipmentTypeWithIdentifier:, isThargoid, max_missiles, and missiles.
Referenced by ShipCanAwardEquipment(), and ShipCanAwardEquipment().
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity.
Definition at line 1858 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 11192 of file ShipEntity.m.
References cargo, CARGO_NOT_CARGO, cargoType, count, dot_product(), hasCargoScoop, HPvector_between, HPVectorToVector(), Entity::isPlayer, Entity::isStation, maxAvailableCargoSpace, nil, Entity::position, scanClass, v_forward, and v_up.
Referenced by PlayerEntity::canScoop:.
| - (BOOL) canStillTrackPrimaryTarget |
Definition at line 8705 of file ShipEntity.m.
References canStillTrackPrimaryTarget, HPmagnitude2(), HPvector_subtract(), 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:retreat:, and trackSideTarget:leftside:.
| - (NSMutableArray *) cargo |
References cargo, cargoFlag, contractListForScripting, desiredRange, desiredSpeed, equipmentListForScripting, missilesList, parcelListForScripting, passengerListForScripting, and showScoopMessage.
| - (OOCargoFlag) cargoFlag |
Definition at line 7327 of file ShipEntity.m.
References cargo_flag, and cargoFlag.
Referenced by cargo, and cargoFlag.
| - (NSArray *) cargoListForScripting |
Reimplemented in PlayerEntity.
Definition at line 7244 of file ShipEntity.m.
References cargoListForScripting, commodityAmount, commodityType, and nil.
Referenced by bounty, cargoListForScripting, ShipGetProperty(), and ShipGetProperty().
| - (OOCargoQuantity) cargoQuantityOnBoard |
Reimplemented in PlayerEntity.
Definition at line 7225 of file ShipEntity.m.
References cargo, and cargoQuantityOnBoard.
Referenced by availableCargoSpace, bounty, and cargoQuantityOnBoard.
| - (OOCargoType) cargoType |
Definition at line 7232 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 11390 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 1272 of file ShipEntityAI.m.
|
implementation |
Reimplemented from Entity.
Definition at line 1944 of file ShipEntity.m.
References _primaryTarget, closeContactsInfo, Entity::collider, Entity::collidingEntities, Entity::collision_radius, doOctreesCollide(), doScriptEvent:withArgument:andReactToAIMessage:, dot_product(), HPdistance2(), HPvector_between, HPVectorToVector(), Entity::isShip, make_vector(), 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 1256 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1536 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1308 of file ShipEntityAI.m.
| - (OOAegisStatus) checkForAegis |
Definition at line 6668 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, HPmagnitude2(), HPvector_subtract(), 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 1026 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1788 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2173 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2393 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 1607 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1325 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1207 of file ShipEntityAI.m.
| - (void) checkScanner |
Definition at line 8457 of file ShipEntity.m.
References checkScanner, distance2_scanned_ships, HPdistance2(), isCloaked, Entity::isShip, MAX_SCAN_NUMBER, n_scanned_ships, nil, Entity::position, scanned_ships, scannerRange, HPVector::z, 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 8495 of file ShipEntity.m.
References checkScannerIgnoringUnpowered, distance2_scanned_ships, HPdistance2(), isCloaked, Entity::isShip, MAX_SCAN_NUMBER, n_scanned_ships, nil, Entity::position, Entity::scanClass, scanned_ships, scannerRange, HPVector::z, 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 12507 of file ShipEntity.m.
References checkShipsInVicinityForWitchJumpExit, HPmagnitude2(), HPvector_between, 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 1183 of file ShipEntityAI.m.
| - (void) clearSubEntities |
Definition at line 1066 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(), ShipRestoreSubEntities(), subEntities, and PlayerEntity(OOPrivate)::tryBuyingItem:.
| - (void) collectBountyFor: | (ShipEntity*) | other |
Reimplemented in PlayerEntity.
Definition at line 8347 of file ShipEntity.m.
References isPolice, and markAsOffender:withReason:.
Referenced by noteTargetDestroyed:.
| - (BOOL) collideWithShip: | (ShipEntity*) | other |
Reimplemented in StationEntity.
Definition at line 11029 of file ShipEntity.m.
References Entity::absolutePositionForSubentity, adjustVelocity:, Entity::collisionArray, doScriptEvent:withArgument:andReactToAIMessage:, dot_product(), Entity::energy, HPvector_add(), HPvector_normal_or_zbasis(), HPvector_subtract(), HPVectorToVector(), isFrangible, kZeroVector, magnitude2(), Entity::mass, nil, NO_TARGET, Entity::parentEntity, Entity::position, scoopIn:, Entity::setPosition:, takeScrapeDamage:from:, Entity::universalID, vector_multiply_scalar(), vector_subtract(), vectorToHPVector(), velocity, and Entity::velocity.
Referenced by StationEntity::collideWithShip:, and manageCollisions.
| - (BOOL) collisionExceptedFor: | (ShipEntity*) | ship |
Definition at line 9655 of file ShipEntity.m.
References _collisionExceptions, OOWeakSet::containsObject:, and nil.
| - (NSArray *) collisionExceptions |
Definition at line 9631 of file ShipEntity.m.
References _collisionExceptions, OOWeakSet::allObjects, collisionExceptions, and nil.
Referenced by collisionExceptions, isMissile, ShipGetProperty(), and ShipGetProperty().
| - (OOCargoQuantity) commodityAmount |
Definition at line 7202 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 7197 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(), ShipGetProperty(), PlayerEntity::takeInternalDamage, PlayerEntity::unloadAllCargoPodsForType:toManifest:, PlayerEntity::unloadCargoPodsForType:amount:, and OOTrumble::updateTrumble:.
|
implementation |
Reimplemented in PlayerEntity.
Provided by category ShipEntity(PureAI).
Definition at line 1439 of file ShipEntityAI.m.
| - (void) commsMessage: | (NSString*) | valueString | |
| withUnpilotedOverride: | (BOOL) | unpilotedOverride |
Definition at line 12424 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:, ShipCommsMessage(), and ShipCommsMessage().
|
implementation |
Reimplemented in PlayerEntity.
Provided by category ShipEntity(PureAI).
Definition at line 1444 of file ShipEntityAI.m.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 8355 of file ShipEntity.m.
References beaconCode.
|
implementation |
Definition at line 6582 of file ShipEntity.m.
References Entity::position, and SurfaceDistanceSqaredV.
| - (void) considerFiringMissile: | (double) | delta_t |
Definition at line 10530 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 2966 of file ShipEntity.m.
References contractListForScripting.
Referenced by cargo, contractListForScripting, ShipGetProperty(), and ShipGetProperty().
| - (HPVector) coordinates |
References abandonShip, abortDocking, activateCloakingDevice, approachAspectToPrimaryTarget, coordinates, currentAimTolerance, deactivateCloakingDevice, deployEscorts, destination, dockEscorts, 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 12038 of file ShipEntity.m.
References HPvector_add(), MAX_ESCORTS, MIN, quaternion_rotate_vector(), self, and vectorToHPVector().
Referenced by setUpEscorts, ShipEntity(Private)::setUpMixedEscorts, and update:.
| - (NSUInteger) countEquipmentItem: | (NSString*) | eqkey |
Definition at line 2766 of file ShipEntity.m.
References _equipment, count, and nil.
Referenced by PlayerEntity::commanderDataDictionary, PlayerEntity::equipmentList, equipmentListForScripting, ShipEquipmentStatus(), and ShipEquipmentStatus().
| - (BOOL) countsAsKill |
Definition at line 1527 of file ShipEntity.m.
References countsAsKill, and shipInfoDictionary.
Referenced by cascadeIfAppropriateWithDamageAmount:cascadeOwner:, PlayerEntity::collectBountyFor:, countsAsKill, and octree.
| - (NSArray *) crew |
| - (NSArray *) crewForScripting |
Definition at line 6888 of file ShipEntity.m.
References crew, crewForScripting, OOCharacter::infoForScripting, and nil.
Referenced by crew, crewForScripting, ShipGetProperty(), and ShipGetProperty().
| - (double) cruiseSpeed |
| - (GLfloat) currentAimTolerance |
Definition at line 9770 of file ShipEntity.m.
References accuracy, aim_tolerance, COMBAT_AI_ISNT_AWFUL, COMBAT_AI_TRACKS_CLOSER, currentAimTolerance, currentWeaponFacing, HPdistance(), 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:retreat:, and trackSideTarget:leftside:.
References currentWeaponFacing.
| - (int) damage |
Definition at line 7603 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 10756 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 7608 of file ShipEntity.m.
References Entity::collisionRadius, count, damage, dot_product(), OOExplosionCloudEntity::explosionCloudFromEntity:withSize:andSettings:, magnitude(), OOLog, Entity::owner, primaryRole, SCANNER_MAX_RANGE, Entity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, vector_normal(), vector_subtract(), Entity::vectorTo:, and velocity.
Referenced by ShipDealEnergyDamage(), and ShipDealEnergyDamage().
| - (void) dealEnergyDamageWithinDesiredRange |
Definition at line 7671 of file ShipEntity.m.
References Entity::collisionRadius, count, damage, dealEnergyDamageWithinDesiredRange, desired_range, magnitude(), 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 986 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, doScriptEvent:, 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, 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 7689 of file ShipEntity.m.
References addImpactMoment:fraction:, Entity::collisionRadius, count, desired_range, Entity::isInSpace, Entity::isShip, magnitude2(), and Entity::vectorTo:.
Referenced by becomeExplosion.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 790 of file ShipEntityAI.m.
| - (void) decrease_flight_pitch: | (double) | delta |
Definition at line 7467 of file ShipEntity.m.
References flightPitch, and max_flight_pitch.
Referenced by PlayerShipSetProperty(), PlayerShipSetProperty(), PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
| - (void) decrease_flight_roll: | (double) | delta |
Definition at line 7449 of file ShipEntity.m.
References flightRoll, and max_flight_roll.
Referenced by PlayerShipSetProperty(), PlayerShipSetProperty(), PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
| - (void) decrease_flight_speed: | (double) | delta |
Definition at line 7426 of file ShipEntity.m.
References flightSpeed, maxFlightSpeed, and MIN_HYPERSPEED_FACTOR.
Referenced by applyThrust:.
| - (void) decrease_flight_yaw: | (double) | delta |
Definition at line 7485 of file ShipEntity.m.
References flightYaw, and max_flight_yaw.
Referenced by PlayerShipSetProperty(), PlayerShipSetProperty(), PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, and PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:.
| - (NSUInteger) defenseTargetCount |
Definition at line 9663 of file ShipEntity.m.
References OOWeakSet::count, and defenseTargetCount.
Referenced by addDefenseTarget:, defenseTargetCount, isMissile, ShipGetProperty(), and ShipGetProperty().
| - (NSEnumerator *) defenseTargetEnumerator |
Definition at line 9673 of file ShipEntity.m.
References defenseTargetEnumerator, and OOWeakSet::objectEnumerator.
Referenced by behaviour_track_as_turret:, defenseTargetEnumerator, fireDirectLaserDefensiveShot, isMissile, ShipGetProperty(), and ShipGetProperty().
| - (void) deployEscorts |
Definition at line 12056 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, ShipDeployEscorts(), and ShipDeployEscorts().
|
implementation |
Reimplemented from Entity.
Reimplemented in StationEntity.
Definition at line 1090 of file ShipEntity.m.
References behaviour, Entity::descriptionComponents, descriptionComponents, Entity::isSubEntity, name, nil, and Entity::position.
Referenced by descriptionComponents, and StationEntity::descriptionComponents.
| - (void) deserializeShipSubEntitiesFrom: | (NSString*) | string |
Definition at line 771 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 7399 of file ShipEntity.m.
References desired_range, and desiredRange.
Referenced by cargo, and desiredRange.
| - (double) desiredSpeed |
Definition at line 7394 of file ShipEntity.m.
References desired_speed, and desiredSpeed.
Referenced by cargo, and desiredSpeed.
| - (HPVector) destination |
Definition at line 8843 of file ShipEntity.m.
References _destination, and destination.
Referenced by coordinates, destination, PlayerEntity::enterWormhole:, and Universe::update:.
| - (OOSystemID) destinationSystem |
Definition at line 6830 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 1418 of file ShipEntityAI.m.
Referenced by removeEquipmentItem:.
| - (NSString *) displayName |
References displayName, scanDescription, and scanDescriptionForScripting.
| - (HPVector) distance_six: | (GLfloat) | dist |
Definition at line 8858 of file ShipEntity.m.
References Entity::position, v_forward, HPVector::x, HPVector::y, and HPVector::z.
| - (HPVector) distance_twelve: | (GLfloat) | dist | |
| withOffset: | (GLfloat) | offset |
Definition at line 8867 of file ShipEntity.m.
References Entity::position, v_right, v_up, HPVector::x, HPVector::y, and HPVector::z.
| - (void) dockEscorts |
Definition at line 12113 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, ShipDockEscorts(), and ShipDockEscorts().
| - (NSDictionary *) dockingInstructions |
References broadcastThargoidDestroyed, and dockingInstructions.
Definition at line 1314 of file ShipEntity.m.
References dot_product(), HPvector_between, HPVectorToVector(), Octree::isHitByLine:v1:, make_vector(), Entity::position, v_forward, v_right, and v_up.
| - (GLfloat) doesHitLine: | (HPVector) | v0 | |
| v1: | (HPVector) | v1 | |
| hitEntity: | (ShipEntity**) | hitEntity |
Reimplemented in PlayerEntity.
Definition at line 1323 of file ShipEntity.m.
References absoluteIJKForSubentity, Entity::absolutePositionForSubentity, dot_product(), HPvector_between, HPVectorToVector(), Octree::isHitByLine:v1:, make_vector(), nil, Entity::position, resolveVectorInIJK(), shipSubEntityEnumerator, v_forward, v_right, and v_up.
Referenced by Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:.
| - (GLfloat) doesHitLine: | (HPVector) | v0 | |
| v1: | (HPVector) | v1 | |
| withPosition: | (HPVector) | o | |
| i: | (Vector) | i | |
| j: | (Vector) | j | |
| k: | (Vector) | k |
Definition at line 1359 of file ShipEntity.m.
References dot_product(), HPvector_between, HPVectorToVector(), Octree::isHitByLine:v1:, and make_vector().
|
implementation |
Definition at line 12950 of file ShipEntity.m.
References doNothing.
Referenced by doNothing.
|
implementation |
Definition at line 1878 of file ShipEntity.m.
References absoluteIJKForSubentity, Entity::absolutePositionForSubentity, canCollide, doOctreesCollide(), HPvector_between, HPVectorToVector(), isHitByOctree(), Entity::isShip, nil, octree, resolveVectorInIJK(), subEntities, and Triangle::v.
| - (void) doScriptEvent: | (OOJSPropID) | message |
Definition at line 12775 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, dealloc, 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: | (OOJSPropID) | scriptEvent | |
| andReactToAIMessage: | (NSString*) | aiMessage |
Definition at line 12869 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: | (OOJSPropID) | message | |
| inContext: | (JSContext*) | context | |
| withArguments: | (jsval*) | argv | |
| count: | (int) | argc |
Reimplemented in PlayerEntity.
Definition at line 12852 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: | (OOJSPropID) | message | |
| withArgument: | (id) | argument |
Definition at line 12782 of file ShipEntity.m.
References doScriptEvent:inContext:withArguments:count:, OOJSAcquireContext(), OOJSFreeValue, OOJSRelinquishContext(), and OOJSValueFromNativeObject().
Referenced by acceptAsEscort:, StationEntity::acceptDockingClearanceRequestFrom:, addEquipmentItem:withValidation:inContext:, addTarget:, PlayerEntity(LoadSave)::autosavePlayer, broadcastEnergyBlastImminent, Universe::carryPlayerOn:inWormhole:, checkForAegis, deployEscorts, PlayerEntity::docked, dockEscorts, StationEntity::dockingInstructionsForShip:, doScriptEvent:withArgument:andReactToAIMessage:, dumpItem:, PlayerEntity::engageAutopilotToStation:, PlayerEntity::enterDock:, enterDock:, PlayerEntity::enterWitchspace, ShipEntity(PureAI)::fightOrFleeMissile, fireMissileWithIdentifier:andTarget:, fireSubentityLaserShot:, PlayerEntity::launchEscapeCapsule, PlayerEntity::launchMine:, DockEntity::launchShip:, PlayerEntity::leaveWitchspace, PlayerEntity(OOLoadSavePrivate)::nativeSavePlayer:, StationEntity::noteDockedShip:, ShipEntity(Private)::noteFrustration:, noteLostTarget, noteTargetDestroyed:, PlayerEntity::performDockingRequest:, ShipEntity(OOAIPrivate)::performHyperSpaceExitReplace:toSystem:, PlayerEntity(OOPrivate)::performLaunchingUpdates:, PlayerEntity(OOPrivate)::performWitchspaceCountdownUpdates:, PlayerEntity(OOPrivate)::performWitchspaceExitUpdates:, PlayerReplaceShip(), PlayerReplaceShip(), PlayerShipSetProperty(), PlayerShipSetProperty(), PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, PlayerEntity(LoadSave)::quicksavePlayer, 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(), ShipAwardEquipment(), DockEntity::shipIsInDockingCorridor:, ShipRemove(), ShipRemove(), ShipSetEquipmentStatus(), ShipSetEquipmentStatus(), ShipEntity(AI)::suggestEscortTo:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeInternalDamage, transitionToAegisNone, PlayerEntity(OOPrivate)::tryBuyingItem:, update:, PlayerEntity(OOPrivate)::updateClocks:, PlayerEntity::witchJumpChecklist:, ShipEntity(AI)::wormholeEscorts, and ShipEntity(PureAI)::wormholeGroup.
| - (void) doScriptEvent: | (OOJSPropID) | message | |
| withArgument: | (id) | argument1 | |
| andArgument: | (id) | argument2 |
Definition at line 12793 of file ShipEntity.m.
References doScriptEvent:inContext:withArguments:count:, OOJSAcquireContext(), OOJSFreeValue, OOJSRelinquishContext(), and OOJSValueFromNativeObject().
Referenced by ShipEntity(AI)::broadcastDistressMessageWithDumping:, broadcastHitByLaserFrom:, deployEscorts, dumpCargoItem:, fireMissileWithIdentifier:andTarget:, ShipEntity(AI)::groupAttackTarget, launchEscapeCapsule, PlayerReplaceShip(), PlayerReplaceShip(), PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, receiveCommsMessage:from:, StationEntity::setAlertLevel:signallingScript:, and PlayerEntity(OOPrivate)::updateAlertCondition.
| - (void) doScriptEvent: | (OOJSPropID) | scriptEvent | |
| withArgument: | (id) | argument | |
| andReactToAIMessage: | (NSString*) | aiMessage |
Definition at line 12875 of file ShipEntity.m.
References doScriptEvent:withArgument:, and reactToAIMessage:context:.
Referenced by checkCloseCollisionWith:, collideWithShip:, landOnPlanet:, DockEntity::launchShip:, respondToAttackFrom:becauseOf:, and update:.
| - (void) doScriptEvent: | (OOJSPropID) | message | |
| withArguments: | (NSArray*) | arguments |
Definition at line 12807 of file ShipEntity.m.
References count, doScriptEvent:inContext:withArguments:count:, int(), OOJSAcquireContext(), OOJSAddGCValueRoot, OOJSFreeValue, 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: | (OOJSPropID) | message | |
| withArguments: | (jsval*) | argv | |
| count: | (int) | argc |
Definition at line 12845 of file ShipEntity.m.
References doScriptEvent:inContext:withArguments:count:, OOJSAcquireContext(), and OOJSRelinquishContext().
|
implementation |
Provided by category ShipEntity(Private).
Referenced by drawImmediate:translucent:.
|
implementation |
Reimplemented from OOEntityWithDrawable.
Reimplemented in DockEntity, and PlayerEntity.
Definition at line 5500 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, 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 5563 of file ShipEntity.m.
References Entity::boundingBox, Entity::cam_zero_distance, DEBUG_BOUNDING_BOXES, drawImmediate:translucent:, gDebugFlags, HPVectorToVector(), Entity::no_draw_distance, OODebugDrawBoundingBox, OOGLMultModelView(), OOGLPopModelView(), OOGLPushModelView(), OOGLTranslateModelView(), OOVerifyOpenGLState, Entity::position, and Entity::rotMatrix.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 778 of file ShipEntityAI.m.
| - (OOCommodityType) dumpCargo |
Reimplemented in PlayerEntity.
Definition at line 10865 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 10875 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 10916 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, HPvector_add(), 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, vector_add(), vector_multiply_scalar(), vector_normal(), vectorToHPVector(), velocity, Vector::x, Vector::y, and Vector::z.
Referenced by dumpCargoItem:, ShipEntity(ScriptMethods)::ejectShipOfRole:, ShipEntity(ScriptMethods)::ejectShipOfType:, PlayerEntity::launchMine:, and ShipEntity(Private)::launchPodWithCrew:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1449 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::broadcastDistressMessageWithDumping:.
| - (ShipEntity *) ejectShipOfRole: | (NSString*) | role |
Provided by category ShipEntity(ScriptMethods).
Definition at line 47 of file ShipEntityScriptMethods.m.
| - (ShipEntity *) ejectShipOfType: | (NSString*) | shipKey |
Provided by category ShipEntity(ScriptMethods).
Definition at line 34 of file ShipEntityScriptMethods.m.
Referenced by PlayerEntity(Scripting)::ejectItem:.
| - (float) energyRechargeRate |
Definition at line 6486 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 11715 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 564 of file ShipEntityAI.m.
| - (void) enterTargetWormhole |
Provided by category ShipEntity(AI).
Definition at line 569 of file ShipEntityAI.m.
Referenced by Universe::forceWitchspaceEntries.
| - (void) enterWitchspace |
Reimplemented in PlayerEntity.
Definition at line 11774 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 11739 of file ShipEntity.m.
References enterWormhole:replacing:.
Referenced by manageCollisions.
| - (void) enterWormhole: | (WormholeEntity*) | w_hole | |
| replacing: | (BOOL) | replacing |
Definition at line 11744 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 12745 of file ShipEntity.m.
References entityForShaderProperties, and Entity::rootShipEntity.
Referenced by entityForShaderProperties, and scriptInfo.
| - (GLfloat) entityPersonality |
Definition at line 8414 of file ShipEntity.m.
References entity_personality, ENTITY_PERSONALITY_MAX, and entityPersonality.
Referenced by entityPersonality, and maxFlightSpeed.
| - (GLint) entityPersonalityInt |
Definition at line 8419 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 3262 of file ShipEntity.m.
References equipmentCount.
Referenced by equipmentCount, and isFrangible.
| - (NSEnumerator *) equipmentEnumerator |
Definition at line 3257 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 2820 of file ShipEntity.m.
References _equipment, OOEquipmentType::equipmentTypeWithIdentifier:, and nil.
Referenced by abandonShip, PlayerEntity::enterGalacticWitchspace, and PlayerEntity::launchEscapeCapsule.
| - (NSArray *) equipmentListForScripting |
Definition at line 2993 of file ShipEntity.m.
References OOEquipmentType::allEquipmentTypes, count, countEquipmentItem:, equipmentListForScripting, OOEquipmentType::equipmentTypeWithIdentifier:, hasEquipmentItem:, OOEquipmentType::identifier, nil, and passengerCapacity.
Referenced by cargo, equipmentListForScripting, ShipGetProperty(), and ShipGetProperty().
| - (BOOL) equipmentValidToAdd: | (NSString*) | equipmentKey | |
| inContext: | (NSString*) | context |
Definition at line 3028 of file ShipEntity.m.
References equipmentValidToAdd:whileLoading:inContext:.
| - (BOOL) equipmentValidToAdd: | (NSString*) | equipmentKey | |
| whileLoading: | (BOOL) | loading | |
| inContext: | (NSString*) | context |
Definition at line 3033 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(), OOJSFreeValue, OOJSRelinquishContext(), OOJSUndefinedValue, OOJSValueFromNativeObject(), OOJSValueToBOOL(), passengerCapacity, passengerCount, OOShipRegistry::sharedRegistry, shipDataKey, and OOShipRegistry::shipyardInfoForKey:.
Referenced by equipmentValidToAdd:inContext:.
| - (NSArray *) escortArray |
Definition at line 6051 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 1591 of file ShipEntityAI.m.
| - (uint8_t) escortCount |
Definition at line 6058 of file ShipEntity.m.
References _escortGroup, OOShipGroup::count, escortCount, and nil.
Referenced by acceptAsEscort:, deployEscorts, escortCount, and messageTime.
| - (NSEnumerator *) escortEnumerator |
Definition at line 6044 of file ShipEntity.m.
References _escortGroup, escortEnumerator, OOShipGroup::mutationSafeEnumerator, and nil.
Referenced by deployEscorts, escortArray, escortEnumerator, and messageTime.
| - (OOShipGroup *) escortGroup |
Definition at line 6000 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(), ShipGetProperty(), ShipEntity(AI)::suggestEscortTo:, and update:.
| - (void) evasiveAction: | (double) | delta_t |
Definition at line 9012 of file ShipEntity.m.
References applySticks:, dot_product(), 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 10166 of file ShipEntity.m.
References exhaustEmissiveColor.
Referenced by coordinates, exhaustEmissiveColor, ShipGetProperty(), ShipGetProperty(), and OOExhaustPlumeEntity::update:.
| - (NSEnumerator *) exhaustEnumerator |
Definition at line 1229 of file ShipEntity.m.
References exhaustEnumerator, and subEntities.
Referenced by exhaustEnumerator, frustumRadius, resetExhaustPlumes, ShipGetProperty(), ShipGetProperty(), and subEntities.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1229 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2307 of file ShipEntityAI.m.
| - (NSUInteger) extraCargo |
Definition at line 3526 of file ShipEntity.m.
References extra_cargo, and extraCargo.
Referenced by extraCargo, and isFrangible.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1542 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1075 of file ShipEntityAI.m.
|
implementation |
Definition at line 12480 of file ShipEntity.m.
References findBoundingBoxRelativeToPosition:i:j:k:, and Entity::position.
| - (BoundingBox) findBoundingBoxRelativeToPosition: | (HPVector) | opv | |
| i: | (Vector) | i | |
| j: | (Vector) | j | |
| k: | (Vector) | k |
Definition at line 1291 of file ShipEntity.m.
References OOMesh::findBoundingBoxRelativeToPosition:ri:rj:rk:selfPosition:si:sj:sk:, and mesh.
Referenced by findBoundingBoxRelativeTo:i:j:k:, positionOffsetForShipInRotationToAlignment, and DockEntity::shipIsInDockingCorridor:.
| - (OOPlanetEntity *) findNearestPlanet |
Definition at line 6599 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 6642 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 6628 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 1336 of file ShipEntityAI.m.
| - (BoundingBox) findSubentityBoundingBox |
Definition at line 2002 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 10057 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 10266 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 10254 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 10286 of file ShipEntity.m.
References accuracy, flightSpeed, HPvector_add(), OOEquipmentType::identifier, isFrangible, kBasisZVector, OOLaserShotEntity::laserFromShip:direction:offset:, nil, Entity::orientation, Entity::position, quaternion_normalize(), 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(), vector_multiply_scalar(), vector_normal_or_zbasis(), vectorToHPVector(), weaponRange, weaponTypeForFacing:strict:, Quaternion::x, Quaternion::y, and Quaternion::z.
Referenced by fireDirectLaserDefensiveShot, and fireDirectLaserShot:.
| - (BOOL) fireECM |
Reimplemented in PlayerEntity.
Definition at line 10733 of file ShipEntity.m.
References fireECM, and hasECM.
Referenced by coordinates, ShipEntity(PureAI)::fightOrFleeMissile, fireECM, ShipFireECM(), and ShipFireECM().
| - (BOOL) fireLaserShotInDirection: | (OOWeaponFacing) | direction | |
| weaponIdentifier: | (NSString*) | weaponIdentifier |
Definition at line 10369 of file ShipEntity.m.
References _multiplyWeapons, adjustMissedShots:, dot_product(), flightSpeed, HPvector_add(), 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(), vector_multiply_scalar(), vector_normal(), vectorToHPVector(), weapon_damage, and weaponRange.
Referenced by PlayerEntity::fireMainWeapon, and fireWeapon:direction:range:.
| - (BOOL) fireMainWeapon: | (double) | range |
Definition at line 10018 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 10567 of file ShipEntity.m.
References fireMissile, fireMissileWithIdentifier:andTarget:, and primaryTarget.
Referenced by considerFiringMissile:, coordinates, ShipEntity(PureAI)::fightOrFleeHostiles, fireMissile, ShipFireMissile(), and ShipFireMissile().
| - (ShipEntity *) fireMissileWithIdentifier: | (NSString*) | identifier | |
| andTarget: | (Entity*) | target |
Definition at line 10572 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, HPmagnitude2(), HPvector_add(), HPvector_subtract(), 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, v_forward, vector_add(), vector_multiply_scalar(), vector_normal(), vectorToHPVector(), Vector::x, Vector::y, and Vector::z.
Referenced by PlayerEntity::fireMissile, fireMissile, ShipFireMissile(), and ShipFireMissile().
| - (BOOL) firePortWeapon: | (double) | range |
Definition at line 10066 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 10075 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 10171 of file ShipEntity.m.
References adjustMissedShots:, doScriptEvent:withArgument:, dot_product(), Entity::energy, forward_weapon_temp, forward_weapon_type, HPvector_add(), HPvector_subtract(), HPVectorToVector(), 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(), vector_multiply_scalar(), vector_normal(), vectorToHPVector(), 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 10094 of file ShipEntity.m.
References cloakPassive, Entity::collision_radius, Entity::drawRotationMatrix, HPvector_add(), 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(), vector_multiply_scalar(), vectorToHPVector(), weapon_recharge_rate, and weaponRange.
Referenced by behaviour_track_as_turret:.
|
implementation |
Definition at line 9921 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 1224 of file ShipEntity.m.
References flasherEnumerator, and subEntities.
Referenced by flasherEnumerator, ShipGetProperty(), ShipGetProperty(), subEntities, switchLightsOff, and switchLightsOn.
| - (GLfloat) flightPitch |
References flightPitch.
| - (GLfloat) flightRoll |
References flightRoll.
| - (GLfloat) flightSpeed |
| - (void) forceAegisCheck |
Definition at line 6798 of file ShipEntity.m.
References _nextAegisCheck, and forceAegisCheck.
Referenced by EntitySetProperty(), EntitySetProperty(), forceAegisCheck, and reportAIMessages.
| - (Vector) forwardVector |
Definition at line 1164 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 forwardWeaponOffset.
| - (Entity *) foundTarget |
Definition at line 8548 of file ShipEntity.m.
References _foundTarget, DESTROY, foundTarget, nil, and OOWeakReference::weakRefUnderlyingObject.
Referenced by ShipEntity(OOAIPrivate)::acceptDistressMessageFrom:, ShipEntity(PureAI)::addFoundTargetAsDefenseTarget, PlayerEntity::doBookkeeping:, ShipEntity(PureAI)::fightOrFleeHostiles, foundTarget, maxFlightSpeed, ShipEntity(PureAI)::setTargetToFoundTarget, ShipGetProperty(), ShipGetProperty(), PlayerEntity(Scripting)::targetNearestHostile, and PlayerEntity(Scripting)::targetNearestIncomingMissile.
| - (double) frustration |
References frustration.
| - (GLfloat) frustumRadius |
Reimplemented from Entity.
Definition at line 822 of file ShipEntity.m.
References _profileRadius, exhaustEnumerator, OOEntityWithDrawable::findCollisionRadius, OOExhaustPlumeEntity::findCollisionRadius, frustumRadius, and nil.
Referenced by OOEntityWithDrawable::drawImmediate:translucent:, frustumRadius, and octree.
| - (OOFuelQuantity) fuel |
| - (OOFuelQuantity) fuelCapacity |
Definition at line 7005 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 7011 of file ShipEntity.m.
References calcFuelChargeRate(), 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 2971 of file ShipEntity.m.
References OOEquipmentType::addEquipmentWithInfo:, and OOEquipmentType::equipmentTypeWithIdentifier:.
Referenced by verifiedMissileTypeFromRole:.
| - (AI *) getAI |
Definition at line 6917 of file ShipEntity.m.
Referenced by Universe::addEntity:, Universe::allShipsDoScriptEvent:andReactToAIMessage:, broadcastAIMessage:, deployEscorts, dockEscorts, DockEntity::dockingInstructionsForShip:, dumpItem:, getAI, hasNewAI, 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(), ShipExitAI(), ShipGetProperty(), ShipGetProperty(), ShipSetProperty(), ShipSetProperty(), WormholeEntity::suckInShip:, ShipEntity(AI)::switchAITo:, StationEntity::update:, and Universe::update:.
|
implementation |
Definition at line 12769 of file ShipEntity.m.
References demoStartTime, and getDemoStartTime.
Referenced by getDemoStartTime.
| - (void) getDestroyedBy: | (Entity*) | whom | |
| damageType: | (OOShipDamageType) | type |
Reimplemented in PlayerEntity.
Definition at line 7777 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 110 of file EntityOOJavaScriptExtensions.m.
| - (void) getTractoredBy: | (ShipEntity*) | other |
Definition at line 11220 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 1797 of file ShipEntity.m.
References _scaleFactor, kZeroVector, nil, and vector_multiply_scalar().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1037 of file ShipEntityAI.m.
| - (OOShipGroup *) group |
Definition at line 5979 of file ShipEntity.m.
Referenced by abandonShip, acceptAsEscort:, ShipEntity(PureAI)::checkForMotherStation, ShipEntity(PureAI)::checkGroupOddsVersusTarget, deployEscorts, dockEscorts, fireMissileWithIdentifier:andTarget:, group, 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(), ShipGetProperty(), ShipGroupAddShip(), ShipGroupAddShip(), WormholeEntity::suckInShip:, SystemAddShipsOrGroup(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddShipsOrGroupToRoute(), takeEnergyDamage:from:becauseOf:weaponIdentifier:, StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, and ShipEntity(PureAI)::thargonCheckMother.
| - (void) groupAttackTarget |
Provided by category ShipEntity(AI).
Definition at line 315 of file ShipEntityAI.m.
| - (BOOL) hasAllEquipment: | (id) | equipmentKeys |
Definition at line 2859 of file ShipEntity.m.
References hasAllEquipment:includeWeapons:whileLoading:.
| - (BOOL) hasAllEquipment: | (id) | equipmentKeys | |
| includeWeapons: | (BOOL) | includeWeapons | |
| whileLoading: | (BOOL) | loading |
Definition at line 2837 of file ShipEntity.m.
References _equipment, and nil.
Referenced by hasAllEquipment:.
| - (BOOL) hasAutoAI |
Definition at line 6922 of file ShipEntity.m.
References hasAutoAI, and shipInfoDictionary.
Referenced by hasAutoAI.
| - (BOOL) hasAutoCloak |
Definition at line 5773 of file ShipEntity.m.
References cloakAutomatic, and hasAutoCloak.
Referenced by hasAutoCloak, and reactionTime.
| - (BOOL) hasAutoWeapons |
Definition at line 6932 of file ShipEntity.m.
References hasAutoWeapons, and shipInfoDictionary.
Referenced by hasAutoWeapons, selectMissile, and starboardWeaponOffset.
| - (BOOL) hasCargoScoop |
Definition at line 3543 of file ShipEntity.m.
References hasCargoScoop, and hasEquipmentItemProviding:.
Referenced by canScoop:, hasCargoScoop, and isFrangible.
| - (BOOL) hasCascadeMine |
Definition at line 3605 of file ShipEntity.m.
References hasCascadeMine, and hasEquipmentItem:includeWeapons:whileLoading:.
Referenced by behaviour_flee_target:, hasCascadeMine, isFrangible, and launchCascadeMine.
| - (BOOL) hasCloakingDevice |
Definition at line 3553 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 3618 of file ShipEntity.m.
References hasDockingComputer, and hasEquipmentItemProviding:.
Referenced by hasDockingComputer, isFrangible, and removeEquipmentItem:.
| - (BOOL) hasECM |
Definition at line 3548 of file ShipEntity.m.
References hasECM, and hasEquipmentItemProviding:.
Referenced by fireECM, hasECM, and isFrangible.
| - (BOOL) hasEquipmentItem: | (id) | equipmentKeys |
Definition at line 2796 of file ShipEntity.m.
References hasEquipmentItem:includeWeapons:whileLoading:.
Referenced by PlayerEntity::buySelectedItem, equipmentListForScripting, hasCloakingDevice, hasExpandedCargoBay, hasMilitaryShieldEnhancer, hasShieldBooster, ShipAwardEquipment(), ShipAwardEquipment(), ShipSetEquipmentStatus(), ShipSetEquipmentStatus(), and PlayerEntity(Scripting)::testForEquipment:.
| - (BOOL) hasEquipmentItem: | (id) | equipmentKeys | |
| includeWeapons: | (BOOL) | includeWeapons | |
| whileLoading: | (BOOL) | loading |
Definition at line 2778 of file ShipEntity.m.
References hasOneEquipmentItem:includeWeapons:whileLoading:, and nil.
Referenced by hasCascadeMine, and hasEquipmentItem:.
| - (BOOL) hasEquipmentItemProviding: | (NSString*) | equipmentType |
Definition at line 2803 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 3613 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasEscapePod.
Referenced by abandonShip, hasEscapePod, isFrangible, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
| - (BOOL) hasEscorts |
Definition at line 6037 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 3577 of file ShipEntity.m.
References hasEquipmentItem:, and hasExpandedCargoBay.
Referenced by hasExpandedCargoBay, isFrangible, and PlayerEntity::setCommanderDataFromDictionary:.
| - (BOOL) hasFuelInjection |
Definition at line 3600 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 3537 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasFuelScoop.
Referenced by PlayerEntity::doBookkeeping:, hasFuelScoop, isFrangible, and update:.
| - (BOOL) hasGalacticHyperdrive |
Definition at line 3623 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasGalacticHyperdrive.
Referenced by hasGalacticHyperdrive, and isFrangible.
| - (BOOL) hasHeatShield |
Definition at line 3595 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasHeatShield.
Referenced by hasHeatShield, isFrangible, and setUpShipFromDictionary:.
| - (BOOL) hasHostileTarget |
Reimplemented in PlayerEntity, and StationEntity.
Definition at line 6439 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 2864 of file ShipEntity.m.
References hasHyperspaceMotor, and hyperspaceMotorSpinTime.
Referenced by hasHyperspaceMotor, isFrangible, and PlayerEntity::setGuiToStatusScreen.
| - (BOOL) hasMilitaryJammer |
Definition at line 3568 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasMilitaryJammer.
Referenced by PlayerEntity::doBookkeeping:, hasMilitaryJammer, isFrangible, isJammingScanning, and update:.
| - (BOOL) hasMilitaryScannerFilter |
Definition at line 3559 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasMilitaryScannerFilter.
Referenced by fireMissileWithIdentifier:andTarget:, hasMilitaryScannerFilter, identFromShip:, isFrangible, PlayerEntity::isValidTarget:, and scannerDisplayColorForShip:isHostile:flash:scannerDisplayColor1:scannerDisplayColor2:scannerDisplayColorH1:scannerDisplayColorH2:.
| - (BOOL) hasMilitaryShieldEnhancer |
Definition at line 3589 of file ShipEntity.m.
References hasEquipmentItem:, and hasMilitaryShieldEnhancer.
Referenced by hasMilitaryShieldEnhancer, isFrangible, shieldBoostFactor, and shieldRechargeRate.
| - (BOOL) hasNewAI |
Definition at line 6927 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 2722 of file ShipEntity.m.
References _equipment, missile_list, missiles, and nil.
Referenced by ShipRemoveEquipment(), and ShipRemoveEquipment().
| - (BOOL) hasOneEquipmentItem: | (NSString*) | itemKey | |
| includeWeapons: | (BOOL) | includeMissiles | |
| whileLoading: | (BOOL) | loading |
Definition at line 2699 of file ShipEntity.m.
References _equipment, isWeaponNone(), and OOWeaponTypeFromEquipmentIdentifierStrict().
Referenced by hasEquipmentItem:includeWeapons:whileLoading:.
| - (BOOL) hasPrimaryRole: | (NSString*) | role |
Definition at line 6336 of file ShipEntity.m.
References primaryRole.
Referenced by HasPrimaryRolePredicate().
| - (BOOL) hasPrimaryWeapon: | (OOWeaponType) | weaponType |
Reimplemented in PlayerEntity.
Definition at line 2746 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 9760 of file ShipEntity.m.
References nil, primaryTarget, and proximityAlert.
| - (BOOL) hasRole: | (NSString*) | role |
Definition at line 6271 of file ShipEntity.m.
References OORoleSet::hasRole:, and shipDataKeyAutoRole.
Referenced by HasRolePredicate().
| - (BOOL) hasScoop |
Definition at line 3532 of file ShipEntity.m.
References hasEquipmentItemProviding:, and hasScoop.
Referenced by PlayerEntity::dialFuelScoopStatus, hasScoop, ProxyPlayerEntity::initWithKey:definition:, and isFrangible.
| - (BOOL) hasShieldBooster |
Definition at line 3583 of file ShipEntity.m.
References hasEquipmentItem:, and hasShieldBooster.
Referenced by hasShieldBooster, isFrangible, and shieldBoostFactor.
| - (BOOL) hasSubEntity: | (Entity<OOSubEntity>*) | sub |
Definition at line 1209 of file ShipEntity.m.
| - (GLfloat) heatInsulation |
Definition at line 7593 of file ShipEntity.m.
References _heatInsulation, and heatInsulation.
Referenced by PlayerEntity::doBookkeeping:, 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 6825 of file ShipEntity.m.
References home_system, and homeSystem.
Referenced by homeSystem, reportAIMessages, and setSingleCrewWithRole:.
| - (GLfloat) hullHeatLevel |
Definition at line 8408 of file ShipEntity.m.
References hullHeatLevel, OOClamp_0_1_f(), SHIP_MAX_CABIN_TEMP, and ship_temperature.
Referenced by hullHeatLevel, maxFlightSpeed, PlayerEntity(OOPrivate)::updateAlertConditionForNearbyEntities, and OOTrumble::updateTrumble:.
| - (float) hyperspaceSpinTime |
Definition at line 2869 of file ShipEntity.m.
References hyperspaceMotorSpinTime, and hyperspaceSpinTime.
Referenced by hyperspaceSpinTime, and isFrangible.
| - (NSString *) identFromShip: | (ShipEntity*) | otherShip |
Definition at line 6263 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 7458 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 7440 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 7414 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 7476 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 174 of file ShipEntity.m.
References init, and initWithKey:definition:.
Referenced by init.
|
implementation |
Provided by category ShipEntity(Hax).
Definition at line 184 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 190 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:.
| - (void) interpretAIMessage: | (NSString*) | message |
Reimplemented in PlayerEntity.
Definition at line 12456 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 1448 of file ShipEntity.m.
References beaconCode, isBeacon, and nil.
Referenced by isBeacon.
|
implementation |
Definition at line 6407 of file ShipEntity.m.
References behaviour.
Referenced by hasHostileTarget.
| - (BOOL) isBoulder |
Definition at line 1512 of file ShipEntity.m.
References OORoleSet::hasRole:, and isBoulder.
Referenced by becomeExplosion, isBoulder, isMinable, and octree.
| - (BOOL) isCloaked |
Definition at line 5755 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 9711 of file ShipEntity.m.
References OOWeakSet::containsObject:.
| - (BOOL) isDemoShip |
References isDemoShip.
| - (BOOL) isEscort |
Definition at line 6377 of file ShipEntity.m.
References isEscort, and primaryRole.
Referenced by canAcceptEscort:, isEscort, isMissile, setUpEscorts, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
| - (BOOL) isExplicitlyUnpiloted |
Definition at line 6397 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, isFrangible, maxAftShieldLevel, maxForwardShieldLevel, maxHyperspaceDistance, maxThrust, missileCapacity, missileCount, parcelCount, passengerCapacity, passengerCount, removeAllEquipment, removeMissiles, selectMissile, shieldBoostFactor, shieldRechargeRate, suppressFlightNotifications, and weaponFacings.
| - (BOOL) isFriendlyTo: | (ShipEntity*) | otherShip |
Definition at line 8757 of file ShipEntity.m.
References group, isPolice, isThargoid, nil, and scanClass.
| - (BOOL) isHostileTo: | (Entity*) | entity |
Definition at line 6455 of file ShipEntity.m.
References hasHostileTarget, and primaryTarget.
Referenced by Universe::IsFriendlyStationPredicate.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 5783 of file ShipEntity.m.
References hasMilitaryJammer, isJammingScanning, and military_jammer_active.
Referenced by fireMissileWithIdentifier:andTarget:, identFromShip:, isJammingScanning, PlayerEntity::isValidTarget:, scannerDisplayColorForShip:isHostile:flash:scannerDisplayColor1:scannerDisplayColor2:scannerDisplayColorH1:scannerDisplayColorH2:, PlayerEntity::setNextCompassMode, and PlayerEntity::setPrevCompassMode.
| - (BOOL) isMinable |
| - (BOOL) isMine |
Definition at line 6367 of file ShipEntity.m.
References isMine, and primaryRole.
Referenced by PlayerEntity::fireMissile, isMine, isMissile, and isWeapon.
| - (BOOL) isMining |
Reimplemented in PlayerEntity.
Definition at line 12451 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, isMissile, isPirateVictim, isShuttle, isTurret, isUnpiloted, isWeapon, realAlertCondition, removeAllDefenseTargets, and validateDefenseTargets.
| - (BOOL) isMissileFlagSet |
Definition at line 10702 of file ShipEntity.m.
References isMissile, and isMissileFlagSet.
Referenced by coordinates, fireMissileWithIdentifier:andTarget:, and isMissileFlagSet.
| - (BOOL) isPirate |
Definition at line 6357 of file ShipEntity.m.
References isPirate, and primaryRole.
Referenced by isPirate, primaryRole, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
| - (BOOL) isPirateVictim |
Definition at line 6392 of file ShipEntity.m.
References isPirateVictim, and primaryRole.
Referenced by PlayerEntity::addRoleForAggression:, isMissile, and isPirateVictim.
| - (BOOL) isPolice |
Definition at line 6341 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 12984 of file ShipEntity.m.
| - (BOOL) isShuttle |
Definition at line 6382 of file ShipEntity.m.
References isShuttle, and primaryRole.
Referenced by isMissile, isShuttle, and landOnPlanet:.
| - (BOOL) isTemplateCargoPod |
Definition at line 932 of file ShipEntity.m.
References isTemplateCargoPod, and primaryRole.
Referenced by bounty, and isTemplateCargoPod.
| - (BOOL) isThargoid |
Definition at line 6347 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 6352 of file ShipEntity.m.
References isTrader, and primaryRole.
Referenced by isTrader, primaryRole, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
| - (BOOL) isTurret |
Definition at line 6387 of file ShipEntity.m.
References behaviour, and isTurret.
Referenced by isMissile, isTurret, and turretCount.
| - (BOOL) isUnpiloted |
Reimplemented in StationEntity.
Definition at line 6402 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 8647 of file ShipEntity.m.
References Entity::isShip, Entity::isWormhole, nil, scanClass, and Entity::status.
Referenced by noteLostTarget.
|
implementation |
Reimplemented from Entity.
Definition at line 1443 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 105 of file EntityOOJavaScriptExtensions.m.
| - (BOOL) isWeapon |
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1177 of file ShipEntityAI.m.
Referenced by coordinates, and landOnPlanet:.
| - (void) landOnPlanet: | (OOPlanetEntity*) | planet |
Definition at line 12228 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 10161 of file ShipEntity.m.
References laserColor.
Referenced by coordinates, and laserColor.
| - (GLfloat) laserHeatLevel |
Reimplemented in PlayerEntity.
Definition at line 8367 of file ShipEntity.m.
References laserHeatLevel, NPC_MAX_WEAPON_TEMP, OOClamp_0_1_f(), and weapon_temp.
Referenced by laserHeatLevel, and maxFlightSpeed.
| - (GLfloat) laserHeatLevelAft |
Reimplemented in PlayerEntity.
Definition at line 8373 of file ShipEntity.m.
References aft_weapon_temp, laserHeatLevelAft, NPC_MAX_WEAPON_TEMP, and OOClamp_0_1_f().
Referenced by laserHeatLevelAft, and maxFlightSpeed.
| - (GLfloat) laserHeatLevelForward |
Reimplemented in PlayerEntity.
Definition at line 8379 of file ShipEntity.m.
References forward_weapon_temp, forward_weapon_type, isWeaponNone(), laserHeatLevelForward, nil, NPC_MAX_WEAPON_TEMP, OOClamp_0_1_f(), and shipSubEntityEnumerator.
Referenced by laserHeatLevelForward, and maxFlightSpeed.
| - (GLfloat) laserHeatLevelPort |
Reimplemented in PlayerEntity.
Definition at line 8396 of file ShipEntity.m.
References laserHeatLevelPort, NPC_MAX_WEAPON_TEMP, OOClamp_0_1_f(), and port_weapon_temp.
Referenced by laserHeatLevelPort, and maxFlightSpeed.
| - (GLfloat) laserHeatLevelStarboard |
Reimplemented in PlayerEntity.
Definition at line 8402 of file ShipEntity.m.
References laserHeatLevelStarboard, NPC_MAX_WEAPON_TEMP, OOClamp_0_1_f(), and starboard_weapon_temp.
Referenced by laserHeatLevelStarboard, and maxFlightSpeed.
| - (NSArray *) laserPortOffset: | (OOWeaponFacing) | direction |
Definition at line 10345 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 6808 of file ShipEntity.m.
References ShipEntity(Private)::lastAegisLock, and nil.
Referenced by checkForAegis, ShipEntity(Private)::drawDebugStuff, ShipEntity(Private)::lastAegisLock, and transitionToAegisNone.
| - (Entity *) lastEscortTarget |
Definition at line 8580 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 10764 of file ShipEntity.m.
References addTarget:, cloaking_device_active, cloakPassive, Entity::collision_radius, deactivateCloakingDevice, flightSpeed, frustration, hasCascadeMine, HPvector_subtract(), 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, v_up, vector_add(), vector_multiply_scalar(), and vectorToHPVector().
Referenced by behaviour_flee_target:, coordinates, and launchCascadeMine.
| - (ShipEntity *) launchEscapeCapsule |
Reimplemented in PlayerEntity.
Definition at line 10817 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 2565 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 2047 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 11730 of file ShipEntity.m.
References StationEntity::launchShip:, and nil.
| - (void) leaveWitchspace |
Reimplemented in PlayerEntity.
Definition at line 11787 of file ShipEntity.m.
References leaveWitchspace, quaternion_set_random(), randf(), SCANNER_MAX_RANGE, Entity::setPosition:, vector_forward_from_quaternion(), witchspaceLeavingEffects, HPVector::x, HPVector::y, and HPVector::z.
Referenced by coordinates, leaveWitchspace, and Universe::witchspaceShipWithPrimaryRole:.
| - (int) legalStatus |
Definition at line 7155 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 11898 of file ShipEntity.m.
References _lightsActive, and lightsActive.
Referenced by coordinates, and lightsActive.
| - (GLfloat) lookingAtSunWithThresholdAngleCos: | (GLfloat) | thresholdAngleCos |
Reimplemented in PlayerEntity.
Definition at line 9822 of file ShipEntity.m.
References currentWeaponFacing, dot_product(), EXPECT_NOT, HPvector_subtract(), HPVectorToVector(), Entity::position, Entity::relativePosition, v_forward, v_right, vector_normal_or_zbasis(), WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_PORT, and WEAPON_FACING_STARBOARD.
Referenced by currentAimTolerance.
| - (void) manageCollisions |
Definition at line 11000 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 11836 of file ShipEntity.m.
References markAsOffender:withReason:.
| - (void) markAsOffender: | (int) | offence_value | |
| withReason: | (OOLegalStatusReason) | reason |
Reimplemented in PlayerEntity.
Definition at line 11841 of file ShipEntity.m.
References bounty, isCloaked, isPolice, Entity::isSubEntity, markAsOffender:withReason:, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromDouble(), 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 12438 of file ShipEntity.m.
References being_fined, and markedForFines.
Referenced by markedForFines, and sunGlareFilter.
| - (BOOL) markForFines |
Definition at line 12443 of file ShipEntity.m.
References being_fined, legalStatus, and markForFines.
Referenced by PlayerEntity(OOControlsPrivate)::handleAutopilotOn:, markForFines, ShipMarkTargetForFines(), ShipMarkTargetForFines(), and sunGlareFilter.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1814 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1825 of file ShipEntityAI.m.
| - (float) maxAftShieldLevel |
Reimplemented in PlayerEntity.
Definition at line 3646 of file ShipEntity.m.
References BASELINE_SHIELD_LEVEL, maxAftShieldLevel, and shieldBoostFactor.
Referenced by isFrangible, and maxAftShieldLevel.
| - (OOCargoQuantity) maxAvailableCargoSpace |
Definition at line 7207 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(), ShipSetProperty(), PlayerEntity(OOPrivate)::showMarketCashAndLoadLine, PlayerEntity::takeInternalDamage, and PlayerEntity::tryBuyingCommodity:all:.
| - (uint8_t) maxEscortCount |
Definition at line 6075 of file ShipEntity.m.
References _maxEscortCount, and maxEscortCount.
Referenced by maxEscortCount, and messageTime.
| - (GLfloat) maxFlightPitch |
Definition at line 7514 of file ShipEntity.m.
References max_flight_pitch, and maxFlightPitch.
Referenced by flightSpeed, maxFlightPitch, and OOShipLibraryTurnRate().
| - (GLfloat) maxFlightRoll |
Definition at line 7524 of file ShipEntity.m.
References max_flight_roll, and maxFlightRoll.
Referenced by maxFlightRoll, maxFlightSpeed, and OOShipLibraryTurnRate().
| - (GLfloat) maxFlightSpeed |
References absoluteIJKForSubentity, becomeEnergyBlast, becomeExplosion, broadcastEnergyBlastImminent, canStillTrackPrimaryTarget, checkScanner, checkScannerIgnoringUnpowered, damage, dealEnergyDamageWithinDesiredRange, entityPersonality, entityPersonalityInt, findSubentityBoundingBox, foundTarget, heatInsulation, hullHeatLevel, int(), laserHeatLevel, laserHeatLevelAft, laserHeatLevelForward, laserHeatLevelPort, laserHeatLevelStarboard, lastEscortTarget, maxFlightRoll, maxFlightSpeed, 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 7529 of file ShipEntity.m.
References max_flight_yaw, and maxFlightYaw.
Referenced by maxFlightSpeed, and maxFlightYaw.
| - (float) maxForwardShieldLevel |
Reimplemented in PlayerEntity.
Definition at line 3641 of file ShipEntity.m.
References BASELINE_SHIELD_LEVEL, maxForwardShieldLevel, and shieldBoostFactor.
Referenced by isFrangible, and maxForwardShieldLevel.
| - (double) maxHyperspaceDistance |
Definition at line 3656 of file ShipEntity.m.
References MAX_JUMP_RANGE, and maxHyperspaceDistance.
Referenced by isFrangible, maxHyperspaceDistance, and PlayerEntity::witchJumpChecklist:.
| - (NSUInteger) maxShipSubEntities |
Definition at line 734 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 3681 of file ShipEntity.m.
References max_thrust, and maxThrust.
Referenced by behaviour_tractored:, dumpItem:, isFrangible, maxThrust, releaseCargoPodsDebris, ShipSetProperty(), and ShipSetProperty().
| - (OOMesh *) mesh |
Definition at line 1145 of file ShipEntity.m.
References OOEntityWithDrawable::drawable, and mesh.
Referenced by accuracy, PlayerEntity::doBookkeeping:, findBoundingBoxRelativeToPosition:i:j:k:, findSubentityBoundingBox, PlayerEntity::launchEscapeCapsule, mesh, setEntityPersonalityInt:, setMesh:, PlayerEntity::setUpTrumbles, ShipSetMaterialsInternal(), and ShipSetMaterialsInternal().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1652 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1665 of file ShipEntityAI.m.
| - (double) messageTime |
References escortArray, escortCount, escortEnumerator, escortGroup, group, hasEscorts, maxEscortCount, messageTime, pendingEscortCount, stationGroup, and turretCount.
| - (int) missedShots |
Definition at line 10489 of file ShipEntity.m.
References _missed_shots, int(), Entity::isSubEntity, missedShots, and Entity::owner.
Referenced by coordinates, currentAimTolerance, missedShots, and trackPrimaryTarget:retreat:.
| - (NSUInteger) missileCapacity |
Definition at line 3521 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 3516 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 10543 of file ShipEntity.m.
References _scaleFactor, Entity::boundingBox, EXPECT_NOT, missileLaunchPosition, OOLog, vector_multiply_scalar(), Vector::x, Vector::y, and Vector::z.
Referenced by coordinates, PlayerEntity::fireMissile, fireMissileWithIdentifier:andTarget:, and missileLaunchPosition.
| - (OOTimeDelta) missileLoadTime |
Definition at line 10712 of file ShipEntity.m.
References missile_load_time, and missileLoadTime.
Referenced by coordinates, and missileLoadTime.
| - (NSArray *) missilesList |
Reimplemented in PlayerEntity.
Definition at line 2950 of file ShipEntity.m.
References missile_list, missilesList, and nil.
Referenced by cargo, PlayerEntity::missilesList, missilesList, ShipGetProperty(), and ShipGetProperty().
| - (double) missileTrackPrimaryTarget: | (double) | delta_t |
Definition at line 9365 of file ShipEntity.m.
References accuracy, applySticks:, dot_product(), flightPitch, flightRoll, forwardVector, Entity::isShip, kZeroVector, magnitude(), 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, vector_equal(), vector_normal(), Entity::vectorTo:, Entity::velocity, Vector::x, Vector::y, and Vector::z.
Referenced by trackPrimaryTarget:retreat:, and trackSideTarget:leftside:.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1481 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 2641 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 7752 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 8783 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 8808 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:retreat:, and trackSideTarget:leftside:.
| - (void) noteTakingDamage: | (double) | amount | |
| from: | (Entity*) | entity | |
| type: | (OOShipDamageType) | type |
Reimplemented in DockEntity.
Definition at line 7723 of file ShipEntity.m.
References accuracy, behaviour, COMBAT_AI_IS_SMART, desired_speed, frustration, hasHostileTarget, Entity::isShip, maxFlightSpeed, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromDouble(), 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 8815 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 10723 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 8543 of file ShipEntity.m.
References int(), n_scanned_ships, and numberOfScannedShips.
Referenced by maxFlightSpeed, and numberOfScannedShips.
References absoluteTractorPosition, countsAsKill, frustumRadius, isBoulder, isMinable, octree, setUpEscorts, setUpSubEntities, shipDataKey, shipDataKeyAutoRole, shipInfoDictionary, updateEscortFormation, and volume.
| - (BOOL) onTarget: | (OOWeaponFacing) | direction | |
| withWeapon: | (OOWeaponType) | weapon |
Definition at line 9860 of file ShipEntity.m.
References calculateTargetPosition, Entity::collision_radius, currentAimTolerance, dot_product(), HPvector_subtract(), HPVectorToVector(), Entity::isSunlit, magnitude2(), nil, Entity::position, primaryTarget, randf(), Entity::status, v_forward, v_right, vector_normal_or_zbasis(), 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 103 of file EntityOOJavaScriptExtensions.m.
|
implementation |
Reimplemented from Entity.
Reimplemented in DockEntity, PlayerEntity, and StationEntity.
Provided by category ShipEntity(OOJavaScriptExtensions).
Definition at line 116 of file EntityOOJavaScriptExtensions.m.
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity.
Definition at line 5865 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 12733 of file ShipEntity.m.
References nil, and scriptInfo.
Referenced by setUpOneStandardSubentity:asTurret:.
| - (NSUInteger) parcelCount |
Reimplemented in PlayerEntity.
Definition at line 3501 of file ShipEntity.m.
References parcelCount.
Referenced by isFrangible, and parcelCount.
| - (NSArray *) parcelListForScripting |
Reimplemented in PlayerEntity.
Definition at line 2961 of file ShipEntity.m.
References parcelListForScripting.
Referenced by cargo, parcelListForScripting, ShipGetProperty(), and ShipGetProperty().
| - (NSUInteger) passengerCapacity |
Reimplemented in PlayerEntity.
Definition at line 3511 of file ShipEntity.m.
References passengerCapacity.
Referenced by equipmentListForScripting, equipmentValidToAdd:whileLoading:inContext:, isFrangible, passengerCapacity, ShipRemoveEquipment(), and ShipRemoveEquipment().
| - (NSUInteger) passengerCount |
Reimplemented in PlayerEntity.
Definition at line 3506 of file ShipEntity.m.
References passengerCount.
Referenced by equipmentValidToAdd:whileLoading:inContext:, isFrangible, and passengerCount.
| - (NSArray *) passengerListForScripting |
Reimplemented in PlayerEntity.
Definition at line 2956 of file ShipEntity.m.
References passengerListForScripting.
Referenced by cargo, passengerListForScripting, ShipGetProperty(), and ShipGetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1779 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 757 of file ShipEntityAI.m.
| - (uint8_t) pendingEscortCount |
Definition at line 6065 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 350 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(AI).
Definition at line 458 of file ShipEntityAI.m.
| - (void) performCollect |
Provided by category ShipEntity(AI).
Definition at line 359 of file ShipEntityAI.m.
| - (void) performEscort |
Provided by category ShipEntity(AI).
Definition at line 365 of file ShipEntityAI.m.
| - (void) performFaceDestination |
Provided by category ShipEntity(AI).
Definition at line 373 of file ShipEntityAI.m.
| - (void) performFlee |
Provided by category ShipEntity(AI).
Definition at line 379 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::broadcastDistressMessageWithDumping:, and ShipEntity(PureAI)::fightOrFleeMissile.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2382 of file ShipEntityAI.m.
| - (void) performFlyToRangeFromDestination |
Provided by category ShipEntity(AI).
Definition at line 394 of file ShipEntityAI.m.
| - (void) performHold |
Provided by category ShipEntity(AI).
Definition at line 400 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1408 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2402 of file ShipEntityAI.m.
Referenced by ShipEntity(PureAI)::performHyperSpaceExit, and ShipEntity(PureAI)::performHyperSpaceExitWithoutReplacing.
|
implementation |
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2407 of file ShipEntityAI.m.
Referenced by ShipEntity(OOAIPrivate)::performHyperSpaceExitReplace:, and ShipEntity(AI)::performHyperSpaceToSpecificSystem:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1413 of file ShipEntityAI.m.
| - (BOOL) performHyperSpaceToSpecificSystem: | (OOSystemID) | systemID |
Provided by category ShipEntity(AI).
Definition at line 481 of file ShipEntityAI.m.
Referenced by ShipExitSystem(), and ShipExitSystem().
| - (void) performIdle |
Provided by category ShipEntity(AI).
Definition at line 407 of file ShipEntityAI.m.
| - (void) performIntercept |
Provided by category ShipEntity(AI).
Definition at line 413 of file ShipEntityAI.m.
| - (void) performLandOnPlanet |
Provided by category ShipEntity(AI).
Definition at line 419 of file ShipEntityAI.m.
| - (void) performMining |
Provided by category ShipEntity(AI).
Definition at line 434 of file ShipEntityAI.m.
| - (void) performScriptedAI |
Provided by category ShipEntity(AI).
Definition at line 446 of file ShipEntityAI.m.
| - (void) performScriptedAttackAI |
Provided by category ShipEntity(AI).
Definition at line 452 of file ShipEntityAI.m.
| - (void) performStop |
Provided by category ShipEntity(AI).
Definition at line 466 of file ShipEntityAI.m.
| - (void) performTumble |
Provided by category ShipEntity(AI).
Definition at line 473 of file ShipEntityAI.m.
Referenced by Universe::addWreckageFrom:withRole:at:scale:lifetime:, and behaviour_tractored:.
| - (NSArray *) portWeaponOffset |
References portWeaponOffset.
| - (Vector) positionOffsetForAlignment: | (NSString*) | align |
Definition at line 8219 of file ShipEntity.m.
References Entity::boundingBox, and kZeroVector.
| - (Vector) positionOffsetForShipInRotationToAlignment | (ShipEntity *) | ship | |
| (Quaternion) | q | ||
| (NSString *) | align |
Definition at line 8262 of file ShipEntity.m.
References findBoundingBoxRelativeToPosition:i:j:k:, kZeroVector, BoundingBox::max, BoundingBox::min, positionOffsetForShipInRotationToAlignment, vector_forward_from_quaternion(), vector_right_from_quaternion(), vector_up_from_quaternion(), Vector::x, Vector::y, and Vector::z.
Referenced by maxFlightSpeed, and positionOffsetForShipInRotationToAlignment.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1476 of file ShipEntity.m.
References prevBeacon, and OOWeakReference::weakRefUnderlyingObject.
Referenced by prevBeacon, and setPrevBeacon:.
| - (Entity *) primaryAggressor |
Definition at line 8564 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, ShipGetProperty(), and ShipGetProperty().
| - (NSString *) primaryRole |
References isPirate, isPolice, isThargoid, isTrader, and primaryRole.
| - (id) primaryTarget |
Definition at line 8727 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, HeadUpDisplay(Private)::drawScanner:, HeadUpDisplay(Private)::drawSecondaryTargetReticle:, 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, 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(), ShipFireMissile(), ShipGetProperty(), ShipGetProperty(), ShipEntity(ScriptMethods)::spawnShipsWithRole:count:, startTrackingCurve, ShipEntity(PureAI)::storeTarget, ShipEntity(PureAI)::suggestEscort, ShipEntity(PureAI)::targetNextBeaconWithCode:, trackOntoTarget:withDForward:, trackPrimaryTarget:retreat:, trackSideTarget:leftside:, update:, PlayerEntity(OOPrivate)::updateAlertConditionForNearbyEntities, PlayerEntity(OOPrivate)::updateTargeting, updateTrackingCurve, PlayerEntity::validateCompassTarget, ShipEntity(AI)::wormholeEscorts, and ShipEntity(PureAI)::wormholeGroup.
| - (id) primaryTargetWithoutValidityCheck |
Definition at line 8746 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 2485 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 6098 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:, hasProximityAlertIgnoringTarget:, maxFlightSpeed, proximityAlert, setProximityAlert:, ShipGetProperty(), and ShipGetProperty().
| - (float) randomEjectaTemperature |
Definition at line 7571 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 7576 of file ShipEntity.m.
References bellf(), OOClamp_0_1_f(), OOLerp(), 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 762 of file ShipEntityAI.m.
|
implementation |
Definition at line 8424 of file ShipEntity.m.
References entity_personality, and randomSeedForShaders.
Referenced by randomSeedForShaders.
| - (GLfloat) rangeToDestination |
Definition at line 9626 of file ShipEntity.m.
References _destination, HPdistance(), 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 9727 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 9732 of file ShipEntity.m.
References Entity::collision_radius, HPvector_subtract(), HPVectorToVector(), magnitude(), nil, and Entity::position.
Referenced by behaviour_track_as_turret:, fireDirectLaserDefensiveShot, and rangeToPrimaryTarget.
| - (float) reactionTime |
References avoidCollision, calculateTargetPosition, calculateTrackingCurve, hasAutoCloak, isCloaked, reactionTime, resumePostProximityAlert, scannerDisplayColor1, scannerDisplayColor2, scannerDisplayColorHostile1, scannerDisplayColorHostile2, startTrackingCurve, and updateTrackingCurve.
| - (void) reactToAIMessage: | (NSString*) | message | |
| context: | (NSString*) | debugContext |
Definition at line 12859 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(), ShipReactToAIMessage(), OOECMBlastEntity::update:, ShipEntity(AI)::wormholeEscorts, and ShipEntity(PureAI)::wormholeGroup.
| - (OOAlertCondition) realAlertCondition |
Reimplemented in PlayerEntity.
Definition at line 12894 of file ShipEntity.m.
References _escortGroup, _group, ALERT_CONDITION_DOCKED, ALERT_CONDITION_RED, ALERT_CONDITION_YELLOW, hasHostileTarget, HPdistance2(), 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 536 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::requestDockingCoordinates.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1849 of file ShipEntityAI.m.
| - (void) receiveCommsMessage: | (NSString*) | message_text | |
| from: | (ShipEntity*) | other |
Reimplemented in PlayerEntity.
Definition at line 12418 of file ShipEntity.m.
References doScriptEvent:withArgument:andArgument:.
Referenced by broadcastMessage:withUnpilotedOverride:, PlayerEntity::receiveCommsMessage:from:, and sendMessage:toShip:withUnpilotedOverride:.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 12005 of file ShipEntity.m.
References JSValueToVector(), kZeroVector, OOJSAcquireContext(), OOJSFreeValue, OOJSRelinquishContext(), OOJSUndefinedValue, OOJSValueFromDouble(), and ShipEntity(Private)::refreshEscortPositions.
Referenced by ShipEntity(Private)::drawDebugStuff, ShipEntity(Private)::refreshEscortPositions, setUpEscorts, ShipEntity(Private)::setUpMixedEscorts, and update:.
|
implementation |
Definition at line 7823 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:, velocity, HPVector::x, Vector::x, HPVector::y, Vector::y, HPVector::z, and Vector::z.
Referenced by becomeExplosion, becomeLargeExplosion:, and releaseCargoPodsDebris.
| - (Entity *) rememberedShip |
Definition at line 8612 of file ShipEntity.m.
References _rememberedShip, DESTROY, nil, rememberedShip, and OOWeakReference::weakRefUnderlyingObject.
Referenced by maxFlightSpeed, and rememberedShip.
| - (void) removeAllDefenseTargets |
Definition at line 9717 of file ShipEntity.m.
References removeAllDefenseTargets, and OOWeakSet::removeAllObjects.
Referenced by isMissile, and removeAllDefenseTargets.
| - (void) removeAllEquipment |
Definition at line 3489 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 7294 of file ShipEntity.m.
References cargo, commodityType, and nil.
| - (void) removeCollisionException: | (ShipEntity*) | ship |
Definition at line 9648 of file ShipEntity.m.
References _collisionExceptions, nil, and OOWeakSet::removeObject:.
Referenced by ShipRemoveCollisionException(), and ShipRemoveCollisionException().
| - (void) removeDefenseTarget: | (Entity*) | target |
Definition at line 9722 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 3267 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(), ShipRemoveEquipment(), ShipSetEquipmentStatus(), ShipSetEquipmentStatus(), and Universe::update:.
| - (void) removeExhaust: | (OOExhaustPlumeEntity*) | exhaust |
Definition at line 8182 of file ShipEntity.m.
References Entity::setOwner:.
Referenced by ExhaustPlumeRemove(), and ExhaustPlumeRemove().
| - (BOOL) removeExternalStore: | (OOEquipmentType*) | eqType |
Reimplemented in PlayerEntity.
Definition at line 3337 of file ShipEntity.m.
References OOEquipmentType::identifier, missile_list, and missiles.
Referenced by removeEquipmentItem:, and PlayerEntity::removeFromPylon:.
| - (void) removeFlasher: | (OOFlasherEntity*) | flasher |
Definition at line 8188 of file ShipEntity.m.
References Entity::setOwner:.
Referenced by FlasherRemove(), and FlasherRemove().
| - (OOCreditsQuantity) removeMissiles |
Reimplemented in PlayerEntity.
Definition at line 3495 of file ShipEntity.m.
References missiles, and removeMissiles.
Referenced by isFrangible, removeMissiles, ShipAwardEquipment(), ShipAwardEquipment(), and ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:.
| - (void) removeRole: | (NSString*) | role |
Definition at line 6303 of file ShipEntity.m.
References nil, roleSet, and OORoleSet::roleSetWithRemovedRole:.
Referenced by setIsBoulder:.
| - (void) removeScript |
Definition at line 1060 of file ShipEntity.m.
References nil, removeScript, and script.
Referenced by removeScript, ShipRemove(), and ShipRemove().
| - (void) removeTarget: | (Entity*) | targetEntity |
Definition at line 8682 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 739 of file ShipEntity.m.
Referenced by serializeShipSubEntities.
| - (BOOL) reportAIMessages |
References checkForAegis, destinationSystem, findNearestPlanet, findNearestPlanetExcludingMoons, findNearestStellarBody, forceAegisCheck, homeSystem, reportAIMessages, transitionToAegisNone, and withinStationAegis.
| - (void) requestDockingCoordinates |
Provided by category ShipEntity(AI).
Definition at line 486 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1936 of file ShipEntityAI.m.
|
implementation |
Reimplemented from <OOSubEntity>.
Provided by category ShipEntity(Private).
Definition at line 7784 of file ShipEntity.m.
References rescaleBy:writeToCache:.
|
implementation |
Reimplemented from <OOSubEntity>.
Provided by category ShipEntity(Private).
Definition at line 7789 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 8442 of file ShipEntity.m.
References exhaustEnumerator, nil, resetExhaustPlumes, and OOExhaustPlumeEntity::resetPlume.
Referenced by EntitySetProperty(), EntitySetProperty(), DockEntity::launchShip:, maxFlightSpeed, PlayerEntity(OOPrivate)::performWitchspaceExitUpdates:, resetExhaustPlumes, and wasAddedToUniverse.
| - (void) resetShotTime |
Definition at line 10089 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 2647 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 5947 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 1174 of file ShipEntity.m.
References rightVector, and v_right.
Referenced by rightVector, totalBoundingBox, and OOExhaustPlumeEntity::update:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1965 of file ShipEntityAI.m.
| - (GLfloat) rollToMatchUp: | (Vector) | up_vec | |
| rotating: | (GLfloat) | match_roll |
Definition at line 9602 of file ShipEntity.m.
References dot_product(), Entity::isPlayer, max_flight_roll, v_right, and v_up.
Referenced by trackDestination:retreat:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2271 of file ShipEntityAI.m.
| - (NSDictionary *) savedShipDictionaryWithContext: | (NSMutableDictionary*) | context |
Provided by category ShipEntity(LoadRestore).
Definition at line 75 of file ShipEntityLoadRestore.m.
|
implementation |
Reimplemented from Entity.
Definition at line 1849 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:isHostile:flash:scannerDisplayColor1:scannerDisplayColor2:scannerDisplayColorH1:scannerDisplayColorH2:, setAccuracy:, setBounty:withReason:, setCommsMessageColor, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, trackPrimaryTarget:retreat:, trackSideTarget:leftside:, update:, and StationEntity::update:.
| - (NSString *) scanDescription |
Definition at line 6198 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 6193 of file ShipEntity.m.
References scan_description, and scanDescriptionForScripting.
Referenced by displayName, scanDescriptionForScripting, ShipGetProperty(), and ShipGetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1621 of file ShipEntityAI.m.
| - (void) scanForHostiles |
Provided by category ShipEntity(AI).
Definition at line 293 of file ShipEntityAI.m.
Referenced by PlayerEntity(Scripting)::targetNearestHostile.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 937 of file ShipEntityAI.m.
| - (void) scanForNearestIncomingMissile |
Provided by category ShipEntity(AI).
Definition at line 555 of file ShipEntityAI.m.
Referenced by PlayerEntity(Scripting)::targetNearestIncomingMissile.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 884 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1993 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1982 of file ShipEntityAI.m.
Referenced by ShipEntity(PureAI)::thargonCheckMother.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2033 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2021 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2010 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1987 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2507 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 2015 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2005 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2027 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(OOAIPrivate).
Definition at line 2481 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 1977 of file ShipEntityAI.m.
Referenced by ShipEntity(PureAI)::scanForThargoid.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1999 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1466 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1351 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 979 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 913 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1871 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1461 of file ShipEntityAI.m.
| - (ShipEntity **) scannedShips |
Definition at line 8537 of file ShipEntity.m.
References nil, scanned_ships, and scannedShips.
Referenced by maxFlightSpeed, and scannedShips.
| - (OOColor *) scannerDisplayColor1 |
Definition at line 5717 of file ShipEntity.m.
References scannerDisplayColor1.
Referenced by HeadUpDisplay(Private)::drawScanner:, reactionTime, scannerDisplayColor1, scannerDisplayColorForShip:isHostile:flash:scannerDisplayColor1:scannerDisplayColor2:scannerDisplayColorH1:scannerDisplayColorH2:, ShipGetProperty(), and ShipGetProperty().
| - (OOColor *) scannerDisplayColor2 |
Definition at line 5722 of file ShipEntity.m.
References scannerDisplayColor2.
Referenced by HeadUpDisplay(Private)::drawScanner:, reactionTime, scannerDisplayColor2, scannerDisplayColorForShip:isHostile:flash:scannerDisplayColor1:scannerDisplayColor2:scannerDisplayColorH1:scannerDisplayColorH2:, ShipGetProperty(), and ShipGetProperty().
| - (GLfloat *) scannerDisplayColorForShip: | (ShipEntity*) | otherShip | |
| isHostile: | (BOOL) | isHostile | |
| flash: | (BOOL) | flash | |
| scannerDisplayColor1: | (OOColor*) | scannerDisplayColor1 | |
| scannerDisplayColor2: | (OOColor*) | scannerDisplayColor2 | |
| scannerDisplayColorH1: | (OOColor*) | scannerDisplayColorH1 | |
| scannerDisplayColorH2: | (OOColor*) | scannerDisplayColorH2 |
Definition at line 5601 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.
Referenced by HeadUpDisplay(Private)::drawScanner:.
| - (OOColor *) scannerDisplayColorHostile1 |
Definition at line 5745 of file ShipEntity.m.
References scannerDisplayColorHostile1.
Referenced by HeadUpDisplay(Private)::drawScanner:, reactionTime, scannerDisplayColorHostile1, ShipGetProperty(), and ShipGetProperty().
| - (OOColor *) scannerDisplayColorHostile2 |
Definition at line 5750 of file ShipEntity.m.
References scannerDisplayColorHostile2.
Referenced by HeadUpDisplay(Private)::drawScanner:, reactionTime, scannerDisplayColorHostile2, ShipGetProperty(), and ShipGetProperty().
| - (GLfloat) scannerRange |
References scannerRange.
| - (void) scoopIn: | (ShipEntity*) | other |
Definition at line 11244 of file ShipEntity.m.
Referenced by collideWithShip:.
| - (void) scoopUp: | (ShipEntity*) | other |
Definition at line 11253 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 11258 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:, ShipAddCargoEntity(), and ShipAddCargoEntity().
| - (OOJSScript *) script |
References script.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2242 of file ShipEntityAI.m.
| - (BOOL) scriptedMisjump |
Definition at line 1179 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 1189 of file ShipEntity.m.
References _scriptedMisjumpRange, and scriptedMisjumpRange.
Referenced by PlayerEntity::enterWitchspace, PlayerEntity::enterWormhole:, enterWormhole:replacing:, scriptedMisjumpRange, and scriptInfo.
| - (NSDictionary *) scriptInfo |
References entityForShaderProperties, scriptedMisjump, scriptedMisjumpRange, and scriptInfo.
| - (OOEquipmentType *) selectMissile |
Definition at line 3433 of file ShipEntity.m.
References _missileRole, hasAutoWeapons, OOEquipmentType::identifier, isThargoid, name, nil, OOLogERR, OOLogWARN, randf(), selectMissile, and verifiedMissileTypeFromRole:.
Referenced by isFrangible, selectMissile, setUpShipFromDictionary:, ShipSelectNewMissile(), and ShipSelectNewMissile().
| - (void) sendAIMessage: | (NSString*) | message |
Definition at line 12864 of file ShipEntity.m.
References AI::message:.
Referenced by DockEntity::abortAllDockings, StationEntity::abortDockingForShip:, ShipEntity(PureAI)::messageSelf:, DockEntity::pruneAndCountShipsOnApproach, ShipSendAIMessage(), and ShipSendAIMessage().
| - (void) sendExpandedMessage: | (NSString*) | message_text | |
| toShip: | (ShipEntity*) | other_ship |
Definition at line 12337 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, HPdistance2(), 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 12315 of file ShipEntity.m.
References crew, HPdistance2(), Entity::isPlayer, messageTime, OOExpand, Entity::position, PlayerEntity::receiveCommsMessage:from:, receiveCommsMessage:from:, scannerRange, and setCommsMessageColor.
Referenced by sendExpandedMessage:toShip:, ShipCommsMessage(), and ShipCommsMessage().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2289 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1804 of file ShipEntityAI.m.
| - (NSString *) serializeShipSubEntities |
Definition at line 753 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 1126 of file ShipEntity.m.
References accuracy, aim_tolerance, COMBAT_AI_ISNT_AWFUL, missile_load_time, pitch_tolerance, and scanClass.
Referenced by setUpShipFromDictionary:, ShipSetProperty(), and ShipSetProperty().
| - (void) setAfterburnerFactor: | (GLfloat) | new |
Definition at line 3671 of file ShipEntity.m.
References afterburner_speed_factor.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setAfterburnerRate: | (GLfloat) | new |
Definition at line 3676 of file ShipEntity.m.
References afterburner_rate.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setAI: | (AI*) | ai |
Definition at line 6907 of file ShipEntity.m.
References AI::clearAllData, and shipAI.
| - (void) setAIScript: | (NSString*) | aiString |
Provided by category ShipEntity(AI).
Definition at line 268 of file ShipEntityAI.m.
Referenced by AI::restorePreviousStateMachine, and ShipEntity(AI)::setAITo:.
| - (void) setAIScriptWakeTime: | (OOTimeAbsolute) | t |
Definition at line 1286 of file ShipEntity.m.
References aiScriptWakeTime.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setAITo: | (NSString*) | aiString |
Provided by category ShipEntity(AI).
Definition at line 245 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(), ShipSetAI(), PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, and ShipEntity(AI)::switchAITo:.
| - (void) setAutoCloak: | (BOOL) | automatic |
Definition at line 5778 of file ShipEntity.m.
References cloakAutomatic.
Referenced by ShipSetProperty(), and ShipSetProperty().
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1410 of file ShipEntity.m.
References _beaconCode, _beaconDrawable, _beaconLabel, DESTROY, nil, and setBeaconLabel:.
Referenced by WormholeEntity::disgorgeShips, setUpShipFromDictionary:, ShipSetProperty(), and ShipSetProperty().
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1432 of file ShipEntity.m.
References _beaconLabel, and nil.
Referenced by setBeaconCode:, setUpShipFromDictionary:, ShipSetProperty(), and ShipSetProperty().
| - (void) setBehaviour: | (OOBehaviour) | cond |
Definition at line 8835 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 7106 of file ShipEntity.m.
References setBounty:withReason:.
| - (void) setBounty: | (OOCreditsQuantity) | amount | |
| withReason: | (OOLegalStatusReason) | reason |
Reimplemented in PlayerEntity.
Definition at line 7111 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(), ShipSetProperty(), update:, and Universe::witchspaceShipWithPrimaryRole:.
| - (void) setBounty: | (OOCreditsQuantity) | amount | |
| withReasonAsString: | (NSString*) | reason |
Reimplemented in PlayerEntity.
Definition at line 7127 of file ShipEntity.m.
References bounty, Entity::isSubEntity, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromDouble(), OOJSValueFromNativeObject(), Entity::parentEntity, setBounty:withReasonAsString:, and ShipScriptEvent.
Referenced by setBounty:withReason:, setBounty:withReasonAsString:, ShipSetBounty(), and ShipSetBounty().
| - (void) setCargo: | (NSArray*) | some_cargo |
Definition at line 7278 of file ShipEntity.m.
Referenced by setCargoFlag:.
| - (void) setCargoFlag: | (OOCargoFlag) | flag |
Definition at line 7332 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(), ShipSetCargoType(), and Universe::witchspaceShipWithPrimaryRole:.
| - (void) setCloaked: | (BOOL) | cloak |
Definition at line 5765 of file ShipEntity.m.
References activateCloakingDevice, and deactivateCloakingDevice.
Referenced by removeEquipmentItem:, ShipSetProperty(), and ShipSetProperty().
| - (void) setCommodity: | (OOCommodityType) | co_type | |
| andAmount: | (OOCargoQuantity) | co_amount |
Definition at line 7164 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 7177 of file ShipEntity.m.
References commodity_amount, commodity_type, DESTROY, nil, setCommodity:andAmount:, UNITS_GRAMS, UNITS_KILOGRAMS, and UNITS_TONS.
Referenced by setUpShipFromDictionary:, ShipSetCargo(), and ShipSetCargo().
| - (void) setCommsMessageColor |
Definition at line 12408 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 8853 of file ShipEntity.m.
References coordinates.
Referenced by ShipSetProperty(), and ShipSetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2141 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1070 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1144 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1388 of file ShipEntityAI.m.
| - (void) setCrew: | (NSArray*) | crewArray |
Definition at line 6865 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(), ShipSetCrew(), and Universe::witchspaceShipWithPrimaryRole:.
| - (void) setDemoShip: | (OOScalar) | demoRate |
Definition at line 12750 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 12764 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 7404 of file ShipEntity.m.
References desired_range.
Referenced by ShipSetProperty(), and ShipSetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 813 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 808 of file ShipEntityAI.m.
| - (void) setDesiredSpeed: | (double) | amount |
Definition at line 7389 of file ShipEntity.m.
References desired_speed.
Referenced by PlayerEntity::launchEscapeCapsule, DockEntity::launchShip:, ShipSetProperty(), ShipSetProperty(), and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
| - (void) setDestination: | (HPVector) | dest |
Definition at line 11903 of file ShipEntity.m.
References _destination, and frustration.
Referenced by Universe::setupIntroFirstGo:, and Universe::update:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1065 of file ShipEntityAI.m.
| - (void) setDestinationSystem: | (OOSystemID) | s |
Definition at line 6840 of file ShipEntity.m.
References destination_system.
Referenced by ShipSetProperty(), and ShipSetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 795 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1907 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 801 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1401 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1236 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1396 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1243 of file ShipEntityAI.m.
| - (void) setDisplayName: | (NSString*) | inName |
Definition at line 6251 of file ShipEntity.m.
References displayName.
Referenced by setUpOneStandardSubentity:asTurret:, ShipSetProperty(), and ShipSetProperty().
| - (void) setEnergyRechargeRate: | (GLfloat) | new |
Definition at line 6491 of file ShipEntity.m.
References energy_recharge_rate.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setEntityPersonalityInt: | (uint16_t) | value |
Definition at line 8429 of file ShipEntity.m.
References entity_personality, ENTITY_PERSONALITY_MAX, mesh, and OOMesh::rebindMaterials.
Referenced by PlayerEntity(Contracts)::buySelectedShip, PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, MissionRunScreen(), MissionRunScreen(), PlayerReplaceShip(), PlayerReplaceShip(), PlayerEntity(Contracts)::replaceShipWithNamedShip:, setUpOneStandardSubentity:asTurret:, ShipSetProperty(), ShipSetProperty(), and PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:.
| - (void) setEscortDestination: | (HPVector) | dest |
Definition at line 11909 of file ShipEntity.m.
References _destination.
Referenced by ShipSetProperty(), ShipSetProperty(), and update:.
| - (void) setEscortGroup: | (OOShipGroup*) | group |
Definition at line 6010 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 8989 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:retreat:.
| - (void) setExhaustEmissiveColor: | (OOColor*) | color |
Definition at line 10153 of file ShipEntity.m.
References exhaust_emissive_color.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setFoundTarget: | (Entity*) | targetEntity |
Reimplemented in PlayerEntity.
Definition at line 8558 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(), ShipSetProperty(), takeEnergyDamage:from:becauseOf:weaponIdentifier:, and StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:.
| - (void) setFuel: | (OOFuelQuantity) | amount |
Definition at line 6997 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(), ShipSetProperty(), and update:.
| - (void) setGroup: | (OOShipGroup*) | group |
Definition at line 5984 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(), ShipGroupAddShip(), ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, ShipSetProperty(), ShipSetProperty(), ShipEntity(AI)::suggestEscortTo:, and ShipEntity(PureAI)::thargonCheckMother.
| - (void) setHeatInsulation: | (GLfloat) | value |
Definition at line 7598 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:, ShipSetProperty(), and ShipSetProperty().
| - (void) setHomeSystem: | (OOSystemID) | s |
Definition at line 6835 of file ShipEntity.m.
References home_system.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setHulk: | (BOOL) | isNowHulk |
Definition at line 7716 of file ShipEntity.m.
References isHulk, and Entity::isSubEntity.
Referenced by launchEscapeCapsule, and setUpShipFromDictionary:.
| - (void) setHyperspaceSpinTime: | (float) | new |
Definition at line 2874 of file ShipEntity.m.
References hyperspaceMotorSpinTime.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setIsBoulder: | (BOOL) | flag |
Definition at line 1504 of file ShipEntity.m.
References addRole:, and removeRole:.
Referenced by becomeExplosion, ShipSetProperty(), and ShipSetProperty().
| - (void) setIsMissileFlag: | (BOOL) | newValue |
Definition at line 10707 of file ShipEntity.m.
References isMissile.
Referenced by fireMissileWithIdentifier:andTarget:, and ShipEntity(ScriptMethods)::spawnShipsWithRole:count:.
| - (void) setIsWreckage: | (BOOL) | isw |
Definition at line 7890 of file ShipEntity.m.
References isWreckage.
Referenced by Universe::addWreckageFrom:withRole:at:scale:lifetime:.
| - (void) setLaserColor: | (OOColor*) | color |
Definition at line 10145 of file ShipEntity.m.
References laser_color.
Referenced by setWeaponDataFromType:.
| - (void) setLastAegisLock: | (Entity<OOStellarBody>*) | lastAegisLock |
Definition at line 6819 of file ShipEntity.m.
References _lastAegisLock.
Referenced by checkForAegis, and PlayerEntity::completeSetUpAndSetTarget:.
| - (void) setLastEscortTarget: | (Entity*) | targetEntity |
Definition at line 8590 of file ShipEntity.m.
References _lastEscortTarget, and OOWeakRefObject::weakRetain.
Referenced by deployEscorts.
| - (void) setLaunchDelay: | (double) | delay |
Definition at line 6855 of file ShipEntity.m.
References launch_delay.
Referenced by DockEntity::launchShip:.
| - (void) setMaxAvailableCargoSpace: | (OOCargoQuantity) | new |
Definition at line 7212 of file ShipEntity.m.
References equipment_weight, and max_cargo.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setMaxEscortCount: | (uint8_t) | newCount |
Definition at line 6080 of file ShipEntity.m.
References _maxEscortCount.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setMaxFlightPitch: | (GLfloat) | new |
Reimplemented in PlayerEntity.
Definition at line 7534 of file ShipEntity.m.
References max_flight_pitch.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setMaxFlightRoll: | (GLfloat) | new |
Reimplemented in PlayerEntity.
Definition at line 7544 of file ShipEntity.m.
References max_flight_roll.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setMaxFlightSpeed: | (GLfloat) | new |
Definition at line 7539 of file ShipEntity.m.
References maxFlightSpeed.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setMaxFlightYaw: | (GLfloat) | new |
Reimplemented in PlayerEntity.
Definition at line 7549 of file ShipEntity.m.
References max_flight_yaw.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setMaxThrust: | (GLfloat) | new |
Definition at line 3686 of file ShipEntity.m.
References max_thrust.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setMesh: | (OOMesh*) | mesh |
Definition at line 1150 of file ShipEntity.m.
References mesh, OOMesh::octree, octree, and OOEntityWithDrawable::setDrawable:.
Referenced by PlayerEntity::doBookkeeping:, PlayerEntity::launchEscapeCapsule, ShipEntity(Private)::rescaleBy:writeToCache:, ShipSetMaterialsInternal(), and ShipSetMaterialsInternal().
| - (void) setMessageTime: | (double) | value |
Definition at line 5974 of file ShipEntity.m.
References messageTime.
Referenced by HeadUpDisplay::refreshLastTransmitter.
| - (void) setMissileLoadTime: | (OOTimeDelta) | newMissileLoadTime |
Definition at line 10717 of file ShipEntity.m.
References missile_load_time.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setName: | (NSString*) | inName |
Reimplemented in PlayerEntity.
Definition at line 6233 of file ShipEntity.m.
References name.
Referenced by ShipSetProperty(), and ShipSetProperty().
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1494 of file ShipEntity.m.
References _nextBeacon, and nextBeacon.
Referenced by PlayerEntity::setNextCompassMode, and PlayerEntity::setPrevCompassMode.
|
implementation |
Reimplemented from Entity.
Definition at line 5803 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 6070 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 7086 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 1670 of file ShipEntityAI.m.
|
implementation |
Reimplemented from <OOBeaconEntity>.
Definition at line 1486 of file ShipEntity.m.
References _prevBeacon, and prevBeacon.
| - (void) setPrimaryAggressor: | (Entity*) | targetEntity |
Definition at line 8574 of file ShipEntity.m.
References _primaryAggressor, and OOWeakRefObject::weakRetain.
Referenced by ShipEntity(PureAI)::fightOrFleeHostiles, ShipEntity(PureAI)::fightOrFleeMissile, fireMissileWithIdentifier:andTarget:, fireSubentityLaserShot:, respondToAttackFrom:becauseOf:, ShipSetProperty(), ShipSetProperty(), takeEnergyDamage:from:becauseOf:weaponIdentifier:, and StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:.
| - (void) setPrimaryRole: | (NSString*) | role |
Definition at line 6328 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:, ShipSetProperty(), and ShipSetProperty().
| - (void) setProximityAlert: | (ShipEntity*) | targetEntity |
Definition at line 6107 of file ShipEntity.m.
References _proximityAlert, behaviour, Entity::collision_radius, crew, DESTROY, dockingInstructions, dot_product(), flightSpeed, HPdistance2(), HPvector_between, HPVectorToVector(), 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 2362 of file ShipEntityAI.m.
| - (void) setRawRoll: | (double) | amount |
Definition at line 7081 of file ShipEntity.m.
References flightRoll.
Referenced by StationSetProperty(), and StationSetProperty().
| - (void) setReactionTime: | (float) | newReactionTime |
Definition at line 5416 of file ShipEntity.m.
References reactionTime.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setReference: | (Vector) | v |
Definition at line 6531 of file ShipEntity.m.
References reference.
Referenced by setUpOneStandardSubentity:asTurret:.
| - (void) setRememberedShip: | (Entity*) | targetEntity |
Definition at line 8622 of file ShipEntity.m.
References _rememberedShip, and OOWeakRefObject::weakRetain.
Referenced by ShipEntity(PureAI)::storeTarget.
| - (void) setReportAIMessages: | (BOOL) | yn |
Definition at line 6541 of file ShipEntity.m.
References reportAIMessages.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setRoll: | (double) | amount |
Definition at line 7076 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 6257 of file ShipEntity.m.
References scan_description.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setScannerDisplayColor1: | (OOColor*) | color1 |
Definition at line 5699 of file ShipEntity.m.
References OOColor::colorWithDescription:, DESTROY, nil, scanner_display_color1, and shipInfoDictionary.
Referenced by setUpShipFromDictionary:, ShipSetProperty(), and ShipSetProperty().
| - (void) setScannerDisplayColor2: | (OOColor*) | color2 |
Definition at line 5708 of file ShipEntity.m.
References OOColor::colorWithDescription:, DESTROY, nil, scanner_display_color2, and shipInfoDictionary.
Referenced by setUpShipFromDictionary:, ShipSetProperty(), and ShipSetProperty().
| - (void) setScannerDisplayColorHostile1: | (OOColor*) | color1 |
Definition at line 5727 of file ShipEntity.m.
References OOColor::colorWithDescription:, DESTROY, nil, scanner_display_color_hostile1, and shipInfoDictionary.
Referenced by setUpShipFromDictionary:, ShipSetProperty(), and ShipSetProperty().
| - (void) setScannerDisplayColorHostile2: | (OOColor*) | color2 |
Definition at line 5736 of file ShipEntity.m.
References OOColor::colorWithDescription:, DESTROY, nil, scanner_display_color_hostile2, and shipInfoDictionary.
Referenced by setUpShipFromDictionary:, ShipSetProperty(), and ShipSetProperty().
| - (void) setScannerRange: | (GLfloat) | value |
Definition at line 6521 of file ShipEntity.m.
References scannerRange.
| - (void) setScriptedMisjump: | (BOOL) | newValue |
Definition at line 1184 of file ShipEntity.m.
References scripted_misjump.
Referenced by enterWormhole:replacing:, PlayerEntity(OOPrivate)::performWitchspaceExitUpdates:, ShipSetProperty(), and ShipSetProperty().
| - (void) setScriptedMisjumpRange: | (GLfloat) | newValue |
Definition at line 1194 of file ShipEntity.m.
References _scriptedMisjumpRange.
Referenced by enterWormhole:replacing:, PlayerEntity(OOPrivate)::performWitchspaceExitUpdates:, ShipSetProperty(), and ShipSetProperty().
| - (void) setShipClassName: | (NSString*) | inName |
Definition at line 6245 of file ShipEntity.m.
References shipClassName.
Referenced by PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, PlayerEntity::setCommanderDataFromDictionary:, ShipSetProperty(), and ShipSetProperty().
| - (void) setShipDataKey: | (NSString*) | key |
Definition at line 1784 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 8775 of file ShipEntity.m.
References OOWeakRefObject::weakRetain.
Referenced by fireDirectLaserShotAt:, fireLaserShotInDirection:weaponIdentifier:, and fireSubentityLaserShot:.
| - (void) setShipScript: | (NSString*) | script_name |
Definition at line 6937 of file ShipEntity.m.
References displayName, OOScript::jsScriptFromFileNamed:properties:, nil, OOEnforceStandards(), OOStandardsDeprecated(), and script.
Referenced by setUpShipFromDictionary:, ShipSetScript(), and ShipSetScript().
| - (void) setShipUniqueName: | (NSString*) | inName |
Definition at line 6239 of file ShipEntity.m.
References shipUniqueName.
Referenced by PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, PlayerEntity::setCommanderDataFromDictionary:, ShipSetProperty(), 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 6879 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 7384 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 823 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 818 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 828 of file ShipEntityAI.m.
| - (void) setStateMachine: | (NSString*) | ai_desc |
Definition at line 6902 of file ShipEntity.m.
References setAITo:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 752 of file ShipEntityAI.m.
|
implementation |
Reimplemented from Entity.
Definition at line 6845 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(), 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 1085 of file ShipEntity.m.
References subentityRotationalVelocity.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setSubEntityTakingDamage: | (ShipEntity*) | sub |
Definition at line 1252 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 724 of file ShipEntity.m.
References _subIdx.
Referenced by setUpOneStandardSubentity:asTurret:.
| - (void) setSunGlareFilter: | (GLfloat) | newValue |
Definition at line 1116 of file ShipEntity.m.
References OOClamp_0_1_f(), and sunGlareFilter.
Referenced by ShipSetProperty(), and ShipSetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1749 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1760 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1732 of file ShipEntityAI.m.
| - (void) setSuppressExplosion: | (BOOL) | suppress |
Definition at line 8437 of file ShipEntity.m.
References suppressExplosion.
Referenced by becomeExplosion, becomeLargeExplosion:, and deserializeShipSubEntitiesFrom:.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1165 of file ShipEntityAI.m.
| - (void) setTargetForScript: | (ShipEntity*) | target |
Provided by category ShipEntity(OOJavaScriptExtensions).
Definition at line 118 of file EntityOOJavaScriptExtensions.m.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setTargetForScript: | (ShipEntity *) | target |
Provided by category ShipEntity(OOJavaScriptExtensions).
| - (void) setTargetStation: | (Entity*) | targetEntity |
Definition at line 8638 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 1007 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2225 of file ShipEntityAI.m.
| - (void) setTargetToNearestFriendlyStation |
Definition at line 12191 of file ShipEntity.m.
References setTargetToNearestFriendlyStation, and setTargetToNearestStationIncludingHostiles:.
Referenced by coordinates, and setTargetToNearestFriendlyStation.
| - (void) setTargetToNearestStation |
Definition at line 12197 of file ShipEntity.m.
References setTargetToNearestStation, and setTargetToNearestStationIncludingHostiles:.
Referenced by coordinates, and setTargetToNearestStation.
|
implementation |
Definition at line 12147 of file ShipEntity.m.
References addTarget:, group, HPdistance2(), 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 838 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2181 of file ShipEntityAI.m.
| - (void) setTargetToSystemStation |
Definition at line 12203 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 7566 of file ShipEntity.m.
References ship_temperature.
Referenced by Universe::addWreckageFrom:withRole:at:scale:lifetime:, becomeExplosion, dumpItem:, ShipEntity(Private)::launchPodWithCrew:, releaseCargoPodsDebris, ShipSetProperty(), ShipSetProperty(), and ShipEntity(ScriptMethods)::spawnShipsWithRole:count:.
| - (void) setThankedShip: | (Entity*) | targetEntity |
Definition at line 8606 of file ShipEntity.m.
References _thankedShip, and OOWeakRefObject::weakRetain.
Referenced by interpretAIMessage:.
| - (void) setThrust: | (double) | amount |
Definition at line 7096 of file ShipEntity.m.
References thrust.
Referenced by behaviour_tractored:, dumpItem:, PlayerEntity::launchEscapeCapsule, releaseCargoPodsDebris, ShipSetProperty(), and ShipSetProperty().
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 833 of file ShipEntityAI.m.
| - (void) setThrustForDemo: | (float) | factor |
Definition at line 7101 of file ShipEntity.m.
References flightSpeed, and maxFlightSpeed.
| - (void) setTotalVelocity: | (Vector) | vel |
Definition at line 11177 of file ShipEntity.m.
References Entity::setVelocity:, and thrustVector.
Referenced by ShipSetProperty(), and ShipSetProperty().
| - (void) setTrackCloseContacts: | (BOOL) | value |
Definition at line 12552 of file ShipEntity.m.
References closeContactsInfo, nil, and trackCloseContacts.
Referenced by dealloc, setUpShipFromDictionary:, ShipSetProperty(), and ShipSetProperty().
| - (void) setUpCargoType: | (NSString*) | cargoString |
Definition at line 937 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 1532 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 StationEntity::launchIndependentShip:, octree, setUpEscorts, and wasAddedToUniverse.
| - (BOOL) setUpFromDictionary: | (NSDictionary*) | shipDict |
Definition at line 235 of file ShipEntity.m.
References _scriptedMisjumpRange, being_fined, haveExecutedSpawnAction, haveStartedJSAI, isNearPlanetSurface, nil, OOJS_PROFILE_ENTER, scripted_misjump, and shipinfoDictionary.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 1619 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 ShipEntity(Private)::drawDebugStuff, setUpEscorts, and ShipEntity(Private)::setUpMixedEscorts.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 1684 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, switchAITo:, HPVector::x, HPVector::y, and HPVector::z.
Referenced by setUpEscorts, and ShipEntity(Private)::setUpMixedEscorts.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 851 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 860 of file ShipEntity.m.
References _maxShipSubIdx, _scaleFactor, addSubEntity:, bounding_box_add_vector(), entityPersonalityInt, findSubentityBoundingBox, HPvector_multiply_scalar(), Entity::isStation, BoundingBox::max, BoundingBox::min, nil, OOLog, overrideScriptInfo:, setBehaviour:, DockEntity::setDimensionsAndCorridor:ddc:launching:, 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 835 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 500 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, OOClamp_0_max_f(), 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 790 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 PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, octree, setUpSubEntities, ShipRestoreSubEntities(), ShipRestoreSubEntities(), and PlayerEntity(OOPrivate)::tryBuyingItem:.
| - (void) setWeaponDataFromType: | (OOWeaponType) | weapon_type |
Definition at line 6470 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 6506 of file ShipEntity.m.
References weapon_damage.
Referenced by setUpOneStandardSubentity:asTurret:.
| - (BOOL) setWeaponMount: | (OOWeaponFacing) | facing | |
| toWeapon: | (NSString*) | eqKey |
Reimplemented in PlayerEntity.
Definition at line 3137 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(), and ShipSetProperty().
| - (void) setWeaponRange: | (GLfloat) | value |
Definition at line 6465 of file ShipEntity.m.
References weaponRange.
Referenced by setUpOneStandardSubentity:asTurret:.
| - (void) setWeaponRechargeRate: | (float) | value |
Definition at line 6501 of file ShipEntity.m.
References weapon_recharge_rate.
Referenced by setUpOneStandardSubentity:asTurret:.
| - (void) setYaw: | (double) | amount |
Definition at line 7091 of file ShipEntity.m.
References flightYaw, and M_PI.
Referenced by DockEntity::launchShip:.
| - (float) shieldBoostFactor |
Definition at line 3628 of file ShipEntity.m.
References hasMilitaryShieldEnhancer, hasShieldBooster, and shieldBoostFactor.
Referenced by isFrangible, maxAftShieldLevel, maxForwardShieldLevel, and shieldBoostFactor.
| - (float) shieldRechargeRate |
Definition at line 3651 of file ShipEntity.m.
References hasMilitaryShieldEnhancer, and shieldRechargeRate.
Referenced by isFrangible, and shieldRechargeRate.
| - (OOScript *) shipAIScript |
Definition at line 1276 of file ShipEntity.m.
References aiScript, and shipAIScript.
Referenced by shipAIScript, ShipGetProperty(), and ShipGetProperty().
| - (OOTimeAbsolute) shipAIScriptWakeTime |
Definition at line 1281 of file ShipEntity.m.
References aiScriptWakeTime, and shipAIScriptWakeTime.
Referenced by shipAIScriptWakeTime.
| - (NSString *) shipClassName |
References shipClassName.
| - (NSString *) shipDataKey |
Definition at line 1774 of file ShipEntity.m.
References _shipKey, and shipDataKey.
Referenced by PlayerEntity::availableFacings, PlayerEntity(Contracts)::buySelectedShip, PlayerEntity::commanderDataDictionary, PlayerEntity::createDoppelganger, PlayerEntity::doBookkeeping:, equipmentValidToAdd:whileLoading:inContext:, fuelChargeRate, PlayerEntity(Contracts)::newShipCommonSetup:yardInfo:baseInfo:, octree, 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(), ShipGetProperty(), and ShipEntity(LoadRestoreInternal)::simplifyShipdata:andGetDeletes:.
| - (NSString *) shipDataKeyAutoRole |
Definition at line 1779 of file ShipEntity.m.
References shipDataKey, and shipDataKeyAutoRole.
Referenced by hasRole:, octree, and shipDataKeyAutoRole.
| - (ShipEntity *) shipHitByLaser |
Definition at line 8770 of file ShipEntity.m.
References shipHitByLaser, and OOWeakReference::weakRefUnderlyingObject.
Referenced by maxFlightSpeed, PlayerEntity(OOControlsPrivate)::pollFlightControls:, and shipHitByLaser.
| - (NSDictionary *) shipInfoDictionary |
Definition at line 1790 of file ShipEntity.m.
References shipInfoDictionary, and shipinfoDictionary.
Referenced by Universe::addEntity:, becomeExplosion, clearSubEntities, PlayerEntity::commanderDataDictionary, countsAsKill, hasAutoAI, hasAutoWeapons, octree, ShipEntity(Private)::rescaleBy:writeToCache:, setScannerDisplayColor1:, setScannerDisplayColor2:, setScannerDisplayColorHostile1:, setScannerDisplayColorHostile2:, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, setUpSubEntities, shipInfoDictionary, ShipSetMaterialsInternal(), and ShipSetMaterialsInternal().
| + (id) shipRestoredFromDictionary: | (NSDictionary*) | dictionary | |
| useFallback: | (BOOL) | fallback | |
| context: | (NSMutableDictionary*) | context |
Provided by category ShipEntity(LoadRestore).
Definition at line 163 of file ShipEntityLoadRestore.m.
Referenced by WormholeEntity::initWithDict:.
| - (OOScript *) shipScript |
Definition at line 1271 of file ShipEntity.m.
References script, and shipScript.
Referenced by ShipGetProperty(), ShipGetProperty(), and shipScript.
| - (NSEnumerator *) shipSubEntityEnumerator |
Definition at line 1219 of file ShipEntity.m.
References shipSubEntityEnumerator, and subEntities.
Referenced by addTarget:, becomeExplosion, becomeLargeExplosion:, behaviour_attack_target:, PlayerEntity::canAddEquipment:inContext:, deserializeShipSubEntitiesFrom:, PlayerEntity::doesHitLine:v1:hitEntity:, doesHitLine:v1:hitEntity:, 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 shipUniqueName.
|
implementation |
Definition at line 1106 of file ShipEntity.m.
References name, and shortDescriptionComponents.
Referenced by shortDescriptionComponents.
| - (OOTimeDelta) shotTime |
Definition at line 10084 of file ShipEntity.m.
References shot_time, and shotTime.
Referenced by canCollide, coordinates, fireSubentityLaserShot:, fireTurretCannon:, fireWeapon:direction:range:, shotTime, and weaponRecoveryTime.
| - (BOOL) showDamage |
Definition at line 7895 of file ShipEntity.m.
References _showDamage, and showDamage.
Referenced by maxFlightSpeed, and showDamage.
| - (BOOL) showScoopMessage |
Definition at line 7322 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 251 of file ShipEntityLoadRestore.m.
References count, foreachkey, nil, OOShipRegistry::sharedRegistry, shipDataKey, OOShipRegistry::shipInfoForKey:, and StripIgnoredKeys().
Referenced by ShipEntity(LoadRestore)::savedShipDictionaryWithContext:.
| - (void) spawn: | (NSString*) | roles_number |
Definition at line 12487 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 60 of file ShipEntityScriptMethods.m.
Referenced by ShipSpawn(), ShipSpawn(), and spawn:.
| - (GLfloat) speedFactor |
Definition at line 7554 of file ShipEntity.m.
References flightSpeed, maxFlightSpeed, and speedFactor.
Referenced by maxFlightSpeed, speedFactor, and OOExhaustPlumeEntity::update:.
| - (NSArray *) starboardWeaponOffset |
| - (void) startTrackingCurve |
Definition at line 5434 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 6027 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 1838 of file ShipEntityAI.m.
| - (NSArray *) subEntities |
References clearSubEntities, exhaustEnumerator, flasherEnumerator, maxShipSubEntities, serializeShipSubEntities, shipSubEntityEnumerator, subEntities, subEntityCount, subEntityEnumerator, subEntityRotationalVelocity, subEntityTakingDamage, and subIdx.
| - (NSArray *) subEntitiesForScript |
Provided by category ShipEntity(OOJavaScriptExtensions).
Definition at line 113 of file EntityOOJavaScriptExtensions.m.
Referenced by ShipGetProperty(), ShipGetProperty(), ShipRestoreSubEntities(), and ShipRestoreSubEntities().
| - (NSArray *) subEntitiesForScript |
Provided by category ShipEntity(OOJavaScriptExtensions).
| - (NSUInteger) subEntityCount |
Definition at line 1204 of file ShipEntity.m.
References subEntityCount.
Referenced by drawImmediate:translucent:, subEntities, subEntityCount, and update:.
|
implementation |
Provided by category ShipEntity(Private).
Definition at line 8194 of file ShipEntity.m.
References Entity::mass, setOwner:, and setSubEntityTakingDamage:.
Referenced by becomeExplosion.
| - (NSEnumerator *) subEntityEnumerator |
Definition at line 1214 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 8206 of file ShipEntity.m.
References nil, OOLogERR, and setSubEntityTakingDamage:.
Referenced by dealloc.
| - (Quaternion) subEntityRotationalVelocity |
Definition at line 1080 of file ShipEntity.m.
References subEntityRotationalVelocity, and subentityRotationalVelocity.
Referenced by subEntities, and subEntityRotationalVelocity.
| - (ShipEntity *) subEntityTakingDamage |
Definition at line 1234 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 729 of file ShipEntity.m.
References _subIdx, and subIdx.
Referenced by deserializeShipSubEntitiesFrom:, serializeShipSubEntities, subEntities, and subIdx.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1585 of file ShipEntityAI.m.
| - (BOOL) suggestEscortTo: | (ShipEntity*) | mother |
Provided by category ShipEntity(AI).
Definition at line 641 of file ShipEntityAI.m.
Referenced by ShipEntity(PureAI)::suggestEscort.
| - (GLfloat) sunGlareFilter |
References checkShipsInVicinityForWitchJumpExit, int(), isMining, markedForFines, markForFines, setCommsMessageColor, and sunGlareFilter.
| - (BOOL) suppressFlightNotifications |
Definition at line 1844 of file ShipEntity.m.
References suppressAegisMessages, and suppressFlightNotifications.
Referenced by isFrangible, and suppressFlightNotifications.
|
implementation |
Reimplemented in PlayerEntity.
Definition at line 11249 of file ShipEntity.m.
References suppressTargetLost.
Referenced by scoopUpProcess:processEvents:processMessages:, and suppressTargetLost.
|
implementation |
Definition at line 6577 of file ShipEntity.m.
References Entity::position, reference, and SurfaceDistanceSqaredV.
Referenced by findNearestStellarBody.
|
implementation |
Definition at line 6567 of file ShipEntity.m.
References HPmagnitude2(), HPvector_subtract(), Entity::position, and reference.
Referenced by ComparePlanetsBySurfaceDistance, findNearestPlanet, and SurfaceDistanceSqared.
| - (void) switchAITo: | (NSString*) | aiString |
Provided by category ShipEntity(AI).
Definition at line 287 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(), ShipSwitchAI(), Universe::update:, and Universe::witchspaceShipWithPrimaryRole:.
| - (void) switchLightsOff |
Definition at line 11883 of file ShipEntity.m.
References _lightsActive, flasherEnumerator, nil, shipSubEntityEnumerator, and switchLightsOff.
Referenced by coordinates, StationEntity::launchPatrol, ShipSetProperty(), ShipSetProperty(), and switchLightsOff.
| - (void) switchLightsOn |
Definition at line 11867 of file ShipEntity.m.
References _lightsActive, flasherEnumerator, nil, shipSubEntityEnumerator, and switchLightsOn.
Referenced by coordinates, ShipSetProperty(), ShipSetProperty(), and switchLightsOn.
|
implementation |
Reimplemented from Entity.
Reimplemented in DockEntity, PlayerEntity, and StationEntity.
Definition at line 11427 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 11687 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 11650 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 2321 of file ShipEntityAI.m.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 2331 of file ShipEntityAI.m.
| - (StationEntity *) targetStation |
Definition at line 8628 of file ShipEntity.m.
References _targetStation, DESTROY, nil, targetStation, and OOWeakReference::weakRefUnderlyingObject.
Referenced by behaviour_fly_to_destination:, PlayerEntity::cancelDockingRequest:, PlayerEntity::engageAutopilotToStation:, maxFlightSpeed, PlayerEntity::performDockingRequest:, ShipEntity(AI)::requestDockingCoordinates, ShipEntity(PureAI)::setDestinationToDockingAbort, ShipEntity(PureAI)::setTargetToLastStation, targetStation, and trackDestination:retreat:.
| - (GLfloat) temperature |
Definition at line 7561 of file ShipEntity.m.
References ship_temperature, and temperature.
Referenced by PlayerEntity::createDoppelganger, maxFlightSpeed, randomEjectaTemperatureWithMaxFactor:, temperature, and update:.
| - (Entity *) thankedShip |
Definition at line 8596 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 1488 of file ShipEntityAI.m.
|
implementation |
Reimplemented from Entity.
Definition at line 10498 of file ShipEntity.m.
References Entity::boundingBox, OOColor::colorWithHue:saturation:brightness:alpha:, HPvector_add(), HPvector_subtract(), HPVectorToVector(), next_spark_time, Entity::normalOrientation, Entity::position, quaternion_rotate_vector(), randf(), Entity::setOwner:, throwSparks, vector_multiply_scalar(), and vectorToHPVector().
Referenced by throwSparks, and update:.
| - (Vector) thrustVector |
Definition at line 11167 of file ShipEntity.m.
References flightSpeed, thrustVector, v_forward, and vector_multiply_scalar().
Referenced by cruiseSpeed, setTotalVelocity:, thrustVector, and velocity.
References forwardVector, rightVector, totalBoundingBox, and upVector.
| - (BOOL) trackCloseContacts |
References trackCloseContacts.
| - (double) trackDestination: | (double) | delta_t | |
| retreat: | (BOOL) | retreat |
Definition at line 9459 of file ShipEntity.m.
References _destination, applySticks:, desired_range, docking_match_rotation, dockingInstructions, dot_product(), flightPitch, flightRoll, HPvector_subtract(), HPVectorToVector(), Entity::isPlayer, Entity::isStation, kZeroVector, magnitude2(), 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, v_up, vector_equal(), vector_normal(), and Vector::z.
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 8879 of file ShipEntity.m.
References Entity::collision_radius, flightPitch, flightRoll, flightYaw, magnitude2(), Entity::orientation, orientationChanged, primaryTarget, quaternion_multiply(), quaternion_rotation_between(), stick_pitch, stick_roll, stick_yaw, v_forward, vector_normal(), Entity::vectorTo:, Vector::x, Vector::y, and Vector::z.
| - (double) trackPrimaryTarget: | (double) | delta_t | |
| retreat: | (BOOL) | retreat |
Definition at line 9043 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, dot_product(), flightPitch, flightRoll, HPmagnitude2(), HPvector_subtract(), HPVectorToVector(), Entity::isShip, jink, kBasisZVector, kZeroVector, magnitude(), 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_equal(), vector_forward_from_quaternion(), vector_normal(), vector_right_from_quaternion(), vector_up_from_quaternion(), Vector::x, Vector::y, and Vector::z.
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 | |
| leftside: | (BOOL) | leftside |
Definition at line 9255 of file ShipEntity.m.
References accuracy, applySticks:, calculateTargetPosition, canStillTrackPrimaryTarget, COMBAT_AI_TRACKS_CLOSER, currentAimTolerance, dot_product(), flightPitch, flightYaw, HPvector_subtract(), HPVectorToVector(), kZeroVector, max_flight_pitch, max_flight_yaw, missileTrackPrimaryTarget:, noteLostTargetAndGoIdle, Entity::position, primaryTarget, scanClass, stick_pitch, stick_roll, stick_yaw, v_forward, v_right, v_up, vector_equal(), vector_normal(), and Vector::z.
Referenced by behaviour_attack_broadside_target:leftside:.
| - (void) transitionToAegisNone |
Definition at line 6546 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 6085 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 2083 of file ShipEntity.m.
References _destination, _nextAegisCheck, _primaryTarget, _showDamage, AEGIS_NONE, aegis_status, aft_weapon_temp, aiScriptWakeTime, applyAttitudeChanges:, applyThrust:, behaviour, bounding_box_add_vector(), Entity::boundingBox, bounty, checkForAegis, cloaking_device_active, CLOAKING_DEVICE_ENERGY_RATE, CLOAKING_DEVICE_MIN_ENERGY, closeContactsInfo, Entity::collision_radius, coordinatesForEscortPosition:, deactivateCloakingDevice, demoRate, demoStartTime, Entity::distanceTravelled, doScriptEvent:, doScriptEvent:withArgument:, doScriptEvent:withArgument:andReactToAIMessage:, dot_product(), 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, HPdistance2(), HPvector_add(), HPvector_between, HPVectorToVector(), isDemoShip, Entity::isShip, Entity::isSubEntity, kIdentityQuaternion, kZeroQuaternion, kZeroVector, launch_delay, launch_time, OOShipGroup::leader, M_PI, make_quaternion(), make_vector(), manageCollisions, BoundingBox::max, Entity::maxEnergy, maxFlightSpeed, AI::message:, messageTime, military_jammer_active, MILITARY_JAMMER_ENERGY_RATE, MILITARY_JAMMER_MIN_ENERGY, BoundingBox::min, next_spark_time, nil, NO_TARGET, noteLostTarget, OOLog, OOStringFromBehaviour(), Entity::owner, PLAYER, port_weapon_temp, Entity::position, primaryRole, primaryTarget, processBehaviour:, quaternion_equal(), 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, vector_equal(), vector_multiply_scalar(), vectorToHPVector(), velocity, Quaternion::w, OOWeakRefObject::weakRetain, WEAPON_COOLING_FACTOR, weapon_temp, Quaternion::x, Vector::x, Quaternion::y, Vector::y, Quaternion::z, and Vector::z.
Referenced by DockEntity::clearDockingCorridor, WormholeEntity::disgorgeShips, PlayerEntity::doBookkeeping:, DockEntity::update:, update:, and StationEntity::update:.
| - (void) updateEscortFormation |
Definition at line 11995 of file ShipEntity.m.
References _escortPositionsValid, and updateEscortFormation.
Referenced by deployEscorts, octree, setEscortGroup:, setGroup:, setUpEscorts, and updateEscortFormation.
| - (void) updateTrackingCurve |
Definition at line 5453 of file ShipEntity.m.
References calculateTrackingCurve, EXPECT_NOT, flightSpeed, HPvector_add(), isCloaked, Entity::isShip, nil, OOHPVectorRandomSpatial(), Entity::position, primaryTarget, reactionTime, trackingCurvePositions, trackingCurveTimes, and updateTrackingCurve.
Referenced by reactionTime, update:, and updateTrackingCurve.
| - (Vector) upVector |
Definition at line 1169 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 9696 of file ShipEntity.m.
References _defenseTargets, allDefenseTargets, nil, removeDefenseTarget:, Entity::status, and validateDefenseTargets.
Referenced by isMissile, ShipGetProperty(), ShipGetProperty(), and validateDefenseTargets.
|
implementation |
Reimplemented from Entity.
Reimplemented in PlayerEntity.
Definition at line 2074 of file ShipEntity.m.
References nil, OOLog, shipinfoDictionary, Entity::validForAddToUniverse, and validForAddToUniverse.
Referenced by validForAddToUniverse.
|
implementation |
Reimplemented from Entity.
Definition at line 11172 of file ShipEntity.m.
References thrustVector, vector_add(), 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 3355 of file ShipEntity.m.
References OOEquipmentType::equipmentTypeWithIdentifier:, generateMissileEquipmentTypeFrom:, OOEquipmentType::getMissileRegistryRoleForShip:, name, nil, OOLogWARN, roleSet, OOEquipmentType::setMissileRegistryRole:forShip:, and verifiedMissileTypeFromRole:.
Referenced by selectMissile, and verifiedMissileTypeFromRole:.
| - (float) volume |
Definition at line 1309 of file ShipEntity.m.
References Octree::volume, and volume.
Referenced by clearSubEntities, octree, PlayerEntity::setGuiToGameOptionsScreen, and volume.
|
implementation |
Reimplemented from Entity.
Definition at line 1368 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 1395 of file ShipEntity.m.
References wasRemovedFromUniverse.
Referenced by wasRemovedFromUniverse.
| - (OOWeaponFacingSet) weaponFacings |
Definition at line 2901 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 energyRechargeRate, weaponRange, and weaponRechargeRate.
| - (float) weaponRechargeRate |
Definition at line 6496 of file ShipEntity.m.
References weapon_recharge_rate, and weaponRechargeRate.
Referenced by weaponRange, and weaponRechargeRate.
| - (GLfloat) weaponRecoveryTime |
Definition at line 8361 of file ShipEntity.m.
References OOClamp_0_1_f(), shotTime, weapon_recharge_rate, and weaponRecoveryTime.
Referenced by maxFlightSpeed, and weaponRecoveryTime.
| - (OOEquipmentType *) weaponTypeForFacing: | (OOWeaponFacing) | facing | |
| strict: | (BOOL) | strict |
Reimplemented in PlayerEntity.
Definition at line 2943 of file ShipEntity.m.
References weaponTypeIDForFacing:strict:.
Referenced by fireDirectLaserShotAt:, fireSubentityLaserShot:, ShipGetProperty(), and ShipGetProperty().
| - (OOWeaponType) weaponTypeIDForFacing: | (OOWeaponFacing) | facing | |
| strict: | (BOOL) | strict |
Definition at line 2906 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 11809 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 6803 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 635 of file ShipEntityAI.m.
| - (void) wormholeEscorts |
Provided by category ShipEntity(AI).
Definition at line 609 of file ShipEntityAI.m.
Referenced by enterWormhole:replacing:, and ShipEntity(AI)::wormholeEntireGroup.
|
implementation |
Provided by category ShipEntity(PureAI).
Definition at line 1423 of file ShipEntityAI.m.
Referenced by ShipEntity(AI)::wormholeEntireGroup.
|
private |
Definition at line 470 of file ShipEntity.h.
Referenced by beaconCode, dealloc, and setBeaconCode:.
|
private |
Definition at line 474 of file ShipEntity.h.
Referenced by beaconDrawable, dealloc, and setBeaconCode:.
|
private |
Definition at line 471 of file ShipEntity.h.
Referenced by beaconLabel, dealloc, setBeaconCode:, and setBeaconLabel:.
|
private |
Definition at line 463 of file ShipEntity.h.
Referenced by addCollisionException:, collisionExceptedFor:, collisionExceptions, dealloc, and removeCollisionException:.
|
private |
Definition at line 460 of file ShipEntity.h.
Referenced by addDefenseTarget:, dealloc, and validateDefenseTargets.
| - (HPVector) _destination |
Definition at line 192 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, rangeToDestination, resumePostProximityAlert, setDestination:, setEscortDestination:, trackDestination:retreat:, and update:.
|
private |
Definition at line 447 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 453 of file ShipEntity.h.
Referenced by abandonShip, dealloc, deployEscorts, dockEscorts, escortArray, escortCount, escortEnumerator, escortGroup, hasEscorts, realAlertCondition, setEscortGroup:, and setGroup:.
|
private |
Definition at line 457 of file ShipEntity.h.
|
private |
Definition at line 458 of file ShipEntity.h.
Referenced by updateEscortFormation.
|
protected |
Definition at line 263 of file ShipEntity.h.
Referenced by isExplicitlyUnpiloted, and setUpShipFromDictionary:.
|
protected |
Definition at line 428 of file ShipEntity.h.
Referenced by foundTarget, PlayerEntity::setFoundTarget:, and setFoundTarget:.
|
private |
Definition at line 452 of file ShipEntity.h.
Referenced by dealloc, fireMissileWithIdentifier:andTarget:, group, realAlertCondition, setGroup:, and stationGroup.
|
private |
Definition at line 448 of file ShipEntity.h.
Referenced by heatInsulation, and setHeatInsulation:.
|
private |
Definition at line 450 of file ShipEntity.h.
Referenced by dealloc, and setLastAegisLock:.
|
protected |
Definition at line 429 of file ShipEntity.h.
Referenced by lastEscortTarget, setLastEscortTarget:, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
|
protected |
Definition at line 271 of file ShipEntity.h.
Referenced by lightsActive, switchLightsOff, and switchLightsOn.
|
private |
Definition at line 454 of file ShipEntity.h.
Referenced by acceptAsEscort:, maxEscortCount, setMaxEscortCount:, setPendingEscortCount:, setUpEscorts, and setUpShipFromDictionary:.
|
protected |
Definition at line 332 of file ShipEntity.h.
Referenced by maxShipSubEntities, setUpOneStandardSubentity:asTurret:, and setUpSubEntities.
|
protected |
Definition at line 365 of file ShipEntity.h.
Referenced by adjustMissedShots:, missedShots, and setUpShipFromDictionary:.
|
protected |
Definition at line 310 of file ShipEntity.h.
Referenced by selectMissile, and setUpShipFromDictionary:.
|
protected |
Definition at line 379 of file ShipEntity.h.
Referenced by fireLaserShotInDirection:weaponIdentifier:, PlayerEntity::fireMainWeapon, fireWeapon:direction:range:, and PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:.
|
private |
Definition at line 476 of file ShipEntity.h.
Referenced by forceAegisCheck, initWithKey:definition:, and update:.
|
private |
Definition at line 473 of file ShipEntity.h.
Referenced by setNextBeacon:.
|
private |
Definition at line 455 of file ShipEntity.h.
Referenced by pendingEscortCount, setPendingEscortCount:, setUpEscorts, setUpShipFromDictionary:, and wasAddedToUniverse.
|
private |
Definition at line 472 of file ShipEntity.h.
Referenced by setPrevBeacon:.
|
protected |
Definition at line 426 of file ShipEntity.h.
Referenced by noteLostTarget, primaryAggressor, and setPrimaryAggressor:.
|
protected |
Definition at line 425 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 465 of file ShipEntity.h.
Referenced by clearSubEntities, frustumRadius, and setUpSubEntities.
|
protected |
Definition at line 432 of file ShipEntity.h.
Referenced by proximityAlert, resumePostProximityAlert, and setProximityAlert:.
|
protected |
Definition at line 431 of file ShipEntity.h.
Referenced by rememberedShip, and setRememberedShip:.
|
protected |
Definition at line 377 of file ShipEntity.h.
Referenced by getWeaponOffsetFrom:withKey:inMode:, missileLaunchPosition, PlayerEntity::setCustomViewDataFromDictionary:withScaling:, setUpOneStandardSubentity:asTurret:, and PlayerEntity::setUpShipFromDictionary:.
|
protected |
Definition at line 273 of file ShipEntity.h.
Referenced by scriptedMisjumpRange, setScriptedMisjumpRange:, PlayerEntity::setUpAndConfirmOK:saveGame:, and setUpFromDictionary:.
|
private |
Definition at line 467 of file ShipEntity.h.
|
private |
Definition at line 445 of file ShipEntity.h.
Referenced by dealloc, initWithKey:definition:, setShipDataKey:, and shipDataKey.
|
protected |
Definition at line 259 of file ShipEntity.h.
Referenced by showDamage, and update:.
|
private |
Definition at line 443 of file ShipEntity.h.
Referenced by setSubEntityTakingDamage:.
|
protected |
Definition at line 331 of file ShipEntity.h.
Referenced by setSubIdx:, and subIdx.
|
protected |
Definition at line 427 of file ShipEntity.h.
Referenced by setTargetStation:, and targetStation.
|
protected |
Definition at line 430 of file ShipEntity.h.
Referenced by setThankedShip:, and thankedShip.
|
protected |
Definition at line 1121 of file ShipEntity.m.
Referenced by accuracy, 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, fireDirectLaserShot:, fireDirectLaserShotAt:, fireWeapon:direction:range:, missileTrackPrimaryTarget:, noteTakingDamage:from:type:, noticeECM, setAccuracy:, setEvasiveJink:, setUpShipFromDictionary:, trackPrimaryTarget:retreat:, and trackSideTarget:leftside:.
|
protected |
Definition at line 367 of file ShipEntity.h.
Referenced by checkForAegis, transitionToAegisNone, update:, StationEntity::update:, and withinStationAegis.
|
protected |
Definition at line 304 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 295 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 280 of file ShipEntity.h.
Referenced by afterburnerRate, applyThrust:, PlayerEntity::doBookkeeping:, and setAfterburnerRate:.
|
protected |
Definition at line 281 of file ShipEntity.h.
Referenced by afterburnerFactor, and setAfterburnerFactor:.
|
protected |
Definition at line 1819 of file ShipEntity.m.
Referenced by aftWeaponOffset, dealloc, Universe::firstEntityTargetedByPlayerPrecisely, laserPortOffset:, ShipGetProperty(), and ShipGetProperty().
|
protected |
Definition at line 364 of file ShipEntity.h.
Referenced by behaviour_attack_fly_to_target:, behaviour_attack_target:, currentAimTolerance, and setAccuracy:.
|
protected |
Definition at line 212 of file ShipEntity.h.
Referenced by dealloc, and shipAIScript.
|
protected |
Definition at line 213 of file ShipEntity.h.
Referenced by behaviour_land_on_planet:, initWithKey:definition:, setAIScriptWakeTime:, shipAIScriptWakeTime, and update:.
| - (OOBehaviour) behaviour |
Definition at line 8830 of file ShipEntity.m.
Referenced by abandonShip, applyThrust:, avoidCollision, behaviour, 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, fireMainWeapon:, getTractoredBy:, hasHostileTarget, IsBehaviourHostile, isMining, isTurret, noteLostTargetAndGoIdle, noteTakingDamage:from:type:, processBehaviour:, resumePostProximityAlert, setBehaviour:, setProximityAlert:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, trackPrimaryTarget:retreat:, and update:.
|
protected |
Definition at line 248 of file ShipEntity.h.
Referenced by PlayerEntity::docked, PlayerEntity::leaveWitchspace, markedForFines, markForFines, and setUpFromDictionary:.
|
protected |
Definition at line 246 of file ShipEntity.h.
Referenced by becomeExplosion, StationEntity::becomeExplosion, takeEnergyDamage:from:becauseOf:weaponIdentifier:, and takeScrapeDamage:from:.
|
protected |
Definition at line 7146 of file ShipEntity.m.
Referenced by StationEntity::acceptDockingClearanceRequestFrom:, bounty, broadcastHitByLaserFrom:, canAcceptEscort:, PlayerEntity::collectBountyFor:, WormholeEntity::disgorgeShips, interpretAIMessage:, legalStatus, markAsOffender:withReason:, respondToAttackFrom:becauseOf:, setBounty:withReasonAsString:, StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, and update:.
|
protected |
Definition at line 257 of file ShipEntity.h.
Referenced by becomeExplosion.
|
protected |
Definition at line 7239 of file ShipEntity.m.
Referenced by addCargo:, canScoop:, cargo, 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 347 of file ShipEntity.h.
Referenced by dumpCargoItem:, dumpItem:, and PlayerEntity::loadCargoPods.
|
protected |
Definition at line 288 of file ShipEntity.h.
Referenced by cargoFlag, scoopUpProcess:processEvents:processMessages:, setCargoFlag:, and setUpShipFromDictionary:.
|
protected |
Definition at line 287 of file ShipEntity.h.
Referenced by cargoType, setUpCargoType:, and setUpShipFromDictionary:.
|
protected |
Definition at line 256 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 254 of file ShipEntity.h.
Referenced by activateCloakingDevice, deactivateCloakingDevice, PlayerEntity::doBookkeeping:, drawImmediate:translucent:, 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 5760 of file ShipEntity.m.
References OOLog.
Referenced by ShipEntity(Private)::drawDebugStuff, PlayerEntity::fireMainWeapon, PlayerEntity::fireMissile, fireMissileWithIdentifier:andTarget:, fireTurretCannon:, fireWeapon:direction:range:, and launchCascadeMine.
|
protected |
Definition at line 390 of file ShipEntity.h.
Referenced by checkCloseCollisionWith:, setTrackCloseContacts:, and update:.
|
protected |
Definition at line 375 of file ShipEntity.h.
|
protected |
Definition at line 353 of file ShipEntity.h.
Referenced by commodityAmount, setCommodity:andAmount:, setCommodityForPod:andAmount:, setUpCargoType:, and setUpShipFromDictionary:.
|
protected |
Definition at line 352 of file ShipEntity.h.
Referenced by commodityType, dealloc, setCommodity:andAmount:, setCommodityForPod:andAmount:, setUpCargoType:, and setUpShipFromDictionary:.
|
protected |
Definition at line 8848 of file ShipEntity.m.
Referenced by coordinates, and setCoordinate:.
|
protected |
Definition at line 6860 of file ShipEntity.m.
Referenced by broadcastMessage:withUnpilotedOverride:, crew, 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, scoopUpProcess:processEvents:processMessages:, sendExpandedMessage:toShip:, sendMessage:toShip:withUnpilotedOverride:, setCrew:, setProximityAlert:, and StationEntity::setUpShipFromDictionary:.
|
protected |
Definition at line 7409 of file ShipEntity.m.
Referenced by acceptAsEscort:, and cruiseSpeed.
|
protected |
Definition at line 6511 of file ShipEntity.m.
Referenced by currentAimTolerance, currentWeaponFacing, PlayerEntity::doBookkeeping:, fireAftWeapon:, PlayerEntity::fireMainWeapon, fireMainWeapon:, firePortWeapon:, fireStarboardWeapon:, initWithKey:definition:, PlayerEntity::leaveDock:, lookingAtSunWithThresholdAngleCos:, PlayerShipGetProperty(), PlayerShipGetProperty(), PlayerShipSetProperty(), PlayerShipSetProperty(), PlayerEntity::setCustomViewDataFromDictionary:withScaling:, PlayerEntity::setUpAndConfirmOK:saveGame:, ShipGetProperty(), ShipGetProperty(), ShipSetProperty(), ShipSetProperty(), and PlayerEntity::weaponViewOffset.
|
protected |
Definition at line 219 of file ShipEntity.h.
Referenced by dealloc, and setWeaponDataFromType:.
|
private |
Definition at line 480 of file ShipEntity.h.
Referenced by setDemoShip:, and update:.
|
private |
Definition at line 482 of file ShipEntity.h.
Referenced by setDemoShip:.
|
private |
Definition at line 481 of file ShipEntity.h.
Referenced by getDemoStartTime, setDemoStartTime:, and update:.
| - (GLfloat) desired_range |
Definition at line 194 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:retreat:.
| - (GLfloat) desired_speed |
Definition at line 195 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, getTractoredBy:, increase_flight_speed:, noteTakingDamage:from:type:, resumePostProximityAlert, and setDesiredSpeed:.
|
protected |
Definition at line 369 of file ShipEntity.h.
Referenced by destinationSystem, setDestinationSystem:, and setUpShipFromDictionary:.
|
protected |
Definition at line 6172 of file ShipEntity.m.
Referenced by StationEntity::acceptDockingClearanceRequestFrom:, PlayerEntity(Scripting)::commanderShipDisplayName_string, dealloc, displayName, PlayerEntity(ScriptMethods)::dockedStationDisplayName, StationEntity::dumpSelfState, StationEntity::fitsInDock:andLogNoFit:, PlayerEntity(OOControlsPrivate)::handleAutopilotOn:, identFromShip:, 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, ShipGetProperty(), ShipGetProperty(), PlayerEntity(Contracts)::showTradeInInformationFooter, and StationEntity::update:.
|
protected |
Definition at line 402 of file ShipEntity.h.
Referenced by checkScanner, and checkScannerIgnoringUnpowered.
|
protected |
Definition at line 240 of file ShipEntity.h.
Referenced by behaviour_face_destination:, behaviour_fly_to_destination:, and trackDestination:retreat:.
|
protected |
Definition at line 12255 of file ShipEntity.m.
Referenced by behaviour_fly_to_destination:, canAcceptEscort:, dealloc, dockingInstructions, enterDock:, setProximityAlert:, ShipGetProperty(), ShipGetProperty(), and trackDestination:retreat:.
|
protected |
Definition at line 291 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, energyRechargeRate, removeEquipmentItem:, setEnergyRechargeRate:, and update:.
|
protected |
Definition at line 418 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 286 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, availableCargoSpace, maxAvailableCargoSpace, removeEquipmentItem:, and setMaxAvailableCargoSpace:.
|
protected |
Definition at line 220 of file ShipEntity.h.
Referenced by dealloc, and setExhaustEmissiveColor:.
|
protected |
Definition at line 324 of file ShipEntity.h.
Referenced by becomeExplosion, and dealloc.
|
protected |
Definition at line 285 of file ShipEntity.h.
Referenced by addEquipmentItem:withValidation:inContext:, extraCargo, removeEquipmentItem:, and PlayerEntity::setCommanderDataFromDictionary:.
|
protected |
Definition at line 7499 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:, flightPitch, PlayerEntity::getDestroyedBy:damageType:, increase_flight_pitch:, PlayerEntity::launchEscapeCapsule, PlayerEntity::leaveWitchspace, missileTrackPrimaryTarget:, PlayerShipSetProperty(), PlayerShipSetProperty(), setPitch:, PlayerEntity::setUpAndConfirmOK:saveGame:, trackDestination:retreat:, trackOntoTarget:withDForward:, trackPrimaryTarget:retreat:, trackSideTarget:leftside:, and witchspaceLeavingEffects.
|
protected |
Definition at line 7494 of file ShipEntity.m.
Referenced by applySticks:, behaviour_idle:, decrease_flight_roll:, PlayerEntity::dialRoll, PlayerEntity::docked, StationEntity::dockingInstructionsForShip:, evasiveAction:, flightRoll, PlayerEntity::getDestroyedBy:damageType:, increase_flight_roll:, PlayerEntity::launchEscapeCapsule, DockEntity::launchShip:, PlayerEntity::leaveDock:, PlayerEntity::leaveWitchspace, missileTrackPrimaryTarget:, PlayerShipSetProperty(), PlayerShipSetProperty(), setRawRoll:, setRoll:, PlayerEntity::setUpAndConfirmOK:saveGame:, trackDestination:retreat:, trackOntoTarget:withDForward:, trackPrimaryTarget:retreat:, and witchspaceLeavingEffects.
|
protected |
Definition at line 7509 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:, flightSpeed, 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 7504 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:, flightYaw, PlayerEntity::getDestroyedBy:damageType:, increase_flight_yaw:, PlayerEntity::launchEscapeCapsule, PlayerEntity::leaveWitchspace, PlayerShipSetProperty(), PlayerShipSetProperty(), PlayerEntity::setUpAndConfirmOK:saveGame:, setYaw:, trackOntoTarget:withDForward:, trackSideTarget:leftside:, update:, and witchspaceLeavingEffects.
|
protected |
Definition at line 304 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 294 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 1824 of file ShipEntity.m.
Referenced by dealloc, Universe::firstEntityTargetedByPlayerPrecisely, forwardWeaponOffset, laserPortOffset:, ShipGetProperty(), and ShipGetProperty().
|
protected |
Definition at line 6987 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, frustration, launchCascadeMine, noteLostTargetAndGoIdle, noteTakingDamage:from:type:, resumePostProximityAlert, setBehaviour:, setDestination:, and update:.
|
protected |
Definition at line 6992 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, PlayerEntity::dialFuel, PlayerEntity::doBookkeeping:, PlayerEntity::enterWitchspace, equipmentValidToAdd:whileLoading:inContext:, fuel, PlayerEntity::hasSufficientFuelForJump, increase_flight_speed:, StationEntity::launchIndependentShip:, PlayerEntity::setCommanderDataFromDictionary:, setFuel:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, WormholeEntity::suckInShip:, PlayerEntity(OOPrivate)::tryBuyingItem:, and update:.
|
protected |
Definition at line 278 of file ShipEntity.h.
Referenced by applyThrust:, PlayerEntity::doBookkeeping:, PlayerEntity::setUpAndConfirmOK:saveGame:, setUpShipFromDictionary:, and update:.
|
protected |
Definition at line 264 of file ShipEntity.h.
Referenced by setUpShipFromDictionary:, and showScoopMessage.
|
protected |
Definition at line 268 of file ShipEntity.h.
Referenced by setUpFromDictionary:, and update:.
|
protected |
Definition at line 269 of file ShipEntity.h.
Referenced by setUpFromDictionary:, and update:.
|
protected |
Definition at line 368 of file ShipEntity.h.
Referenced by homeSystem, setHomeSystem:, and setUpShipFromDictionary:.
|
protected |
Definition at line 236 of file ShipEntity.h.
Referenced by hasHyperspaceMotor, hyperspaceSpinTime, and setHyperspaceSpinTime:.
|
private |
Definition at line 12759 of file ShipEntity.m.
Referenced by isDemoShip, setDemoShip:, and update:.
|
protected |
Definition at line 1839 of file ShipEntity.m.
Referenced by collideWithShip:, fireDirectLaserShotAt:, fireLaserShotInDirection:weaponIdentifier:, fireSubentityLaserShot:, isFrangible, and takeHeatDamage:.
|
protected |
Definition at line 7711 of file ShipEntity.m.
Referenced by PlayerEntity::addRoleForAggression:, PlayerEntity::collectBountyFor:, isHulk, isUnpiloted, StationEntity::isUnpiloted, and setHulk:.
|
protected |
Definition at line 6362 of file ShipEntity.m.
Referenced by PlayerEntity::addTarget:, canCollide, fireMissileWithIdentifier:andTarget:, hasHostileTarget, isMissile, isMissileFlagSet, isWeapon, PlayerEntity::moveTargetMemoryBy:, PlayerEntity::selectNextMissile, and setIsMissileFlag:.
|
protected |
Definition at line 252 of file ShipEntity.h.
Referenced by checkForAegis, and setUpFromDictionary:.
|
protected |
Definition at line 258 of file ShipEntity.h.
Referenced by becomeExplosion, canCollide, and setIsWreckage:.
|
protected |
Definition at line 327 of file ShipEntity.h.
Referenced by behaviour_attack_broadside:, behaviour_attack_fly_from_target:, behaviour_attack_target:, behaviour_running_defense:, setEvasiveJink:, and trackPrimaryTarget:retreat:.
|
protected |
Definition at line 218 of file ShipEntity.h.
Referenced by dealloc, and setLaserColor:.
|
protected |
Definition at line 348 of file ShipEntity.h.
Referenced by fireLaserShotInDirection:weaponIdentifier:.
|
protected |
Definition at line 392 of file ShipEntity.h.
Referenced by dealloc, and sendExpandedMessage:toShip:.
|
protected |
Definition at line 334 of file ShipEntity.h.
Referenced by setLaunchDelay:, and update:.
|
protected |
Definition at line 333 of file ShipEntity.h.
Referenced by setStatus:, and update:.
|
protected |
Definition at line 283 of file ShipEntity.h.
Referenced by becomeExplosion, setCargoFlag:, and setUpShipFromDictionary:.
|
protected |
Definition at line 284 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 230 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:retreat:, trackPrimaryTarget:retreat:, and trackSideTarget:leftside:.
|
protected |
Definition at line 229 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:retreat:, and trackPrimaryTarget:retreat:.
|
protected |
Definition at line 231 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:leftside:.
|
protected |
Definition at line 309 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 234 of file ShipEntity.h.
Referenced by PlayerEntity::doBookkeeping:, maxThrust, and setMaxThrust:.
|
protected |
Definition at line 7519 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, increase_flight_speed:, initWithKey:definition:, PlayerEntity::launchEscapeCapsule, DockEntity::launchShip:, PlayerEntity::leaveWitchspace, Universe::makeSunSkimmer:andSetAI:, maxFlightSpeed, 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 5969 of file ShipEntity.m.
Referenced by broadcastMessage:withUnpilotedOverride:, HeadUpDisplay(Private)::drawScanner:, messageTime, sendExpandedMessage:toShip:, sendMessage:toShip:withUnpilotedOverride:, setMessageTime:, and update:.
|
protected |
Definition at line 238 of file ShipEntity.h.
Referenced by PlayerEntity::doBookkeeping:, isJammingScanning, and update:.
|
protected |
Definition at line 312 of file ShipEntity.h.
Referenced by fireMissileWithIdentifier:andTarget:, and noticeECM.
|
protected |
Definition at line 422 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 311 of file ShipEntity.h.
Referenced by fireMissileWithIdentifier:andTarget:, missileLoadTime, noticeECM, setAccuracy:, and setMissileLoadTime:.
|
protected |
Definition at line 308 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:, 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 403 of file ShipEntity.h.
Referenced by broadcastAIMessage:, broadcastMessage:withUnpilotedOverride:, checkScanner, checkScannerIgnoringUnpowered, dumpCargoItem:, getTractoredBy:, numberOfScannedShips, and scoopUpProcess:processEvents:processMessages:.
|
protected |
Definition at line 6157 of file ShipEntity.m.
Referenced by ShipEntity(PureAI)::ai_debugMessage:, PlayerEntity(Scripting)::commanderShip_string, dealloc, deployEscorts, descriptionComponents, PlayerEntity(ScriptMethods)::dockedStationName, name, AI(OOPrivate)::refreshOwnerDesc, PlayerEntity::resetAutopilotAI, selectMissile, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setExtraGuiScreenKeys:definition:, setName:, ShipGetProperty(), ShipGetProperty(), ShipRunLegacyScriptActions(), ShipRunLegacyScriptActions(), shortDescriptionComponents, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, verifiedMissileTypeFromRole:, and PlayerEntity::witchJumpChecklist:.
|
protected |
Definition at line 406 of file ShipEntity.h.
Referenced by behaviour_fly_thru_navpoints:.
|
protected |
Definition at line 407 of file ShipEntity.h.
Referenced by behaviour_fly_thru_navpoints:.
|
protected |
Definition at line 373 of file ShipEntity.h.
Referenced by throwSparks, and update:.
|
protected |
Definition at line 270 of file ShipEntity.h.
Referenced by becomeExplosion, isMinable, and setUpShipFromDictionary:.
|
protected |
Definition at line 408 of file ShipEntity.h.
Referenced by behaviour_fly_thru_navpoints:.
|
protected |
Definition at line 1304 of file ShipEntity.m.
Referenced by clearSubEntities, dealloc, doOctreesCollide, octree, and setMesh:.
|
protected |
Definition at line 340 of file ShipEntity.h.
|
protected |
Definition at line 363 of file ShipEntity.h.
Referenced by missileTrackPrimaryTarget:, and setAccuracy:.
|
protected |
Definition at line 242 of file ShipEntity.h.
Referenced by avoidCollision, behaviour_attack_target:, behaviour_fly_to_target_six:, behaviour_formation_form_up:, missileTrackPrimaryTarget:, trackDestination:retreat:, and trackPrimaryTarget:retreat:.
|
protected |
Definition at line 335 of file ShipEntity.h.
|
protected |
Definition at line 304 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 296 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 1829 of file ShipEntity.m.
Referenced by dealloc, Universe::firstEntityTargetedByPlayerPrecisely, laserPortOffset:, portWeaponOffset, ShipGetProperty(), and ShipGetProperty().
|
protected |
Definition at line 342 of file ShipEntity.h.
Referenced by avoidCollision, dealloc, hasHostileTarget, and resumePostProximityAlert.
|
protected |
Definition at line 6314 of file ShipEntity.m.
Referenced by PlayerEntity::addRoleForAggression:, PlayerEntity::commanderDataDictionary, dealEnergyDamage:atRange:withBias:, dealEnergyDamageWithinDesiredRange, dealloc, StationEntity::dumpSelfState, enterWitchspace, PlayerEntity::fireMissile, StationEntity::fitsInDock:andLogNoFit:, hasPrimaryRole:, HasPrimaryRoleInSetPredicate(), isEscort, isMine, isPirate, isPirateVictim, isShuttle, isTemplateCargoPod, isTrader, PlayerEntity::mountMissile:, primaryRole, PlayerEntity::removeFromPylon:, ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, Universe::setDockingClearanceProtocolActive:, setPrimaryRole:, setUpShipFromDictionary:, ShipGetProperty(), ShipGetProperty(), PlayerEntity::tidyMissilePylons, and update:.
|
protected |
Definition at line 5411 of file ShipEntity.m.
Referenced by calculateTargetPosition, calculateTrackingCurve, reactionTime, setReactionTime:, setUpShipFromDictionary:, startTrackingCurve, and updateTrackingCurve.
|
protected |
Definition at line 6526 of file ShipEntity.m.
Referenced by ballTrackLeadingTarget:atTarget:, reference, setReference:, setUpShipFromDictionary:, SurfaceDistanceSqared, and SurfaceDistanceSqaredV.
|
protected |
Definition at line 6536 of file ShipEntity.m.
Referenced by landOnPlanet:, reportAIMessages, setReportAIMessages:, AI::takeAction:, and update:.
|
protected |
Definition at line 6276 of file ShipEntity.m.
Referenced by addRole:withProbability:, becomeExplosion, dealloc, HasRoleInSetPredicate(), removeRole:, roleSet, ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, PlayerEntity::setUpShipFromDictionary:, setUpShipFromDictionary:, ShipGetProperty(), ShipGetProperty(), and verifiedMissileTypeFromRole:.
|
protected |
Definition at line 243 of file ShipEntity.h.
|
protected |
Definition at line 320 of file ShipEntity.h.
Referenced by dealloc, scanDescription, scanDescriptionForScripting, setScanDescription:, and setUpShipFromDictionary:.
|
protected |
Definition at line 401 of file ShipEntity.h.
Referenced by broadcastAIMessage:, broadcastMessage:withUnpilotedOverride:, checkScanner, checkScannerIgnoringUnpowered, dumpCargoItem:, getTractoredBy:, scannedShips, and scoopUpProcess:processEvents:processMessages:.
|
protected |
Definition at line 221 of file ShipEntity.h.
Referenced by dealloc, and setScannerDisplayColor1:.
|
protected |
Definition at line 222 of file ShipEntity.h.
Referenced by dealloc, and setScannerDisplayColor2:.
|
protected |
Definition at line 223 of file ShipEntity.h.
Referenced by dealloc, and setScannerDisplayColorHostile1:.
|
protected |
Definition at line 224 of file ShipEntity.h.
Referenced by dealloc, and setScannerDisplayColorHostile2:.
|
protected |
Definition at line 6516 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, fireDirectLaserDefensiveShot, fireMissileWithIdentifier:andTarget:, realAlertCondition, scannerRange, sendExpandedMessage:toShip:, sendMessage:toShip:withUnpilotedOverride:, setScannerRange:, PlayerEntity::setUpAndConfirmOK:saveGame:, PlayerEntity::setUpShipFromDictionary:, and setUpShipFromDictionary:.
|
protected |
Definition at line 12723 of file ShipEntity.m.
Referenced by StationEntity::acceptDockingClearanceRequestFrom:, DockEntity::allowsLaunchingOf:, behaviour_scripted_ai:, DockEntity::canAcceptShipForDocking:, dealloc, StationEntity::dockingInstructionsForShip:, removeScript, script, setShipScript:, PlayerEntity::setUpShipFromDictionary:, shipScript, and update:.
|
protected |
Definition at line 267 of file ShipEntity.h.
Referenced by scriptedMisjump, setScriptedMisjump:, PlayerEntity::setUpAndConfirmOK:saveGame:, and setUpFromDictionary:.
|
protected |
Definition at line 12728 of file ShipEntity.m.
Referenced by overrideScriptInfo:, scriptInfo, ShipGetProperty(), and ShipGetProperty().
|
protected |
Definition at line 398 of file ShipEntity.h.
Referenced by PlayerEntity::doBookkeeping:, PlayerEntity::docked, hullHeatLevel, initWithKey:definition:, setTemperature:, PlayerEntity::setUpAndConfirmOK:saveGame:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, takeEnergyDamage:from:becauseOf:weaponIdentifier:, temperature, and update:.
|
protected |
Definition at line 314 of file ShipEntity.h.
Referenced by acceptAsEscort:, dealloc, getAI, setAI:, PlayerEntity::setUpAndConfirmOK:saveGame:, and setUpShipFromDictionary:.
|
protected |
Definition at line 6167 of file ShipEntity.m.
Referenced by PlayerEntity::commanderDataDictionary, dealloc, setShipClassName:, shipClassName, ShipGetProperty(), and ShipGetProperty().
|
protected |
Definition at line 206 of file ShipEntity.h.
Referenced by dealloc, StationEntity::isRotatingStation, setUpEscorts, setUpFromDictionary:, shipInfoDictionary, update:, and validForAddToUniverse.
|
protected |
Definition at line 6162 of file ShipEntity.m.
Referenced by PlayerEntity::commanderDataDictionary, dealloc, setShipUniqueName:, ShipGetProperty(), ShipGetProperty(), and shipUniqueName.
|
protected |
Definition at line 346 of file ShipEntity.h.
| - (OOTimeDelta) shot_time |
Definition at line 186 of file ShipEntity.h.
Referenced by PlayerEntity::doBookkeeping:, initWithKey:definition:, resetShotTime, PlayerEntity::setUpAndConfirmOK:saveGame:, shotTime, and update:.
|
protected |
Definition at line 304 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 297 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 1834 of file ShipEntity.m.
Referenced by dealloc, Universe::firstEntityTargetedByPlayerPrecisely, laserPortOffset:, ShipGetProperty(), ShipGetProperty(), and starboardWeaponOffset.
| - (GLfloat) stick_pitch |
Definition at line 198 of file ShipEntity.h.
Referenced by applySticks:, behaviour_idle:, behaviour_scripted_ai:, behaviour_stop_still:, evasiveAction:, missileTrackPrimaryTarget:, trackDestination:retreat:, trackOntoTarget:withDForward:, trackPrimaryTarget:retreat:, trackSideTarget:leftside:, and witchspaceLeavingEffects.
| - (GLfloat) stick_roll |
Definition at line 197 of file ShipEntity.h.
Referenced by applySticks:, behaviour_idle:, behaviour_scripted_ai:, behaviour_stop_still:, evasiveAction:, missileTrackPrimaryTarget:, trackDestination:retreat:, trackOntoTarget:withDForward:, trackPrimaryTarget:retreat:, trackSideTarget:leftside:, and witchspaceLeavingEffects.
| - (GLfloat) stick_yaw |
Definition at line 199 of file ShipEntity.h.
Referenced by applySticks:, behaviour_idle:, behaviour_scripted_ai:, behaviour_stop_still:, missileTrackPrimaryTarget:, trackDestination:retreat:, trackOntoTarget:withDForward:, trackPrimaryTarget:retreat:, trackSideTarget:leftside:, and witchspaceLeavingEffects.
|
protected |
Definition at line 1199 of file ShipEntity.m.
Referenced by clearSubEntities, PlayerEntity::doBookkeeping:, StationEntity::dockSubEntityEnumerator, doOctreesCollide, drawImmediate:translucent:, exhaustEnumerator, flasherEnumerator, shipSubEntityEnumerator, subEntities, subEntityEnumerator, and update:.
|
protected |
Definition at line 208 of file ShipEntity.h.
Referenced by setSubEntityRotationalVelocity:, subEntityRotationalVelocity, and update:.
|
protected |
Definition at line 338 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:, and behaviour_intercept_target:.
|
protected |
Definition at line 1111 of file ShipEntity.m.
Referenced by currentAimTolerance, setSunGlareFilter:, and sunGlareFilter.
|
protected |
Definition at line 261 of file ShipEntity.h.
Referenced by checkForAegis, PlayerEntity::leaveDock:, suppressFlightNotifications, and transitionToAegisNone.
|
protected |
Definition at line 260 of file ShipEntity.h.
Referenced by becomeExplosion, setSuppressExplosion:, and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
|
protected |
Definition at line 3691 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:, PlayerEntity::launchEscapeCapsule, setThrust:, and thrust.
| - (BoundingBox) totalBoundingBox |
Definition at line 1159 of file ShipEntity.m.
Referenced by DockEntity::allowsLaunchingOf:, DockEntity::canAcceptShipForDocking:, PlayerEntity::doBookkeeping:, drawImmediate:translucent:, HeadUpDisplay(Private)::drawScanner:, OOShipLibrarySize(), setUpOneStandardSubentity:asTurret:, setUpSubEntities, CollisionRegion::shadowAtPointOcclusionToValue, ShipGetProperty(), ShipGetProperty(), totalBoundingBox, and update:.
|
protected |
Definition at line 12547 of file ShipEntity.m.
Referenced by checkCloseCollisionWith:, setTrackCloseContacts:, trackCloseContacts, and update:.
|
protected |
Definition at line 440 of file ShipEntity.h.
Referenced by calculateTargetPosition, and calculateTrackingCurve.
|
protected |
Definition at line 438 of file ShipEntity.h.
Referenced by calculateTrackingCurve, startTrackingCurve, and updateTrackingCurve.
|
protected |
Definition at line 439 of file ShipEntity.h.
Referenced by calculateTargetPosition, calculateTrackingCurve, startTrackingCurve, and updateTrackingCurve.
|
protected |
Definition at line 395 of file ShipEntity.h.
Referenced by absoluteTractorPosition.
| - (Vector) v_forward |
Definition at line 189 of file ShipEntity.h.
Referenced by approachAspectToPrimaryTarget, canScoop:, checkCloseCollisionWith:, distance_six:, doesHitLine:v1:, PlayerEntity::doesHitLine:v1:hitEntity:, doesHitLine:v1:hitEntity:, 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:retreat:, trackOntoTarget:withDForward:, trackPrimaryTarget:retreat:, trackSideTarget:leftside:, and update:.
| - (Vector) v_right |
Definition at line 189 of file ShipEntity.h.
Referenced by checkCloseCollisionWith:, distance_twelve:withOffset:, doesHitLine:v1:, PlayerEntity::doesHitLine:v1:hitEntity:, doesHitLine:v1:hitEntity:, 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:retreat:, trackPrimaryTarget:retreat:, trackSideTarget:leftside:, and update:.
| - (Vector) v_up |
Definition at line 189 of file ShipEntity.h.
Referenced by canScoop:, checkCloseCollisionWith:, distance_twelve:withOffset:, doesHitLine:v1:, PlayerEntity::doesHitLine:v1:hitEntity:, doesHitLine:v1:hitEntity:, HeadUpDisplay(Private)::drawScanner:, launchCascadeMine, PlayerEntity::launchEscapeCapsule, missileTrackPrimaryTarget:, PlayerEntity::orientationChanged, orientationChanged, rollToMatchUp:rotating:, setProximityAlert:, setUpShipFromDictionary:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeScrapeDamage:from:, trackDestination:retreat:, trackPrimaryTarget:retreat:, trackSideTarget:leftside:, update:, and upVector.
|
protected |
Definition at line 298 of file ShipEntity.h.
Referenced by behaviour_attack_broadside:, dealEnergyDamageWithinDesiredRange, fireLaserShotInDirection:weaponIdentifier:, setUpShipFromDictionary:, setWeaponDataFromType:, and setWeaponEnergy:.
|
protected |
Definition at line 299 of file ShipEntity.h.
Referenced by setUpShipFromDictionary:.
|
protected |
Definition at line 303 of file ShipEntity.h.
Referenced by PlayerEntity::fireMainWeapon, fireSubentityLaserShot:, fireWeapon:direction:range:, and setWeaponDataFromType:.
|
protected |
Definition at line 293 of file ShipEntity.h.
Referenced by setWeaponMount:toWeapon:, weaponFacings, and weaponTypeIDForFacing:strict:.
|
protected |
Definition at line 345 of file ShipEntity.h.
Referenced by fireSubentityLaserShot:, fireTurretCannon:, fireWeapon:direction:range:, initWithKey:definition:, setWeaponDataFromType:, setWeaponRechargeRate:, weaponRechargeRate, and weaponRecoveryTime.
|
protected |
Definition at line 303 of file ShipEntity.h.
Referenced by PlayerEntity::fireMainWeapon, fireSubentityLaserShot:, fireWeapon:direction:range:, and setWeaponDataFromType:.
|
protected |
Definition at line 303 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 6460 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:, setWeaponDataFromType:, setWeaponRange:, and weaponRange.