![]() |
Oolite 1.91.0.7658-250404-b1488af
|
#include <StationEntity.h>
Definition at line 52 of file StationEntity.h.
- (void) abortAllDockings |
Definition at line 367 of file StationEntity.m.
References _shipsOnHold, DockEntity::abortAllDockings, abortAllDockings, DOCKING_CLEARANCE_STATUS_REQUESTED, dockSubEntityEnumerator, ShipEntity::doScriptEvent:, OOWeakSet::makeObjectsPerformSelector:withObject:, AI::message:, nil, PLAYER, OOWeakSet::removeAllObjects, ShipEntity::sendExpandedMessage:toShip:, and PlayerEntity::setDockingClearanceStatus:.
Referenced by abortAllDockings, allegiance, launchDefenseShip, launchPirateShip, launchPolice, StationAbortAllDockings(), and StationLaunchShipWithRole().
- (void) abortDockingForShip: | (ShipEntity *) | ship |
Definition at line 603 of file StationEntity.m.
References DockEntity::abortDockingForShip:, dockSubEntityEnumerator, ShipEntity::doScriptEvent:, Entity::isPlayer, nil, player_reserved_dock, OOWeakSet::removeObject:, sanityCheckShipsOnApproach, and ShipEntity::sendAIMessage:.
Referenced by StationAbortDockingForShip().
|
implementation |
Reimplemented from ShipEntity.
Provided by category StationEntity(OOAIPrivate).
Definition at line 2908 of file ShipEntityAI.m.
- (NSString *) acceptDockingClearanceRequestFrom: | (ShipEntity *) | other |
Definition at line 2044 of file StationEntity.m.
References ShipEntity::bounty, OOJSScript::callMethod:inContext:withArguments:count:result:, DockEntity::canAcceptShipForDocking:, PlayerEntity::clockTime, currentlyInDockingQueues, currentlyInLaunchingQueues, ShipEntity::displayName, DOCKING_CLEARANCE_STATUS_GRANTED, DOCKING_CLEARANCE_STATUS_NONE, DOCKING_CLEARANCE_STATUS_NOT_REQUIRED, DOCKING_CLEARANCE_STATUS_REQUESTED, DOCKING_CLEARANCE_STATUS_TIMING_OUT, DOCKING_CLEARANCE_WINDOW, dockSubEntityEnumerator, ShipEntity::doScriptEvent:, ShipEntity::doScriptEvent:withArgument:, hasClearDock, hasEligibleDock, hasHostileTarget, hasMultipleDocks, Entity::isPlayer, last_launch_time, AI::message:, nil, no_docking_while_launching, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromNativeObject(), PLAYER, player_reserved_dock, AI::reactToMessage:context:, requiresDockingClearance, sanityCheckShipsOnApproach, ShipEntity::script, selectDockForDocking, ShipEntity::sendExpandedMessage:toShip:, PlayerEntity::setDockingClearanceStatus:, and UNIVERSE.
Referenced by PlayerEntity::cancelDockingRequest:, and PlayerEntity::performDockingRequest:.
- (void) acceptPatrolReportFrom: | (ShipEntity *) | patrol_ship |
Definition at line 2036 of file StationEntity.m.
References last_patrol_report_time.
Referenced by launchPatrol, ShipEntity(PureAI)::patrolReportIn, and ShipPatrolReportIn().
|
implementation |
Provided by category StationEntity(OOPrivate).
Definition at line 1095 of file StationEntity.m.
References DockEntity::addShipToLaunchQueue:withPriority:, nil, and OOLog.
Referenced by launchDefenseShip, launchEscort, launchIndependentShip:, launchMiner, launchPatrol, launchPirateShip, launchPolice, launchScavenger, launchShipWithRole:, and launchShuttle.
|
implementation |
Provided by category StationEntity(OOPrivate).
Definition at line 1248 of file StationEntity.m.
Referenced by noteDockedShip:.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1346 of file StationEntity.m.
References ShipEntity::adjustVelocity:, and UNIVERSE.
- (OOStationAlertLevel) alertLevel |
References alertLevel, decreaseAlertLevel, increaseAlertLevel, launchDefenseShip, launchEscort, launchMiner, launchPatrol, launchPirateShip, launchPolice, launchScavenger, and launchShuttle.
- (NSString *) allegiance |
References abortAllDockings, allegiance, autoDockShipsOnApproach, clear, clearDockingCorridor, countOfDockedContractors, countOfDockedDefenders, countOfDockedPolice, currentlyInDockingQueues, currentlyInLaunchingQueues, dockingCorridorIsEmpty, hasClearDock, hasLaunchDock, hasMultipleDocks, sanityCheckShipsOnApproach, and selectDockForDocking.
- (BOOL) allowsAutoDocking |
References allowsAutoDocking.
- (BOOL) allowsFastDocking |
References allowsFastDocking.
- (BOOL) allowsSaving |
References allowsSaving, hasShipyard, isRotatingStation, marketOverrideName, and suppressArrivalReports.
- (void) autoDockShipsOnApproach |
Definition at line 416 of file StationEntity.m.
References DockEntity::autoDockShipsOnApproach, autoDockShipsOnApproach, autoDockShipsOnHold, dockSubEntityEnumerator, ShipEntity::doScriptEvent:, AI::message:, and nil.
Referenced by allegiance, autoDockShipsOnApproach, and PlayerEntity::leaveDock:.
|
implementation |
Definition at line 403 of file StationEntity.m.
References autoDockShipsOnHold, nil, OOWeakSet::objectEnumerator, pullInShipIfPermitted:, and OOWeakSet::removeAllObjects.
Referenced by autoDockShipsOnApproach, and autoDockShipsOnHold.
- (HPVector) beaconPosition |
Definition at line 116 of file StationEntity.m.
References beaconPosition, Entity::orientation, Entity::position, and vector_forward_from_quaternion().
Referenced by beaconPosition, and equivalentTechLevel.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 2022 of file StationEntity.m.
References ShipEntity::becomeEnergyBlast, becomeEnergyBlast, and UNIVERSE.
Referenced by becomeEnergyBlast.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1994 of file StationEntity.m.
References ShipEntity::becomeExplosion, becomeExplosion, ShipEntity::being_mined, PlayerEntity::leaveDock:, PLAYER, ShipEntity::scanClass, ShipEntity::setPrimaryRole:, Entity::status, UNIVERSE, and PlayerEntity::warnAboutHostiles.
Referenced by becomeExplosion.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 2029 of file StationEntity.m.
References ShipEntity::becomeLargeExplosion:, and UNIVERSE.
- (void) clear |
Definition at line 999 of file StationEntity.m.
References DockEntity::clear, clear, dockSubEntityEnumerator, nil, and OOWeakSet::removeAllObjects.
Referenced by allegiance, clear, Universe::removeAllEntitiesExceptPlayer, and Universe::setUpUniverseFromStation.
- (void) clearDockingCorridor |
Definition at line 855 of file StationEntity.m.
References DockEntity::clearDockingCorridor, clearDockingCorridor, dockSubEntityEnumerator, nil, and UNIVERSE.
Referenced by allegiance, clearDockingCorridor, and PlayerEntity::leaveDock:.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1281 of file StationEntity.m.
References ShipEntity::collideWithShip:.
- (unsigned) countOfDockedContractors |
Definition at line 287 of file StationEntity.m.
References countOfDockedContractors, max_scavengers, and scavengers_launched.
Referenced by allegiance, and countOfDockedContractors.
- (unsigned) countOfDockedDefenders |
Definition at line 299 of file StationEntity.m.
References countOfDockedDefenders, defenders_launched, and max_defense_ships.
Referenced by allegiance, and countOfDockedDefenders.
- (unsigned) countOfDockedPolice |
Definition at line 293 of file StationEntity.m.
References countOfDockedPolice, defenders_launched, and max_police.
Referenced by allegiance, and countOfDockedPolice.
|
implementation |
Provided by category StationEntity(OOPrivate).
Definition at line 1158 of file StationEntity.m.
References DockEntity::countOfShipsInLaunchQueueWithPrimaryRole:, and nil.
Referenced by launchMiner, and launchScavenger.
- (unsigned) currentlyInDockingQueues |
Definition at line 2259 of file StationEntity.m.
References OOWeakSet::count, DockEntity::countOfShipsInDockingQueue, currentlyInDockingQueues, dockSubEntityEnumerator, and nil.
Referenced by acceptDockingClearanceRequestFrom:, allegiance, currentlyInDockingQueues, noteDockedShip:, and update:.
- (unsigned) currentlyInLaunchingQueues |
Definition at line 2273 of file StationEntity.m.
References DockEntity::countOfShipsInLaunchQueue, currentlyInLaunchingQueues, dockSubEntityEnumerator, and nil.
Referenced by acceptDockingClearanceRequestFrom:, allegiance, currentlyInLaunchingQueues, and noteDockedShip:.
|
implementation |
Provided by category StationEntity(mwDebug).
|
implementation |
Provided by category StationEntity(mwDebug).
|
implementation |
Provided by category StationEntity(mwDebug).
|
implementation |
Reimplemented from ShipEntity.
Definition at line 646 of file StationEntity.m.
References _shipsOnHold, allegiance, ShipEntity::dealloc, dealloc, DESTROY, localInterfaces, localMarket, localShipyard, marketDefinition, and marketScriptName.
Referenced by dealloc.
- (void) decreaseAlertLevel |
Definition at line 1509 of file StationEntity.m.
References alertLevel, decreaseAlertLevel, and setAlertLevel:signallingScript:.
Referenced by alertLevel, decreaseAlertLevel, and StationDecreaseAlertLevel().
|
implementation |
Reimplemented from ShipEntity.
Definition at line 2428 of file StationEntity.m.
References ShipEntity::descriptionComponents, and descriptionComponents.
Referenced by descriptionComponents.
- (BOOL) dockingCorridorIsEmpty |
Definition at line 837 of file StationEntity.m.
References dockingCorridorIsEmpty, dockSubEntityEnumerator, nil, and UNIVERSE.
Referenced by allegiance, dockingCorridorIsEmpty, and dumpSelfState.
- (NSDictionary *) dockingInstructionsForShip: | (ShipEntity *) | ship |
Definition at line 472 of file StationEntity.m.
References OOJSScript::callMethod:inContext:withArguments:count:result:, DockEntity::canAcceptShipForDocking:, DockEntity::countOfShipsInDockingQueue, DOCKING_CLEARANCE_STATUS_REQUESTED, DockEntity::dockingInstructionsForShip:, dockSubEntityEnumerator, ShipEntity::doScriptEvent:withArgument:, ShipEntity::flightPitch, ShipEntity::flightRoll, ShipEntity::flightYaw, PlayerEntity::getDockingClearanceStatus, PlayerEntity::getTargetDockStation, holdPositionInstructionForShip:, Entity::isPlayer, ShipEntity::legalStatus, nil, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromNativeObject(), OOMakeDockingInstructions(), PLAYER, player_reserved_dock, Entity::position, AI::reactToMessage:context:, OOWeakSet::removeObject:, ShipEntity::script, and ShipEntity::velocity.
Referenced by ShipEntity(AI)::requestDockingCoordinates.
- (NSEnumerator *) dockSubEntityEnumerator |
Definition at line 305 of file StationEntity.m.
References dockSubEntityEnumerator, and ShipEntity::subEntities.
Referenced by abortAllDockings, abortDockingForShip:, acceptDockingClearanceRequestFrom:, autoDockShipsOnApproach, clear, clearDockingCorridor, currentlyInDockingQueues, currentlyInLaunchingQueues, dockingCorridorIsEmpty, dockingInstructionsForShip:, dockSubEntityEnumerator, equivalentTechLevel, fitsInDock:andLogNoFit:, hasClearDock, hasEligibleDock, hasLaunchDock, hasMultipleDocks, launchShip:, noteDockedShip:, portUpVectorForShip:, sanityCheckShipsOnApproach, selectDockForDocking, setUpSubEntities, and shipIsInDockingCorridor:.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 2434 of file StationEntity.m.
References _shipsOnHold, ADD_FLAG_IF_SET, alertLevel, count, defenders_launched, ShipEntity::displayName, docked_shuttles, docked_traders, dockingCorridorIsEmpty, ShipEntity::dumpSelfState, dumpSelfState, equipmentPriceFactor, equivalentTechLevel, isRotatingStation, max_defense_ships, max_police, max_scavengers, nil, no_docking_while_launching, OOWeakSet::objectEnumerator, OOLog, OOLogIndent(), OOLogOutdent(), Entity::position, ShipEntity::primaryRole, scavengers_launched, STATION_ALERT_LEVEL_GREEN, STATION_ALERT_LEVEL_RED, and STATION_ALERT_LEVEL_YELLOW.
Referenced by dumpSelfState.
- (float) equipmentPriceFactor |
References equipmentPriceFactor.
- (OOTechLevelID) equivalentTechLevel |
References beaconPosition, dockSubEntityEnumerator, equivalentTechLevel, playerReservedDock, and virtualPortDimensions.
- (BOOL) fitsInDock: | (ShipEntity *) | ship |
Definition at line 1170 of file StationEntity.m.
References fitsInDock:andLogNoFit:.
- (BOOL) fitsInDock: | (ShipEntity *) | ship | |
andLogNoFit: | (BOOL) | logNoFit |
Definition at line 1176 of file StationEntity.m.
References ShipEntity::displayName, dockSubEntityEnumerator, Entity::isShip, nil, OOLog, and ShipEntity::primaryRole.
Referenced by fitsInDock:, and StationCanDockShip().
- (void) generateShipyard |
Definition at line 2375 of file StationEntity.m.
References equivalentTechLevel, generateShipyard, and generateShipyard:.
Referenced by generateShipyard, generateShipyard:, localShipyard, StationAddShipToShipyard(), StationGetProperty(), and StationRemoveShipFromShipyard().
- (void) generateShipyard: | (OOTechLevelID) | stationTechLevel |
Definition at line 2381 of file StationEntity.m.
References generateShipyard, localShipyard, nil, PLAYER, and setLocalShipyard:.
Referenced by generateShipyard, and PlayerEntity(Contracts)::setGuiToShipyardScreen:.
|
implementation |
Reimplemented from ShipEntity.
Provided by category StationEntity(OOJavaScriptExtensions).
Definition at line 215 of file OOJSStation.m.
- (BOOL) hasBreakPattern |
References hasBreakPattern.
- (BOOL) hasClearDock |
Definition at line 1030 of file StationEntity.m.
References dockSubEntityEnumerator, hasClearDock, nil, and PLAYER.
Referenced by acceptDockingClearanceRequestFrom:, allegiance, hasClearDock, noteDockedShip:, and update:.
|
implementation |
Definition at line 1048 of file StationEntity.m.
References dockSubEntityEnumerator, hasEligibleDock, nil, and PLAYER.
Referenced by acceptDockingClearanceRequestFrom:, and hasEligibleDock.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1294 of file StationEntity.m.
References alertLevel, ShipEntity::hasHostileTarget, hasHostileTarget, nil, ShipEntity::primaryTarget, STATION_ALERT_LEVEL_RED, and STATION_ALERT_LEVEL_YELLOW.
Referenced by acceptDockingClearanceRequestFrom:, and hasHostileTarget.
- (BOOL) hasLaunchDock |
Definition at line 1065 of file StationEntity.m.
References dockSubEntityEnumerator, hasLaunchDock, and nil.
Referenced by allegiance, hasLaunchDock, launchDefenseShip, launchEscort, launchIndependentShip:, launchMiner, launchPatrol, launchPirateShip, launchPolice, launchScavenger, launchShipWithRole:, and launchShuttle.
- (BOOL) hasMultipleDocks |
Definition at line 1012 of file StationEntity.m.
References dockSubEntityEnumerator, hasMultipleDocks, and nil.
Referenced by acceptDockingClearanceRequestFrom:, allegiance, hasMultipleDocks, and update:.
- (BOOL) hasNPCTraffic |
References hasNPCTraffic.
- (BOOL) hasShipyard |
Definition at line 2347 of file StationEntity.m.
References hasShipyard, OOFuzzyBooleanFromObject(), and UNIVERSE.
Referenced by allowsSaving, and hasShipyard.
|
implementation |
Provided by category StationEntity(OOPrivate).
Definition at line 591 of file StationEntity.m.
References nil, OOMakeDockingInstructions(), and ShipEntity::sendExpandedMessage:toShip:.
Referenced by dockingInstructionsForShip:.
- (void) increaseAlertLevel |
Definition at line 1502 of file StationEntity.m.
References alertLevel, increaseAlertLevel, and setAlertLevel:signallingScript:.
Referenced by alertLevel, increaseAlertLevel, StationIncreaseAlertLevel(), and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (OOCommodityMarket *) initialiseLocalMarket |
Definition at line 264 of file StationEntity.m.
References DESTROY, initialiseLocalMarket, and localMarket.
Referenced by PlayerEntity::docked, initialiseLocalMarket, PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, localInterfaces, PlayerEntity::localMarket, Universe::reinitAndShowDemo:, and update:.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 628 of file StationEntity.m.
References _shipsOnHold, hasBreakPattern, ShipEntity::initWithKey:definition:, Entity::isStation, localInterfaces, nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
- (BOOL) interstellarUndockingAllowed |
References interstellarUndockingAllowed.
- (BOOL) isRotatingStation |
Definition at line 2329 of file StationEntity.m.
References isRotatingStation, and ShipEntity::shipinfoDictionary.
Referenced by allowsSaving, dumpSelfState, and isRotatingStation.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 79 of file StationEntity.m.
References ShipEntity::isExplicitlyUnpiloted, ShipEntity::isHulk, and isUnpiloted.
Referenced by isUnpiloted.
- (ShipEntity *) launchDefenseShip |
Definition at line 1581 of file StationEntity.m.
References abortAllDockings, addShipToLaunchQueue:withPriority:, ShipEntity::addTarget:, ShipEntity::crew, defenders_launched, ShipEntity::displayName, equivalentTechLevel, ShipEntity::group, hasLaunchDock, ShipEntity::heatInsulation, ShipEntity::isPolice, launchDefenseShip, max_defense_ships, nil, ShipEntity::noteLostTarget, OOLog, ShipEntity::primaryTarget, Ranrot(), ShipEntity::scanClass, ShipEntity::setGroup:, ShipEntity::setHeatInsulation:, ShipEntity::setOwner:, ShipEntity::setPrimaryRole:, Entity::setScanClass:, ShipEntity::setSingleCrewWithRole:, ShipEntity::stationGroup, ShipEntity::switchAITo:, and UNIVERSE.
Referenced by StationEntity(OOAIPrivate)::acceptDistressMessageFrom:, alertLevel, launchDefenseShip, and StationLaunchDefenseShip().
- (ShipEntity *) launchEscort |
Definition at line 1882 of file StationEntity.m.
References addShipToLaunchQueue:withPriority:, ShipEntity::crew, ShipEntity::displayName, hasLaunchDock, launchEscort, nil, OOLog, ShipEntity::setCargoFlag:, Entity::setScanClass:, ShipEntity::setSingleCrewWithRole:, and ShipEntity::switchAITo:.
Referenced by alertLevel, launchEscort, and StationLaunchEscort().
- (ShipEntity *) launchIndependentShip: | (NSString *) | role |
Definition at line 1416 of file StationEntity.m.
References addShipToLaunchQueue:withPriority:, ShipEntity::crew, ShipEntity::displayName, ShipEntity::escortGroup, ShipEntity::fuel, ShipEntity::group, hasLaunchDock, nil, OOLog, ShipEntity::pendingEscortCount, randf(), ShipEntity::scanClass, ShipEntity::setBounty:withReason:, ShipEntity::setCargoFlag:, ShipEntity::setFuel:, ShipEntity::setGroup:, OOShipGroup::setLeader:, ShipEntity::setOwner:, ShipEntity::setPendingEscortCount:, ShipEntity::setPrimaryRole:, Entity::setScanClass:, ShipEntity::setSingleCrewWithRole:, and ShipEntity::setUpEscorts.
Referenced by StationLaunchShipWithRole(), and update:.
- (ShipEntity *) launchMiner |
Definition at line 1736 of file StationEntity.m.
References addShipToLaunchQueue:withPriority:, countOfShipsInLaunchQueueWithPrimaryRole:, ShipEntity::crew, ShipEntity::displayName, hasLaunchDock, ShipEntity::heatInsulation, launchMiner, max_scavengers, nil, OOLog, scavengers_launched, ShipEntity::setGroup:, ShipEntity::setHeatInsulation:, Entity::setScanClass:, ShipEntity::setSingleCrewWithRole:, ShipEntity::stationGroup, and ShipEntity::switchAITo:.
Referenced by alertLevel, launchMiner, and StationLaunchMiner().
- (ShipEntity *) launchPatrol |
Reimplemented from ShipEntity.
Definition at line 1913 of file StationEntity.m.
References acceptPatrolReportFrom:, addShipToLaunchQueue:withPriority:, ShipEntity::crew, defenders_launched, ShipEntity::displayName, equivalentTechLevel, hasLaunchDock, ShipEntity::heatInsulation, launchPatrol, max_police, nil, OOLog, Ranrot(), ShipEntity::scanClass, ShipEntity::setBounty:withReason:, ShipEntity::setGroup:, ShipEntity::setHeatInsulation:, ShipEntity::setPrimaryRole:, Entity::setScanClass:, ShipEntity::setSingleCrewWithRole:, ShipEntity::stationGroup, ShipEntity::switchAITo:, and ShipEntity::switchLightsOff.
Referenced by alertLevel, launchPatrol, StationLaunchPatrol(), and update:.
- (ShipEntity *) launchPirateShip |
Lazygun** added the following line
Lazygun** added the following method. A complete rip-off of launchDefenseShip.
Definition at line 1785 of file StationEntity.m.
References abortAllDockings, addShipToLaunchQueue:withPriority:, ShipEntity::addTarget:, ShipEntity::crew, defenders_launched, ShipEntity::displayName, hasLaunchDock, ShipEntity::heatInsulation, launchPirateShip, max_defense_ships, nil, ShipEntity::noteLostTarget, OOLog, ShipEntity::primaryTarget, ShipEntity::setBounty:withReason:, ShipEntity::setGroup:, ShipEntity::setHeatInsulation:, ShipEntity::setOwner:, ShipEntity::setPrimaryRole:, Entity::setScanClass:, ShipEntity::setSingleCrewWithRole:, ShipEntity::stationGroup, and UNIVERSE.
Referenced by alertLevel, launchPirateShip, and StationLaunchPirateShip().
- (NSArray *) launchPolice |
Definition at line 1516 of file StationEntity.m.
References abortAllDockings, addShipToLaunchQueue:withPriority:, ShipEntity::addTarget:, ShipEntity::crew, defenders_launched, ShipEntity::displayName, equivalentTechLevel, hasLaunchDock, ShipEntity::heatInsulation, launchPolice, max_police, nil, ShipEntity::noteLostTarget, OOLog, ShipEntity::primaryTarget, Ranrot(), ShipEntity::scanClass, ShipEntity::setBounty:withReason:, ShipEntity::setGroup:, ShipEntity::setHeatInsulation:, ShipEntity::setPrimaryRole:, Entity::setScanClass:, ShipEntity::setSingleCrewWithRole:, ShipEntity::stationGroup, ShipEntity::switchAITo:, and UNIVERSE.
Referenced by alertLevel, launchPolice, StationLaunchPolice(), and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
- (ShipEntity *) launchScavenger |
Definition at line 1691 of file StationEntity.m.
References addShipToLaunchQueue:withPriority:, countOfShipsInLaunchQueueWithPrimaryRole:, ShipEntity::crew, ShipEntity::displayName, hasLaunchDock, ShipEntity::heatInsulation, launchScavenger, max_scavengers, nil, OOLog, scavengers_launched, ShipEntity::setGroup:, ShipEntity::setHeatInsulation:, Entity::setScanClass:, ShipEntity::setSingleCrewWithRole:, ShipEntity::stationGroup, and ShipEntity::switchAITo:.
Referenced by alertLevel, launchScavenger, and StationLaunchScavenger().
- (void) launchShip: | (ShipEntity *) | ship |
Definition at line 332 of file StationEntity.m.
References dockSubEntityEnumerator, DockEntity::launchShip:, and nil.
Referenced by PlayerEntity::leaveDock:, and ShipEntity::leaveDock:.
- (void) launchShipWithRole: | (NSString *) | role |
Definition at line 1969 of file StationEntity.m.
References addShipToLaunchQueue:withPriority:, ShipEntity::crew, ShipEntity::displayName, hasLaunchDock, OOLog, ShipEntity::scanClass, ShipEntity::setGroup:, ShipEntity::setPrimaryRole:, Entity::setScanClass:, ShipEntity::setSingleCrewWithRole:, and ShipEntity::stationGroup.
- (ShipEntity *) launchShuttle |
Definition at line 1844 of file StationEntity.m.
References addShipToLaunchQueue:withPriority:, ShipEntity::crew, ShipEntity::displayName, docked_shuttles, hasLaunchDock, launchShuttle, nil, OOLog, ShipEntity::setCargoFlag:, Entity::setScanClass:, ShipEntity::setSingleCrewWithRole:, and ShipEntity::switchAITo:.
Referenced by alertLevel, launchShuttle, StationLaunchShuttle(), and update:.
- (OOCreditsQuantity) legalStatusOfManifest: | (OOCommodityMarket *) | manifest | |
export: | (BOOL) | export |
Definition at line 170 of file StationEntity.m.
References OOCommodityMarket::exportLegalityForGood:, OOCommodityMarket::importLegalityForGood:, localMarket, nil, OOCommodityMarket::quantityForGood:, and Entity::status.
Referenced by PlayerEntity::docked, and PlayerEntity::leaveDock:.
- (NSMutableDictionary *) localInterfaces |
- (OOCommodityMarket *) localMarket |
- (NSDictionary *) localMarketForScripting |
Definition at line 213 of file StationEntity.m.
References OOCommodityMarket::dictionaryForScripting, localMarket, and localMarketForScripting.
Referenced by localMarket, localMarketForScripting, and StationGetProperty().
- (NSMutableArray *) localShipyard |
- (BOOL) marketBroadcast |
References marketBroadcast.
- (OOCargoQuantity) marketCapacity |
References marketCapacity.
- (NSArray *) marketDefinition |
References marketDefinition.
- (BOOL) marketMonitored |
References marketMonitored.
- (NSString *) marketOverrideName |
Definition at line 2336 of file StationEntity.m.
References marketOverrideName.
Referenced by allowsSaving, and marketOverrideName.
- (NSString *) marketScriptName |
References marketScriptName.
- (void) noteDockedShip: | (ShipEntity *) | ship |
Definition at line 1196 of file StationEntity.m.
References addShipToStationCount:, currentlyInDockingQueues, currentlyInLaunchingQueues, DOCKING_CLEARANCE_STATUS_GRANTED, DOCKING_CLEARANCE_STATUS_REQUESTED, dockSubEntityEnumerator, ShipEntity::doScriptEvent:withArgument:, PlayerEntity::getTargetDockStation, hasClearDock, Entity::isPlayer, last_launch_time, nil, DockEntity::noteDockingForShip:, PLAYER, player_reserved_dock, sanityCheckShipsOnApproach, ShipEntity::sendExpandedMessage:toShip:, and Entity::status.
Referenced by PlayerEntity::enterDock:, and ShipEntity::enterDock:.
|
implementation |
Reimplemented from ShipEntity.
Provided by category StationEntity(OOJavaScriptExtensions).
Definition at line 222 of file OOJSStation.m.
|
implementation |
Definition at line 448 of file StationEntity.m.
References Entity::speed, and OOWeakRefObject::weakRetain.
- (OOPlanetEntity *) planet |
References planet.
- (DockEntity *) playerReservedDock |
Definition at line 110 of file StationEntity.m.
References player_reserved_dock, and playerReservedDock.
Referenced by equivalentTechLevel, and playerReservedDock.
- (Vector) portUpVectorForShip: | (ShipEntity *) | ship |
Definition at line 433 of file StationEntity.m.
References dockSubEntityEnumerator, kZeroVector, nil, and DockEntity::portUpVectorForShipsBoundingBox:.
Referenced by ShipEntity::trackDestination:delta_t:.
|
implementation |
Provided by category StationEntity(OOPrivate).
Definition at line 831 of file StationEntity.m.
References ShipEntity::enterDock:.
Referenced by autoDockShipsOnHold.
- (BOOL) requiresDockingClearance |
References requiresDockingClearance.
- (void) sanityCheckShipsOnApproach |
Definition at line 311 of file StationEntity.m.
References dockSubEntityEnumerator, ShipEntity::doScriptEvent:, AI::message:, nil, DockEntity::pruneAndCountShipsOnApproach, and sanityCheckShipsOnApproach.
Referenced by abortDockingForShip:, acceptDockingClearanceRequestFrom:, allegiance, noteDockedShip:, and sanityCheckShipsOnApproach.
- (DockEntity *) selectDockForDocking |
Definition at line 1080 of file StationEntity.m.
References dockSubEntityEnumerator, nil, and selectDockForDocking.
Referenced by acceptDockingClearanceRequestFrom:, allegiance, selectDockForDocking, and update:.
- (void) setAlertLevel: | (OOStationAlertLevel) | level | |
signallingScript: | (BOOL) | signallingScript |
Definition at line 1384 of file StationEntity.m.
References alertLevel, AI::reactToMessage:context:, ShipScriptEventNoCx, STATION_ALERT_LEVEL_GREEN, STATION_ALERT_LEVEL_RED, and STATION_ALERT_LEVEL_YELLOW.
Referenced by decreaseAlertLevel, increaseAlertLevel, and StationSetProperty().
- (void) setAllegiance: | (NSString *) | newAllegiance |
Definition at line 1371 of file StationEntity.m.
References allegiance.
Referenced by setUpShipFromDictionary:, Universe::setUpSpace, and StationSetProperty().
- (void) setAllowsAutoDocking: | (BOOL) | newValue |
Definition at line 2316 of file StationEntity.m.
References allowsAutoDocking.
Referenced by StationSetProperty().
- (void) setAllowsFastDocking: | (BOOL) | newValue |
Definition at line 2304 of file StationEntity.m.
References allowsFastDocking.
Referenced by Universe::setUpSpace, and StationSetProperty().
- (void) setEquivalentTechLevel: | (OOTechLevelID) | value |
Definition at line 98 of file StationEntity.m.
References equivalentTechLevel.
Referenced by Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:, and Universe::setUpSpace.
- (void) setHasBreakPattern: | (BOOL) | newValue |
Definition at line 2422 of file StationEntity.m.
References hasBreakPattern.
Referenced by StationSetProperty().
- (void) setHasNPCTraffic: | (BOOL) | flag |
Definition at line 1275 of file StationEntity.m.
References hasNPCTraffic.
Referenced by StationSetProperty().
- (void) setInterfaceDefinition: | (OOJSInterfaceDefinition *) | definition | |
forKey: | (NSString *) | key |
Definition at line 251 of file StationEntity.m.
References nil.
Referenced by StationSetInterface().
- (void) setLocalMarket: | (NSArray *) | market |
Definition at line 207 of file StationEntity.m.
References OOCommodityMarket::loadStationAmounts:, and localMarket.
Referenced by PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, and Universe::loadStationMarkets:.
- (void) setLocalShipyard: | (NSArray *) | market |
Definition at line 237 of file StationEntity.m.
References localShipyard.
Referenced by generateShipyard:, and Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
- (void) setPlanet: | (OOPlanetEntity *) | planet |
Definition at line 272 of file StationEntity.m.
References NO_TARGET, and planet.
Referenced by Universe::addEntity:.
- (void) setPrice: | (OOCreditsQuantity) | price | |
forCommodity: | (OOCommodityType) | commodity |
Definition at line 219 of file StationEntity.m.
References localMarket, and OOCommodityMarket::setPrice:forGood:.
Referenced by StationSetMarketPrice().
- (void) setQuantity: | (OOCargoQuantity) | quantity | |
forCommodity: | (OOCommodityType) | commodity |
Definition at line 225 of file StationEntity.m.
References localMarket, and OOCommodityMarket::setQuantity:forGood:.
Referenced by StationSetMarketQuantity().
- (void) setRequiresDockingClearance: | (BOOL) | newValue |
Definition at line 2292 of file StationEntity.m.
References requiresDockingClearance.
Referenced by Universe::setDockingClearanceProtocolActive:, and StationSetProperty().
- (void) setSuppressArrivalReports: | (BOOL) | newValue |
Definition at line 2410 of file StationEntity.m.
References suppress_arrival_reports.
Referenced by StationSetProperty().
|
implementation |
Reimplemented from ShipEntity.
Definition at line 662 of file StationEntity.m.
References alertLevel, allowsAutoDocking, allowsFastDocking, allowsSaving, count, ShipEntity::crew, docked_shuttles, docked_traders, equipmentPriceFactor, equivalentTechLevel, ShipEntity::group, hasNPCTraffic, hasPatrolShips, interstellarUndockingAllowed, Entity::isShip, Entity::isStation, last_patrol_report_time, last_shuttle_launch_time, last_trader_launch_time, marketBroadcast, marketCapacity, marketDefinition, marketMonitored, marketScriptName, max_defense_ships, max_police, max_scavengers, nil, OOEnforceStandards(), OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOStandardsDeprecated(), patrol_launch_interval, port_dimensions, port_radius, ranrot_rand, requiresDockingClearance, setAllegiance:, ShipEntity::setGroup:, ShipEntity::setSingleCrewWithRole:, shuttle_launch_interval, STATION_ALERT_LEVEL_GREEN, ShipEntity::stationGroup, suppress_arrival_reports, and trader_launch_interval.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 758 of file StationEntity.m.
References ShipEntity::displayName, dockSubEntityEnumerator, Entity::isStation, nil, OOLog, OOStandardsDeprecated(), setUpSubEntities, ShipEntity::shipDataKey, and ShipEntity::shipSubEntityEnumerator.
Referenced by setUpSubEntities.
- (BOOL) shipIsInDockingCorridor: | (ShipEntity *) | ship |
Definition at line 811 of file StationEntity.m.
References dockSubEntityEnumerator, Entity::isPlayer, Entity::isShip, nil, and Entity::status.
Referenced by CollisionRegion::findCollisions.
- (BOOL) suppressArrivalReports |
Definition at line 2404 of file StationEntity.m.
References suppress_arrival_reports, and suppressArrivalReports.
Referenced by allowsSaving, and suppressArrivalReports.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1299 of file StationEntity.m.
References ShipEntity::bounty, Entity::energy, ShipEntity::group, ShipEntity::hasNewAI, increaseAlertLevel, Entity::isCascadeWeapon, Entity::isShip, launchPolice, OOShipGroup::leader, ShipEntity::markAsOffender:withReason:, nil, ShipEntity::respondToAttackFrom:becauseOf:, ShipEntity::setFoundTarget:, ShipEntity::setPrimaryAggressor:, ShipEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, and UNIVERSE.
Referenced by PlayerEntity(Scripting)::blowUpStation.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1358 of file StationEntity.m.
References ShipEntity::takeHeatDamage:, and UNIVERSE.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1351 of file StationEntity.m.
References ShipEntity::takeScrapeDamage:from:, and UNIVERSE.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 871 of file StationEntity.m.
References AEGIS_NONE, ShipEntity::aegis_status, approach_spacing, PlayerEntity::clockTime, currentlyInDockingQueues, ShipEntity::displayName, docked_shuttles, docked_traders, DOCKING_CLEARANCE_STATUS_GRANTED, DOCKING_CLEARANCE_STATUS_NOT_REQUIRED, DOCKING_CLEARANCE_STATUS_REQUESTED, DOCKING_CLEARANCE_STATUS_TIMING_OUT, DOCKING_CLEARANCE_WINDOW, ShipEntity::doScriptEvent:, ShipEntity::getAI, PlayerEntity::getTargetDockStation, hasClearDock, hasMultipleDocks, ShipEntity::hasNewAI, hasNPCTraffic, hasPatrolShips, initialiseLocalMarket, last_launch_time, last_patrol_report_time, last_shuttle_launch_time, last_trader_launch_time, launchIndependentShip:, launchPatrol, launchShuttle, localMarket, AI::message:, nil, patrol_launch_interval, PLAYER, player_reserved_dock, ShipEntity::scanClass, selectDockForDocking, ShipEntity::sendExpandedMessage:toShip:, PlayerEntity::setDockingClearanceStatus:, shuttle_launch_interval, Entity::status, trader_launch_interval, and ShipEntity::update:.
- (Vector) virtualPortDimensions |
Definition at line 104 of file StationEntity.m.
References port_dimensions, and virtualPortDimensions.
Referenced by equivalentTechLevel, DockEntity::setDimensionsAndCorridor:docking:ddc:, and virtualPortDimensions.
|
private |
Definition at line 55 of file StationEntity.h.
Referenced by abortAllDockings, dealloc, dumpSelfState, and initWithKey:definition:.
|
private |
Definition at line 1378 of file StationEntity.m.
Referenced by alertLevel, decreaseAlertLevel, dumpSelfState, hasHostileTarget, increaseAlertLevel, setAlertLevel:signallingScript:, and setUpShipFromDictionary:.
|
private |
Definition at line 1365 of file StationEntity.m.
Referenced by allegiance, dealloc, setAllegiance:, and StationGetProperty().
|
private |
Definition at line 2310 of file StationEntity.m.
Referenced by allowsAutoDocking, setAllowsAutoDocking:, and setUpShipFromDictionary:.
|
private |
Definition at line 2298 of file StationEntity.m.
Referenced by allowsFastDocking, setAllowsFastDocking:, and setUpShipFromDictionary:.
|
private |
Definition at line 2322 of file StationEntity.m.
Referenced by allowsSaving, PlayerEntity::setGuiToLoadSaveScreen, and setUpShipFromDictionary:.
|
private |
Definition at line 58 of file StationEntity.h.
Referenced by update:.
|
private |
Definition at line 63 of file StationEntity.h.
Referenced by countOfDockedDefenders, countOfDockedPolice, dumpSelfState, launchDefenseShip, launchPatrol, launchPirateShip, and launchPolice.
|
private |
Definition at line 92 of file StationEntity.h.
Referenced by dumpSelfState, launchShuttle, setUpShipFromDictionary:, and update:.
|
private |
Definition at line 96 of file StationEntity.h.
Referenced by dumpSelfState, setUpShipFromDictionary:, and update:.
|
private |
Definition at line 126 of file StationEntity.m.
Referenced by dumpSelfState, equipmentPriceFactor, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, setUpShipFromDictionary:, and PlayerEntity(OOPrivate)::tryBuyingItem:.
|
private |
Definition at line 85 of file StationEntity.m.
Referenced by PlayerEntity(Scripting)::dockedTechLevel_number, dumpSelfState, equivalentTechLevel, generateShipyard, launchDefenseShip, launchPatrol, launchPolice, setEquivalentTechLevel:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity(Contracts)::setGuiToShipyardScreen:, setUpShipFromDictionary:, and PlayerEntity(OOPrivate)::tryBuyingItem:.
|
private |
Definition at line 2416 of file StationEntity.m.
Referenced by hasBreakPattern, initWithKey:definition:, and setHasBreakPattern:.
|
private |
Definition at line 1269 of file StationEntity.m.
Referenced by hasNPCTraffic, setHasNPCTraffic:, setUpShipFromDictionary:, and update:.
|
private |
Definition at line 76 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.
|
private |
Definition at line 1263 of file StationEntity.m.
Referenced by interstellarUndockingAllowed, setUpShipFromDictionary:, and Universe::setUpUniverseFromStation.
|
private |
Definition at line 57 of file StationEntity.h.
Referenced by acceptDockingClearanceRequestFrom:, noteDockedShip:, and update:.
|
private |
Definition at line 100 of file StationEntity.h.
Referenced by acceptPatrolReportFrom:, setUpShipFromDictionary:, and update:.
|
private |
Definition at line 93 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.
|
private |
Definition at line 97 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.
|
private |
Definition at line 245 of file StationEntity.m.
Referenced by PlayerEntity::activateSelectedInterface, dealloc, initWithKey:definition:, localInterfaces, PlayerEntity::setGuiToInterfacesScreen:, and PlayerEntity::showInformationForSelectedInterface.
|
private |
Definition at line 191 of file StationEntity.m.
Referenced by dealloc, Universe::getStationMarkets, initialiseLocalMarket, legalStatusOfManifest:export:, PlayerEntity::localMarket, localMarket, localMarketForScripting, setLocalMarket:, setPrice:forCommodity:, setQuantity:forCommodity:, and update:.
|
private |
Definition at line 231 of file StationEntity.m.
Referenced by PlayerEntity(Contracts)::buySelectedShip, dealloc, generateShipyard:, localShipyard, PlayerEntity(Contracts)::setGuiToShipyardScreen:, setLocalShipyard:, StationAddShipToShipyard(), StationGetProperty(), and StationRemoveShipFromShipyard().
|
private |
Definition at line 160 of file StationEntity.m.
Referenced by marketBroadcast, and setUpShipFromDictionary:.
|
private |
Definition at line 132 of file StationEntity.m.
Referenced by OOCommodities::generateMarketForStation:, marketCapacity, and setUpShipFromDictionary:.
|
private |
Definition at line 138 of file StationEntity.m.
Referenced by dealloc, OOCommodities::generateMarketForStation:, marketDefinition, and setUpShipFromDictionary:.
|
private |
Definition at line 150 of file StationEntity.m.
Referenced by marketMonitored, and setUpShipFromDictionary:.
|
private |
Definition at line 144 of file StationEntity.m.
Referenced by dealloc, OOCommodities::generateMarketForStation:, marketScriptName, and setUpShipFromDictionary:.
|
private |
Definition at line 62 of file StationEntity.h.
Referenced by countOfDockedDefenders, dumpSelfState, launchDefenseShip, launchPirateShip, and setUpShipFromDictionary:.
|
private |
Definition at line 61 of file StationEntity.h.
Referenced by countOfDockedPolice, dumpSelfState, launchPatrol, launchPolice, and setUpShipFromDictionary:.
|
private |
Definition at line 65 of file StationEntity.h.
Referenced by countOfDockedContractors, dumpSelfState, launchMiner, launchScavenger, and setUpShipFromDictionary:.
|
private |
Definition at line 74 of file StationEntity.h.
Referenced by acceptDockingClearanceRequestFrom:, and dumpSelfState.
|
private |
Definition at line 101 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.
|
private |
Definition at line 281 of file StationEntity.m.
Referenced by planet, and setPlanet:.
|
private |
Definition at line 56 of file StationEntity.h.
Referenced by abortDockingForShip:, acceptDockingClearanceRequestFrom:, dockingInstructionsForShip:, noteDockedShip:, playerReservedDock, and update:.
|
private |
Definition at line 71 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and virtualPortDimensions.
|
private |
Definition at line 72 of file StationEntity.h.
Referenced by setUpShipFromDictionary:.
|
private |
Definition at line 2286 of file StationEntity.m.
Referenced by acceptDockingClearanceRequestFrom:, requiresDockingClearance, setRequiresDockingClearance:, and setUpShipFromDictionary:.
|
private |
Definition at line 66 of file StationEntity.h.
Referenced by countOfDockedContractors, dumpSelfState, launchMiner, and launchScavenger.
|
private |
Definition at line 94 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.
|
private |
Definition at line 103 of file StationEntity.h.
Referenced by setSuppressArrivalReports:, setUpShipFromDictionary:, and suppressArrivalReports.
|
private |
Definition at line 98 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.