![]() |
Oolite 1.91.0.7650-250121-affa790
|
Definition at line 113 of file PlayerEntity.m.
Extends class PlayerEntity.
Definition at line 3359 of file PlayerEntity.m.
References Entity::collision_radius, EXPECT, EXPECT_NOT, ShipEntity::isCloaked, Entity::isShip, Entity::isSun, SCANNER_MAX_RANGE2, STELLAR_TYPE_MINIATURE, and Entity::zero_distance.
Referenced by updateAlertConditionForNearbyEntities.
- (void) checkScriptsIfAppropriate |
Extends class PlayerEntity.
Definition at line 3543 of file PlayerEntity.m.
References PlayerEntity::checkScript, and checkScriptsIfAppropriate.
Referenced by checkScriptsIfAppropriate, setExtraEquipmentFromFlags, and PlayerEntity::update:.
- (NSArray *) contractsListForScriptingFromArray: | (NSArray *) | contractsArray | |
forCargo: | (BOOL) | forCargo |
Extends class PlayerEntity.
Definition at line 8433 of file PlayerEntity.m.
Referenced by PlayerEntity::contractListForScripting, PlayerEntity::parcelListForScripting, and PlayerEntity::passengerListForScripting.
- (void) doTradeIn: | (OOCreditsQuantity) | tradeInValue | |
forPriceFactor: | (double) | priceFactor |
Extends class PlayerEntity.
Definition at line 10701 of file PlayerEntity.m.
Referenced by tryBuyingItem:.
- (OOFuelQuantity) fuelRequiredForJump |
Extends class PlayerEntity.
Definition at line 7505 of file PlayerEntity.m.
References fuelRequiredForJump, hyperspaceJumpDistance, and MAX.
Referenced by PlayerEntity::dialHyperRange, PlayerEntity::enterWitchspace, fuelRequiredForJump, PlayerEntity::hasSufficientFuelForJump, and setExtraEquipmentFromFlags.
- (void) gameOverFadeToBW |
Extends class PlayerEntity.
Definition at line 3981 of file PlayerEntity.m.
References MyOpenGLView::adjustColorSaturation:, MyOpenGLView::colorSaturation, DETAIL_LEVEL_SHADERS, gameOverFadeToBW, kDeadResetTime, and UNIVERSE.
Referenced by gameOverFadeToBW, performDeadUpdates:, and setExtraEquipmentFromFlags.
- (double) hyperspaceJumpDistance |
Extends class PlayerEntity.
Definition at line 7498 of file PlayerEntity.m.
References distanceBetweenPlanetPositions(), hyperspaceJumpDistance, PointFromString(), and UNIVERSE.
Referenced by fuelRequiredForJump, hyperspaceJumpDistance, setExtraEquipmentFromFlags, and PlayerEntity::witchJumpChecklist:.
- (void) noteCompassLostTarget |
Extends class PlayerEntity.
Definition at line 7517 of file PlayerEntity.m.
References PlayerEntity::hud, noteCompassLostTarget, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromCompassMode(), HeadUpDisplay::setCompassActive:, and ShipScriptEvent.
Referenced by PlayerEntity::enterGalacticWitchspace, PlayerEntity::enterWitchspace, noteCompassLostTarget, and setExtraEquipmentFromFlags.
- (void) performAutopilotUpdates: | (OOTimeDelta) | delta_t |
Extends class PlayerEntity.
Definition at line 3609 of file PlayerEntity.m.
References Entity::applyVelocity:, PlayerEntity::doBookkeeping:, and ShipEntity::processBehaviour:.
Referenced by PlayerEntity::update:.
- (void) performDeadUpdates: | (OOTimeDelta) | delta_t |
Extends class PlayerEntity.
Definition at line 3965 of file PlayerEntity.m.
References PlayerEntity::gameOverFadeToBW, kDeadResetTime, and UNIVERSE.
Referenced by PlayerEntity::update:.
- (void) performDockingUpdates: | (OOTimeDelta) | delta_t |
Extends class PlayerEntity.
Definition at line 3952 of file PlayerEntity.m.
References PlayerEntity::docked, and UNIVERSE.
Referenced by PlayerEntity::update:.
- (void) performInFlightUpdates: | (OOTimeDelta) | delta_t |
Extends class PlayerEntity.
Definition at line 3761 of file PlayerEntity.m.
References ShipEntity::afterburnerFactor, PlayerEntity::applyRoll:andClimb:, Entity::applyVelocity:, PlayerEntity::applyYaw:, HYPERSPEED_FACTOR, kZeroVector, PlayerEntity::moveForward:, STAGE_TRACKING_BEGIN, STAGE_TRACKING_END, UPDATE_STAGE, PlayerEntity::updateTargeting, VELOCITY_CLEANUP_FULL, VELOCITY_CLEANUP_MIN, and VELOCITY_CLEANUP_RATE.
Referenced by PlayerEntity::update:.
- (void) performLaunchingUpdates: | (OOTimeDelta) | delta_t |
Extends class PlayerEntity.
Definition at line 3929 of file PlayerEntity.m.
References PlayerEntity::checkScript, PlayerEntity::doBookkeeping:, ShipEntity::doScriptEvent:withArgument:, PlayerEntity::setDockingClearanceStatus:, ShipEntity::setStatus:, and UNIVERSE.
Referenced by PlayerEntity::update:.
- (void) performWitchspaceCountdownUpdates: | (OOTimeDelta) | delta_t |
Extends class PlayerEntity.
Definition at line 3822 of file PlayerEntity.m.
References PlayerEntity::doBookkeeping:, PlayerEntity::enterGalacticWitchspace, PlayerEntity::enterWitchspace, EXPECT_NOT, PlayerEntity::nextHopTargetSystemID, OOJSSTR, PlayerEntity::playHyperspaceAborted, ShipEntity::setStatus:, ShipScriptEventNoCx, STAGE_TRACKING_BEGIN, STAGE_TRACKING_END, and UPDATE_STAGE.
Referenced by PlayerEntity::update:.
- (void) performWitchspaceExitUpdates: | (OOTimeDelta) | delta_t |
Extends class PlayerEntity.
Definition at line 3886 of file PlayerEntity.m.
References PlayerEntity::checkScript, PlayerEntity::doBookkeeping:, ShipEntity::doScriptEvent:withArgument:, PlayerEntity::jumpCause, ShipEntity::resetExhaustPlumes, PlayerEntity::resetScriptTimer, ShipEntity::setScriptedMisjump:, ShipEntity::setScriptedMisjumpRange:, ShipEntity::setStatus:, and UNIVERSE.
Referenced by PlayerEntity::update:.
- (void) prepareMarkedDestination: | (NSMutableDictionary *) | ||
markers: | (NSDictionary *) | marker |
Extends class PlayerEntity.
Definition at line 8724 of file PlayerEntity.m.
References nil.
- (void) setExtraEquipmentFromFlags |
Extends class PlayerEntity.
References checkScriptsIfAppropriate, fuelRequiredForJump, gameOverFadeToBW, hyperspaceJumpDistance, noteCompassLostTarget, setExtraEquipmentFromFlags, showGameOver, showMarketCashAndLoadLine, showMarketScreenHeaders, updateAlertCondition, updateAlertConditionForNearbyEntities, updateMovementFlags, updateTargeting, updateWormholes, witchEnd, and witchStart.
Referenced by setExtraEquipmentFromFlags.
- (void) showGameOver |
Extends class PlayerEntity.
Definition at line 4053 of file PlayerEntity.m.
References ShipEntity::resetShotTime, and showGameOver.
Referenced by PlayerEntity::doBookkeeping:, PlayerEntity::getDestroyedBy:damageType:, setExtraEquipmentFromFlags, and showGameOver.
- (void) showMarketCashAndLoadLine |
Extends class PlayerEntity.
Definition at line 11351 of file PlayerEntity.m.
References GuiDisplayGen::colorFromSetting:defaultValue:, ShipEntity::maxAvailableCargoSpace, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setText:forRow:, showMarketCashAndLoadLine, and OOColor::yellowColor.
Referenced by setExtraEquipmentFromFlags, PlayerEntity::setGuiToMarketInfoScreen, PlayerEntity::setGuiToMarketScreen, and showMarketCashAndLoadLine.
- (void) showMarketScreenDataLine: | (OOGUIRow) | row | |
forGood: | (OOCommodityType) | good | |
inMarket: | (OOCommodityMarket *) | localMarket | |
holdQuantity: | (OOCargoQuantity) | quantity |
Extends class PlayerEntity.
Definition at line 10957 of file PlayerEntity.m.
References GuiDisplayGen::colorFromSetting:defaultValue:, DESC, DisplayStringForMassUnit(), OOCommodityMarket::exportLegalityForGood:, OOCommodityMarket::importLegalityForGood:, nil, OOPadStringToEms(), OOCommodityMarket::priceForGood:, OOCommodityMarket::quantityForGood:, GuiDisplayGen::setArray:forRow:, GuiDisplayGen::setColor:forRow:, and GuiDisplayGen::setKey:forRow:.
Referenced by PlayerEntity::setGuiToMarketInfoScreen, and PlayerEntity::setGuiToMarketScreen.
- (void) showMarketScreenHeaders |
Extends class PlayerEntity.
Definition at line 10935 of file PlayerEntity.m.
References GuiDisplayGen::colorFromSetting:defaultValue:, OOColor::greenColor, GuiDisplayGen::overrideTabs:from:length:, GuiDisplayGen::setArray:forRow:, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setTabStops:, and showMarketScreenHeaders.
Referenced by setExtraEquipmentFromFlags, PlayerEntity::setGuiToMarketInfoScreen, PlayerEntity::setGuiToMarketScreen, and showMarketScreenHeaders.
- (BOOL) tryBuyingItem: | (NSString *) | eqKey |
Extends class PlayerEntity.
Definition at line 10341 of file PlayerEntity.m.
References PlayerEntity::addEquipmentItem:withValidation:inContext:, PlayerEntity::adjustPriceByScriptForEqKey:withCurrent:, PlayerEntity::changePassengerBerths:, ShipEntity::clearSubEntities, OOEquipmentType::damagedIdentifier, PlayerEntity::dockedStation, ShipEntity::doScriptEvent:withArgument:, PlayerEntity::doTradeIn:forPriceFactor:, ENERGY_UNIT_NAVAL, ENERGY_UNIT_NAVAL_DAMAGED, ENERGY_UNIT_NONE, ENERGY_UNIT_NORMAL, ENERGY_UNIT_NORMAL_DAMAGED, StationEntity::equipmentPriceFactor, OOEquipmentType::equipmentTypeWithIdentifier:, StationEntity::equivalentTechLevel, ShipEntity::fuel, ShipEntity::fuelCapacity, kOOLogBuyMountedFailed, kOOLogBuyMountedOK, PlayerEntity::mountMissile:, nil, OOLog, OOWeaponTypeFromEquipmentIdentifierStrict(), PASSENGER_BERTH_SPACE, OOEquipmentType::price, PlayerEntity::removeEquipmentItem:, PlayerEntity::removeMissiles, PlayerEntity::renovationCosts, PlayerEntity::safeAllMissiles, PlayerEntity::setActiveMissile:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, ShipEntity::setUpSubEntities, PlayerEntity::tidyMissilePylons, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_NONE, WEAPON_FACING_PORT, and WEAPON_FACING_STARBOARD.
- (void) updateAlertCondition |
Extends class PlayerEntity.
Definition at line 3423 of file PlayerEntity.m.
References ALERT_CONDITION_DOCKED, ALERT_CONDITION_GREEN, ALERT_CONDITION_RED, ALERT_CONDITION_YELLOW, PlayerEntity::alertCondition, PLAYER_FLEEING_CARGO, PLAYER_FLEEING_LIKELY, PLAYER_FLEEING_MAYBE, PLAYER_FLEEING_NONE, PLAYER_FLEEING_UNLIKELY, ShipScriptEventNoCx, updateAlertCondition, and PlayerEntity::updateAlertConditionForNearbyEntities.
Referenced by setExtraEquipmentFromFlags, PlayerEntity::setMassLockable:, PlayerEntity::update:, and updateAlertCondition.
- (void) updateAlertConditionForNearbyEntities |
Extends class PlayerEntity.
Definition at line 3212 of file PlayerEntity.m.
References PlayerEntity::checkEntityForMassLock:withScanClass:, PlayerEntity::clearAlertFlags, Entity::collisionRadius, PlayerEntity::dialAltitude, EXPECT_NOT, ShipEntity::hasHostileTarget, ShipEntity::hullHeatLevel, Entity::isShip, MAX_HYPERSPEED_FACTOR, MIN_HYPERSPEED_FACTOR, nil, ShipEntity::primaryTarget, Entity::scanClass, SCANNER_MAX_RANGE, SCANNER_MAX_RANGE2, PlayerEntity::setAlertFlag:to:, UNIVERSE, updateAlertConditionForNearbyEntities, and Entity::zero_distance.
Referenced by setExtraEquipmentFromFlags, updateAlertCondition, and updateAlertConditionForNearbyEntities.
- (void) updateClocks: | (OOTimeDelta) | delta_t |
Extends class PlayerEntity.
Definition at line 3483 of file PlayerEntity.m.
References ShipEntity::doScriptEvent:withArgument:, int(), MINIMUM_GAME_TICK, and UNIVERSE.
Referenced by PlayerEntity::update:.
- (void) updateFuelScoops: | (OOTimeDelta) | delta_t |
Extends class PlayerEntity.
Definition at line 3469 of file PlayerEntity.m.
References PlayerEntity::updateFuelScoopSoundWithInterval:.
Referenced by PlayerEntity::update:.
- (void) updateMovementFlags |
Extends class PlayerEntity.
Definition at line 3203 of file PlayerEntity.m.
References updateMovementFlags.
Referenced by setExtraEquipmentFromFlags, PlayerEntity::update:, and updateMovementFlags.
- (void) updateTargeting |
Extends class PlayerEntity.
Definition at line 4143 of file PlayerEntity.m.
References PlayerEntity::addTarget:, PlayerEntity::clockTimeAdjusted, WormholeEntity::destination, DESTROY, Entity::dumpState, WormholeEntity::estimatedArrivalTime, kOOLogInconsistentState, MISSILE_STATUS_ARMED, MISSILE_STATUS_SAFE, nil, ShipEntity::noteLostTarget, OOLog, PlayerEntity::playTargetLost, ShipEntity::primaryTarget, WormholeEntity::setScanInfo:, WormholeEntity::setScannedAt:, STAGE_TRACKING_BEGIN, STAGE_TRACKING_END, UPDATE_STAGE, updateTargeting, WH_SCANINFO_ARRIVAL_TIME, WH_SCANINFO_COLLAPSE_TIME, WH_SCANINFO_DESTINATION, WH_SCANINFO_NONE, WH_SCANINFO_SCANNED, and WH_SCANINFO_SHIP.
Referenced by performInFlightUpdates:, setExtraEquipmentFromFlags, and updateTargeting.
- (void) updateTrumbles: | (OOTimeDelta) | delta_t |
Extends class PlayerEntity.
Definition at line 3596 of file PlayerEntity.m.
References PlayerEntity::trumbleArray, and OOTrumble::updateTrumble:.
Referenced by PlayerEntity::update:.
- (void) updateWormholes |
Extends class PlayerEntity.
Definition at line 13240 of file PlayerEntity.m.
References PlayerEntity::clockTimeAdjusted, count, WormholeEntity::disgorgeShips, nil, and updateWormholes.
Referenced by setExtraEquipmentFromFlags, PlayerEntity::update:, and updateWormholes.
- (void) witchEnd |
Extends class PlayerEntity.
Definition at line 7390 of file PlayerEntity.m.
References witchEnd.
Referenced by PlayerEntity::enterGalacticWitchspace, setExtraEquipmentFromFlags, witchEnd, and witchJumpTo:misjump:.
- (void) witchJumpTo: | (OOSystemID) | sTo | |
misjump: | (BOOL) | misjump |
Extends class PlayerEntity.
Definition at line 7772 of file PlayerEntity.m.
References PlayerEntity::adjustTradeInFactorBy:, distanceBetweenPlanetPositions(), PlayerEntity::erodeReputation, PlayerEntity::playWitchjumpMisjump, PointFromString(), randf(), OOSunEntity::resetNova, PlayerEntity::setBounty:withReason:, PlayerEntity::setInfoSystemID:moveChart:, PlayerEntity::setSystemID:, UNIVERSE, PlayerEntity::witchEnd, and PlayerEntity::witchStart.
Referenced by PlayerEntity::enterWitchspace, and PlayerEntity::enterWormhole:.
- (void) witchStart |
Extends class PlayerEntity.
Definition at line 7345 of file PlayerEntity.m.
References PlayerEntity::currentWeaponStats, DESTROY, PlayerEntity::disengageAutopilot, kOOLogInconsistentState, nil, ShipEntity::noteLostTarget, PlayerEntity::noteSwitchToView:fromView:, OOLog, ranrot_rand, PlayerEntity::safeAllMissiles, ShipEntity::transitionToAegisNone, WEAPON_FACING_FORWARD, and witchStart.
Referenced by PlayerEntity::enterGalacticWitchspace, setExtraEquipmentFromFlags, witchJumpTo:misjump:, and witchStart.