|
Oolite
|
#include <StationEntity.h>
Definition at line 51 of file StationEntity.h.
| - (void) abortAllDockings |
Definition at line 312 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(), StationAbortAllDockings(), StationLaunchShipWithRole(), and StationLaunchShipWithRole().
| - (void) abortDockingForShip: | (ShipEntity*) | ship |
Definition at line 516 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(), and StationAbortDockingForShip().
|
implementation |
Reimplemented from ShipEntity.
Provided by category StationEntity(OOAIPrivate).
Definition at line 2532 of file ShipEntityAI.m.
| - (NSString *) acceptDockingClearanceRequestFrom: | (ShipEntity*) | other |
Definition at line 1785 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(), OOJSFreeValue, OOJSRelinquishContext(), OOJSUndefinedValue, OOJSValueFromNativeObject(), OOJSValueToBOOL(), 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 1778 of file StationEntity.m.
References last_patrol_report_time.
Referenced by launchPatrol, ShipEntity(PureAI)::patrolReportIn, ShipPatrolReportIn(), and ShipPatrolReportIn().
|
implementation |
Provided by category StationEntity(OOPrivate).
Definition at line 936 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 1068 of file StationEntity.m.
Referenced by noteDockedShip:.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1159 of file StationEntity.m.
References ShipEntity::adjustVelocity:, and UNIVERSE.
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 354 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 343 of file StationEntity.m.
References autoDockShipsOnHold, nil, OOWeakSet::objectEnumerator, pullInShipIfPermitted:, and OOWeakSet::removeAllObjects.
Referenced by autoDockShipsOnApproach, and autoDockShipsOnHold.
| - (HPVector) beaconPosition |
Definition at line 105 of file StationEntity.m.
References beaconPosition, HPvector_add(), Entity::orientation, Entity::position, vector_forward_from_quaternion(), vector_multiply_scalar(), and vectorToHPVector().
Referenced by beaconPosition, and equivalentTechLevel.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1764 of file StationEntity.m.
References ShipEntity::becomeEnergyBlast, becomeEnergyBlast, and UNIVERSE.
Referenced by becomeEnergyBlast.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1737 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 1771 of file StationEntity.m.
References ShipEntity::becomeLargeExplosion:, and UNIVERSE.
| - (void) clear |
Definition at line 856 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 740 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 1099 of file StationEntity.m.
References ShipEntity::collideWithShip:.
| - (unsigned) countOfDockedContractors |
Definition at line 245 of file StationEntity.m.
References countOfDockedContractors, max_scavengers, and scavengers_launched.
Referenced by allegiance, and countOfDockedContractors.
| - (unsigned) countOfDockedDefenders |
Definition at line 255 of file StationEntity.m.
References countOfDockedDefenders, defenders_launched, and max_defense_ships.
Referenced by allegiance, and countOfDockedDefenders.
| - (unsigned) countOfDockedPolice |
Definition at line 250 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 987 of file StationEntity.m.
References DockEntity::countOfShipsInLaunchQueueWithPrimaryRole:, and nil.
Referenced by launchMiner, and launchScavenger.
| - (unsigned) currentlyInDockingQueues |
Definition at line 1981 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 1993 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 554 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 1306 of file StationEntity.m.
References alertLevel, decreaseAlertLevel, and setAlertLevel:signallingScript:.
Referenced by alertLevel, decreaseAlertLevel, StationDecreaseAlertLevel(), and StationDecreaseAlertLevel().
|
implementation |
Reimplemented from ShipEntity.
Definition at line 2122 of file StationEntity.m.
References ShipEntity::descriptionComponents, and descriptionComponents.
Referenced by descriptionComponents.
| - (BOOL) dockingCorridorIsEmpty |
Definition at line 725 of file StationEntity.m.
References dockingCorridorIsEmpty, dockSubEntityEnumerator, nil, and UNIVERSE.
Referenced by allegiance, dockingCorridorIsEmpty, and dumpSelfState.
| - (NSDictionary *) dockingInstructionsForShip: | (ShipEntity*) | ship |
Definition at line 401 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, magnitude2(), nil, OOJSAcquireContext(), OOJSFreeValue, OOJSRelinquishContext(), OOJSUndefinedValue, OOJSValueFromNativeObject(), OOJSValueToBOOL(), 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 260 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 Entity.
Definition at line 2127 of file StationEntity.m.
References _shipsOnHold, ADD_FLAG_IF_SET, alertLevel, count, defenders_launched, ShipEntity::displayName, docked_shuttles, docked_traders, dockingCorridorIsEmpty, Entity::dumpSelfState, dumpSelfState, equipmentPriceFactor, equivalentTechLevel, HPdistance(), 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.
References beaconPosition, dockSubEntityEnumerator, equivalentTechLevel, playerReservedDock, and virtualPortDimensions.
| - (BOOL) fitsInDock: | (ShipEntity*) | ship |
Definition at line 998 of file StationEntity.m.
References fitsInDock:andLogNoFit:.
| - (BOOL) fitsInDock: | (ShipEntity*) | ship | |
| andLogNoFit: | (BOOL) | logNoFit |
Definition at line 1003 of file StationEntity.m.
References ShipEntity::displayName, dockSubEntityEnumerator, Entity::isShip, nil, OOLog, and ShipEntity::primaryRole.
Referenced by fitsInDock:, StationCanDockShip(), and StationCanDockShip().
| - (void) generateShipyard |
Definition at line 2078 of file StationEntity.m.
References equivalentTechLevel, generateShipyard, and generateShipyard:.
Referenced by generateShipyard, generateShipyard:, localShipyard, StationAddShipToShipyard(), StationAddShipToShipyard(), StationGetProperty(), StationGetProperty(), StationRemoveShipFromShipyard(), and StationRemoveShipFromShipyard().
| - (void) generateShipyard: | (OOTechLevelID) | stationTechLevel |
Definition at line 2083 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 208 of file OOJSStation.m.
| - (BOOL) hasBreakPattern |
References hasBreakPattern.
| - (BOOL) hasClearDock |
Definition at line 883 of file StationEntity.m.
References dockSubEntityEnumerator, hasClearDock, nil, and PLAYER.
Referenced by acceptDockingClearanceRequestFrom:, allegiance, hasClearDock, noteDockedShip:, and update:.
|
implementation |
Definition at line 897 of file StationEntity.m.
References dockSubEntityEnumerator, hasEligibleDock, nil, and PLAYER.
Referenced by acceptDockingClearanceRequestFrom:, and hasEligibleDock.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1111 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 911 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 867 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 2057 of file StationEntity.m.
References hasShipyard, OOFuzzyBooleanFromObject(), and UNIVERSE.
Referenced by allowsSaving, and hasShipyard.
|
implementation |
Provided by category StationEntity(OOPrivate).
Definition at line 506 of file StationEntity.m.
References nil, OOMakeDockingInstructions(), and ShipEntity::sendExpandedMessage:toShip:.
Referenced by dockingInstructionsForShip:.
| - (void) increaseAlertLevel |
Definition at line 1300 of file StationEntity.m.
References alertLevel, increaseAlertLevel, and setAlertLevel:signallingScript:.
Referenced by alertLevel, increaseAlertLevel, StationIncreaseAlertLevel(), StationIncreaseAlertLevel(), and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
| - (OOCommodityMarket *) initialiseLocalMarket |
Definition at line 225 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 538 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 2040 of file StationEntity.m.
References isRotatingStation, and ShipEntity::shipinfoDictionary.
Referenced by allowsSaving, dumpSelfState, and isRotatingStation.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 76 of file StationEntity.m.
References ShipEntity::isExplicitlyUnpiloted, ShipEntity::isHulk, and isUnpiloted.
Referenced by isUnpiloted.
| - (ShipEntity *) launchDefenseShip |
Definition at line 1369 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, StationLaunchDefenseShip(), and StationLaunchDefenseShip().
| - (ShipEntity *) launchEscort |
Definition at line 1639 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, StationLaunchEscort(), and StationLaunchEscort().
| - (ShipEntity *) launchIndependentShip: | (NSString*) | role |
Definition at line 1225 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(), StationLaunchShipWithRole(), and update:.
| - (ShipEntity *) launchMiner |
Definition at line 1506 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, StationLaunchMiner(), and StationLaunchMiner().
| - (ShipEntity *) launchPatrol |
Reimplemented from ShipEntity.
Definition at line 1665 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(), StationLaunchPatrol(), and update:.
| - (ShipEntity *) launchPirateShip |
Lazygun** added the following line
Lazygun** added the following method. A complete rip-off of launchDefenseShip.
Definition at line 1552 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, StationLaunchPirateShip(), and StationLaunchPirateShip().
| - (NSArray *) launchPolice |
Definition at line 1312 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(), StationLaunchPolice(), and takeEnergyDamage:from:becauseOf:weaponIdentifier:.
| - (ShipEntity *) launchScavenger |
Definition at line 1464 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, StationLaunchScavenger(), and StationLaunchScavenger().
| - (void) launchShip: | (ShipEntity*) | ship |
Definition at line 283 of file StationEntity.m.
References dockSubEntityEnumerator, DockEntity::launchShip:, and nil.
Referenced by PlayerEntity::leaveDock:, and ShipEntity::leaveDock:.
| - (void) launchShipWithRole: | (NSString*) | role |
Definition at line 1715 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 1606 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(), StationLaunchShuttle(), and update:.
| - (OOCreditsQuantity) legalStatusOfManifest: | (OOCommodityMarket*) | manifest | |
| export: | (BOOL) | export |
Definition at line 150 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 184 of file StationEntity.m.
References OOCommodityMarket::dictionaryForScripting, localMarket, and localMarketForScripting.
Referenced by localMarket, localMarketForScripting, StationGetProperty(), and StationGetProperty().
| - (NSMutableArray *) localShipyard |
| - (BOOL) marketBroadcast |
References marketBroadcast.
References marketCapacity.
| - (NSArray *) marketDefinition |
References marketDefinition.
| - (BOOL) marketMonitored |
References marketMonitored.
| - (NSString *) marketOverrideName |
Definition at line 2047 of file StationEntity.m.
References marketOverrideName.
Referenced by allowsSaving, and marketOverrideName.
| - (NSString *) marketScriptName |
References marketScriptName.
| - (void) noteDockedShip: | (ShipEntity*) | ship |
Definition at line 1022 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 228 of file OOJSStation.m.
|
implementation |
Reimplemented from ShipEntity.
Provided by category StationEntity(OOJavaScriptExtensions).
Definition at line 214 of file OOJSStation.m.
|
implementation |
Definition at line 380 of file StationEntity.m.
References Entity::speed, and OOWeakRefObject::weakRetain.
| - (DockEntity *) playerReservedDock |
Definition at line 100 of file StationEntity.m.
References player_reserved_dock, and playerReservedDock.
Referenced by equivalentTechLevel, and playerReservedDock.
| - (Vector) portUpVectorForShip: | (ShipEntity*) | ship |
Definition at line 368 of file StationEntity.m.
References dockSubEntityEnumerator, kZeroVector, nil, and DockEntity::portUpVectorForShipsBoundingBox:.
Referenced by ShipEntity::trackDestination:retreat:.
|
implementation |
Provided by category StationEntity(OOPrivate).
Definition at line 720 of file StationEntity.m.
References ShipEntity::enterDock:.
Referenced by autoDockShipsOnHold.
| - (BOOL) requiresDockingClearance |
References requiresDockingClearance.
| - (void) sanityCheckShipsOnApproach |
Definition at line 265 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 924 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 1195 of file StationEntity.m.
References alertLevel, ShipEntity::doScriptEvent:withArgument:andArgument:, AI::reactToMessage:context:, STATION_ALERT_LEVEL_GREEN, STATION_ALERT_LEVEL_RED, and STATION_ALERT_LEVEL_YELLOW.
Referenced by decreaseAlertLevel, increaseAlertLevel, StationSetProperty(), and StationSetProperty().
| - (void) setAllegiance: | (NSString*) | newAllegiance |
Definition at line 1184 of file StationEntity.m.
References allegiance.
Referenced by setUpShipFromDictionary:, Universe::setUpSpace, StationSetProperty(), and StationSetProperty().
| - (void) setAllowsAutoDocking: | (BOOL) | newValue |
Definition at line 2029 of file StationEntity.m.
References allowsAutoDocking.
Referenced by StationSetProperty(), and StationSetProperty().
| - (void) setAllowsFastDocking: | (BOOL) | newValue |
Definition at line 2019 of file StationEntity.m.
References allowsFastDocking.
Referenced by Universe::setUpSpace, StationSetProperty(), and StationSetProperty().
| - (void) setEquivalentTechLevel: | (OOTechLevelID) | value |
Definition at line 90 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 2117 of file StationEntity.m.
References hasBreakPattern.
Referenced by StationSetProperty(), and StationSetProperty().
| - (void) setHasNPCTraffic: | (BOOL) | flag |
Definition at line 1094 of file StationEntity.m.
References hasNPCTraffic.
Referenced by StationSetProperty(), and StationSetProperty().
| - (void) setInterfaceDefinition: | (OOJSInterfaceDefinition*) | definition | |
| forKey: | (NSString*) | key |
Definition at line 216 of file StationEntity.m.
References nil.
Referenced by StationSetInterface(), and StationSetInterface().
| - (void) setLocalMarket: | (NSArray*) | market |
Definition at line 179 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 204 of file StationEntity.m.
References localShipyard.
Referenced by generateShipyard:, and Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
| - (void) setPlanet: | (OOPlanetEntity*) | planet |
Definition at line 232 of file StationEntity.m.
References NO_TARGET, and planet.
Referenced by Universe::addEntity:.
| - (void) setPrice: | (OOCreditsQuantity) | price | |
| forCommodity: | (OOCommodityType) | commodity |
Definition at line 189 of file StationEntity.m.
References localMarket, and OOCommodityMarket::setPrice:forGood:.
Referenced by StationSetMarketPrice(), and StationSetMarketPrice().
| - (void) setQuantity: | (OOCargoQuantity) | quantity | |
| forCommodity: | (OOCommodityType) | commodity |
Definition at line 194 of file StationEntity.m.
References localMarket, and OOCommodityMarket::setQuantity:forGood:.
Referenced by StationSetMarketQuantity(), and StationSetMarketQuantity().
| - (void) setRequiresDockingClearance: | (BOOL) | newValue |
Definition at line 2009 of file StationEntity.m.
References requiresDockingClearance.
Referenced by Universe::setDockingClearanceProtocolActive:, StationSetProperty(), and StationSetProperty().
| - (void) setSuppressArrivalReports: | (BOOL) | newValue |
Definition at line 2107 of file StationEntity.m.
References suppress_arrival_reports.
Referenced by StationSetProperty(), and StationSetProperty().
|
implementation |
Reimplemented from ShipEntity.
Definition at line 569 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, make_vector(), 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 658 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 703 of file StationEntity.m.
References dockSubEntityEnumerator, Entity::isPlayer, Entity::isShip, nil, and Entity::status.
Referenced by CollisionRegion::findCollisions.
| - (BOOL) suppressArrivalReports |
Definition at line 2102 of file StationEntity.m.
References suppress_arrival_reports, and suppressArrivalReports.
Referenced by allowsSaving, and suppressArrivalReports.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1116 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 1172 of file StationEntity.m.
References ShipEntity::takeHeatDamage:, and UNIVERSE.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 1165 of file StationEntity.m.
References ShipEntity::takeScrapeDamage:from:, and UNIVERSE.
|
implementation |
Reimplemented from ShipEntity.
Definition at line 754 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 95 of file StationEntity.m.
References port_dimensions, and virtualPortDimensions.
Referenced by equivalentTechLevel, DockEntity::setDimensionsAndCorridor:ddc:launching:, and virtualPortDimensions.
|
private |
Definition at line 53 of file StationEntity.h.
Referenced by abortAllDockings, dealloc, dumpSelfState, and initWithKey:definition:.
|
private |
Definition at line 1190 of file StationEntity.m.
Referenced by alertLevel, decreaseAlertLevel, dumpSelfState, hasHostileTarget, increaseAlertLevel, setAlertLevel:signallingScript:, and setUpShipFromDictionary:.
|
private |
Definition at line 1179 of file StationEntity.m.
Referenced by allegiance, dealloc, setAllegiance:, StationGetProperty(), and StationGetProperty().
|
private |
Definition at line 2024 of file StationEntity.m.
Referenced by allowsAutoDocking, setAllowsAutoDocking:, and setUpShipFromDictionary:.
|
private |
Definition at line 2014 of file StationEntity.m.
Referenced by allowsFastDocking, setAllowsFastDocking:, and setUpShipFromDictionary:.
|
private |
Definition at line 2034 of file StationEntity.m.
Referenced by allowsSaving, PlayerEntity::setGuiToLoadSaveScreen, and setUpShipFromDictionary:.
|
private |
Definition at line 56 of file StationEntity.h.
Referenced by update:.
|
private |
Definition at line 61 of file StationEntity.h.
Referenced by countOfDockedDefenders, countOfDockedPolice, dumpSelfState, launchDefenseShip, launchPatrol, launchPirateShip, and launchPolice.
|
private |
Definition at line 90 of file StationEntity.h.
Referenced by dumpSelfState, launchShuttle, setUpShipFromDictionary:, and update:.
|
private |
Definition at line 94 of file StationEntity.h.
Referenced by dumpSelfState, setUpShipFromDictionary:, and update:.
|
private |
Definition at line 114 of file StationEntity.m.
Referenced by dumpSelfState, equipmentPriceFactor, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, setUpShipFromDictionary:, and PlayerEntity(OOPrivate)::tryBuyingItem:.
|
private |
Definition at line 81 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 2112 of file StationEntity.m.
Referenced by hasBreakPattern, initWithKey:definition:, and setHasBreakPattern:.
|
private |
Definition at line 1089 of file StationEntity.m.
Referenced by hasNPCTraffic, setHasNPCTraffic:, setUpShipFromDictionary:, and update:.
|
private |
Definition at line 74 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.
|
private |
Definition at line 1084 of file StationEntity.m.
Referenced by interstellarUndockingAllowed, setUpShipFromDictionary:, and Universe::setUpUniverseFromStation.
|
private |
Definition at line 55 of file StationEntity.h.
Referenced by acceptDockingClearanceRequestFrom:, noteDockedShip:, and update:.
|
private |
Definition at line 98 of file StationEntity.h.
Referenced by acceptPatrolReportFrom:, setUpShipFromDictionary:, and update:.
|
private |
Definition at line 91 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.
|
private |
Definition at line 95 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.
|
private |
Definition at line 211 of file StationEntity.m.
Referenced by PlayerEntity::activateSelectedInterface, dealloc, initWithKey:definition:, localInterfaces, PlayerEntity::setGuiToInterfacesScreen:, and PlayerEntity::showInformationForSelectedInterface.
|
private |
Definition at line 166 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 199 of file StationEntity.m.
Referenced by PlayerEntity(Contracts)::buySelectedShip, dealloc, generateShipyard:, localShipyard, PlayerEntity(Contracts)::setGuiToShipyardScreen:, setLocalShipyard:, StationAddShipToShipyard(), StationAddShipToShipyard(), StationGetProperty(), StationGetProperty(), StationRemoveShipFromShipyard(), and StationRemoveShipFromShipyard().
|
private |
Definition at line 142 of file StationEntity.m.
Referenced by marketBroadcast, and setUpShipFromDictionary:.
|
private |
Definition at line 119 of file StationEntity.m.
Referenced by OOCommodities::generateMarketForStation:, marketCapacity, and setUpShipFromDictionary:.
|
private |
Definition at line 124 of file StationEntity.m.
Referenced by dealloc, OOCommodities::generateMarketForStation:, marketDefinition, and setUpShipFromDictionary:.
|
private |
Definition at line 134 of file StationEntity.m.
Referenced by marketMonitored, and setUpShipFromDictionary:.
|
private |
Definition at line 129 of file StationEntity.m.
Referenced by dealloc, OOCommodities::generateMarketForStation:, marketScriptName, and setUpShipFromDictionary:.
|
private |
Definition at line 60 of file StationEntity.h.
Referenced by countOfDockedDefenders, dumpSelfState, launchDefenseShip, launchPirateShip, and setUpShipFromDictionary:.
|
private |
Definition at line 59 of file StationEntity.h.
Referenced by countOfDockedPolice, dumpSelfState, launchPatrol, launchPolice, and setUpShipFromDictionary:.
|
private |
Definition at line 63 of file StationEntity.h.
Referenced by countOfDockedContractors, dumpSelfState, launchMiner, launchScavenger, and setUpShipFromDictionary:.
|
private |
Definition at line 72 of file StationEntity.h.
Referenced by acceptDockingClearanceRequestFrom:, and dumpSelfState.
|
private |
Definition at line 99 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.
|
private |
Definition at line 240 of file StationEntity.m.
Referenced by planet, and setPlanet:.
|
private |
Definition at line 54 of file StationEntity.h.
Referenced by abortDockingForShip:, acceptDockingClearanceRequestFrom:, dockingInstructionsForShip:, noteDockedShip:, playerReservedDock, and update:.
|
private |
Definition at line 69 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and virtualPortDimensions.
|
private |
Definition at line 70 of file StationEntity.h.
Referenced by setUpShipFromDictionary:.
|
private |
Definition at line 2004 of file StationEntity.m.
Referenced by acceptDockingClearanceRequestFrom:, requiresDockingClearance, setRequiresDockingClearance:, and setUpShipFromDictionary:.
|
private |
Definition at line 64 of file StationEntity.h.
Referenced by countOfDockedContractors, dumpSelfState, launchMiner, and launchScavenger.
|
private |
Definition at line 92 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.
|
private |
Definition at line 101 of file StationEntity.h.
Referenced by setSuppressArrivalReports:, setUpShipFromDictionary:, and suppressArrivalReports.
|
private |
Definition at line 96 of file StationEntity.h.
Referenced by setUpShipFromDictionary:, and update:.