![]() |
Oolite 1.91.0.7650-250121-affa790
|
#include <Universe.h>
Class Methods | |
(static BOOL) | + IsCandidateMainStationPredicate [implementation] |
(static BOOL) | + IsFriendlyStationPredicate [implementation] |
(static BOOL) | + MaintainLinkedLists [implementation] |
(static void) | + VerifyDesc [implementation] |
(static void) | + VerifyDescString [implementation] |
(static void) | + VerifyDescArray [implementation] |
(static OOComparisonResult) | + compareName [implementation] |
(static OOComparisonResult) | + comparePrice [implementation] |
(static void) | + PreloadOneSound [implementation] |
Public Attributes | |
Entity * | sortedEntities [UNIVERSE_MAX_ENTITIES+1] |
unsigned | n_entities |
int | cursor_row |
Entity * | x_list_start |
Entity * | y_list_start |
Entity * | z_list_start |
GLfloat | stars_ambient [4] |
Additional Inherited Members | |
![]() | |
OOWeakReference * | weakSelf |
Definition at line 187 of file Universe.h.
|
implementation |
Definition at line 4696 of file Universe.m.
References activeViewMatrix, and getActiveViewMatrix:forwardVector:upVector:.
Referenced by activeViewMatrix.
- (void) addCommsMessage: | (NSString *) | text | |
forCount: | (OOTimeDelta) | count |
Definition at line 7005 of file Universe.m.
References addCommsMessage:forCount:andShowComms:logOnly:.
- (void) addCommsMessage: | (NSString *) | text | |
forCount: | (OOTimeDelta) | count | |
andShowComms: | (BOOL) | showComms | |
logOnly: | (BOOL) | logOnly |
Definition at line 7011 of file Universe.m.
References PlayerEntity::commLog, currentMessage, messageRepeatTime, OOExpand, OOExpandKey, OOSPEECHSETTINGS_COMMS, PLAYER, GuiDisplayGen::printLongText:align:color:fadeTime:key:addToArray:, showCommsLog:, showGUIMessage:withScroll:andColor:overDuration:, speakWithSubstitutions:, GuiDisplayGen::textCommsColor, and universal_time.
Referenced by addCommsMessage:forCount:.
- (void) addConditionScripts: | (NSEnumerator *) | scripts |
Definition at line 11028 of file Universe.m.
References conditionScripts, OOScript::jsScriptFromFileNamed:properties:, and nil.
Referenced by loadConditionScripts.
- (void) addDelayedMessage: | (NSDictionary *) | textdict |
Definition at line 6915 of file Universe.m.
References addMessage:forCount:, and nil.
- (void) addDelayedMessage: | (NSString *) | text | |
forCount: | (OOTimeDelta) | count | |
afterDelay: | (OOTimeDelta) | delay |
Definition at line 6906 of file Universe.m.
- (BOOL) addEntity: | (Entity *) | entity |
Definition at line 5514 of file Universe.m.
References currentSystemData, debugDumpEntities, doLinkedListMaintenanceThisUpdate, entities, entity_for_uid, ShipEntity::getAI, Entity::isExplicitlyNotMainStation, MAX_ENTITY_UID, MIN_ENTITY_UID, n_entities, next_universal_id, nil, NO_TARGET, OODoubleFromObject(), OOLog, OOLogWillDisplayMessagesInClass(), planet, PLAYER, setNextBeacon:, AI::setOwner:, StationEntity::setPlanet:, ShipEntity::setRoll:, AI::setState:, ShipEntity::setStatus:, ShipEntity::shipInfoDictionary, sortedEntities, and UNIVERSE_MAX_ENTITIES.
Referenced by addLaserHitEffectsAt:against:damage:color:, addShipAt:withRole:withinRadius:, addShipWithRole:launchPos:rfactor:, addVisualEffectAt:withKey:, addWitchspaceJumpEffectForShip:, defineWaypoint:forKey:, initWithGameView:, reinitAndShowDemo:, setUpBreakPattern:orientation:forDocking:, setupIntroFirstGo:, setUpPlanet, setUpSpace, setUpUniverseFromMisjump, setUpUniverseFromWitchspace, setUpWitchspaceBetweenSystem:andSystem:, and spawnShip:.
- (void) addLaserHitEffectsAt: | (HPVector) | pos | |
against: | (ShipEntity *) | target | |
damage: | (float) | damage | |
color: | (OOColor *) | color |
Definition at line 6086 of file Universe.m.
References addEntity:, addWreckageFrom:withRole:at:scale:lifetime:, OOExplosionCloudEntity::explosionCloudFromEntity:withSettings:, OOFlashEffectEntity::laserFlashWithPosition:velocity:color:, randf(), Entity::setPosition:, Entity::setVelocity:, and ShipEntity::velocity.
- (void) addMessage: | (NSString *) | text | |
forCount: | (OOTimeDelta) | count |
Definition at line 6928 of file Universe.m.
References addMessage:forCount:forceDisplay:.
Referenced by addDelayedMessage:, handleOoliteException:, pauseGame, and setViewDirection:.
- (void) addMessage: | (NSString *) | text | |
forCount: | (OOTimeDelta) | count | |
forceDisplay: | (BOOL) | forceDisplay |
Definition at line 6985 of file Universe.m.
References currentMessage, messageRepeatTime, OOSPEECHSETTINGS_ALL, PLAYER, showGUIMessage:withScroll:andColor:overDuration:, speakWithSubstitutions:, GuiDisplayGen::textColor, and universal_time.
Referenced by addMessage:forCount:.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10916 of file Universe.m.
References nil.
- (ShipEntity *) addShipAt: | (HPVector) | pos | |
withRole: | (NSString *) | role | |
withinRadius: | (GLfloat) | radius |
Definition at line 2783 of file Universe.m.
References addEntity:, coordinatesForPosition:withCoordinateSystem:returningScalar:, currentSystemData, fillCargopodWithRandomCargo:, getWitchspaceExitPosition, makeSunSkimmer:andSetAI:, newShipWithRole:, nil, OOHPVectorRandomSpatial(), OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, ShipEntity::pendingEscortCount, randf(), OOCharacter::randomCharacterWithRole:andOriginalSystem:, Ranrot(), ShipEntity::scanClass, SCANNER_MAX_RANGE, ShipEntity::setBounty:withReason:, ShipEntity::setCargoFlag:, ShipEntity::setCrew:, Entity::setOrientation:, Entity::setPosition:, Entity::setScanClass:, ShipEntity::switchAITo:, and ShipEntity::witchspaceLeavingEffects.
Referenced by addShipsAt:withRole:quantity:withinRadius:asGroup:, and addShipsToRoute:withRole:quantity:routeFraction:asGroup:.
- (BOOL) addShips: | (int) | howMany | |
withRole: | (NSString *) | desc | |
atPosition: | (HPVector) | pos | |
withCoordinateSystem: | (NSString *) | system |
Definition at line 2442 of file Universe.m.
References addShipWithRole:launchPos:rfactor:, Entity::collision_radius, coordinatesForPosition:withCoordinateSystem:returningScalar:, kZeroHPVector, nil, quaternion_set_random(), randf(), SAFE_ADDITION_FACTOR2, ShipEntity::scanClass, Entity::setOrientation:, Entity::setPosition:, and Entity::setScanClass:.
- (BOOL) addShips: | (int) | howMany | |
withRole: | (NSString *) | desc | |
intoBoundingBox: | (BoundingBox) | bbox |
Definition at line 2556 of file Universe.m.
Referenced by addShips:withRole:nearPosition:withCoordinateSystem:, and addShips:withRole:nearPosition:withCoordinateSystem:withinRadius:.
- (BOOL) addShips: | (int) | howMany | |
withRole: | (NSString *) | desc | |
nearPosition: | (HPVector) | pos | |
withCoordinateSystem: | (NSString *) | system |
Definition at line 2522 of file Universe.m.
References addShips:withRole:intoBoundingBox:, coordinatesForPosition:withCoordinateSystem:returningScalar:, and SCANNER_MAX_RANGE.
- (BOOL) addShips: | (int) | howMany | |
withRole: | (NSString *) | desc | |
nearPosition: | (HPVector) | pos | |
withCoordinateSystem: | (NSString *) | system | |
withinRadius: | (GLfloat) | radius |
Definition at line 2540 of file Universe.m.
References addShips:withRole:intoBoundingBox:, and coordinatesForPosition:withCoordinateSystem:returningScalar:.
- (NSArray *) addShipsAt: | (HPVector) | pos | |
withRole: | (NSString *) | role | |
quantity: | (unsigned) | count | |
withinRadius: | (GLfloat) | radius | |
asGroup: | (BOOL) | isGroup |
Definition at line 2890 of file Universe.m.
References addShipAt:withRole:withinRadius:, count, OOShipGroup::groupWithName:, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and ShipEntity::setGroup:.
Referenced by addShipsToRoute:withRole:quantity:routeFraction:asGroup:.
- (NSArray *) addShipsToRoute: | (NSString *) | route | |
withRole: | (NSString *) | role | |
quantity: | (unsigned) | count | |
routeFraction: | (double) | routeFraction | |
asGroup: | (BOOL) | isGroup |
Definition at line 2922 of file Universe.m.
References addShipAt:withRole:withinRadius:, addShipsAt:withRole:quantity:withinRadius:asGroup:, Entity::collisionRadius, count, fractionalPositionFrom:to:withFraction:, getWitchspaceExitPosition, kZeroHPVector, nil, planet, Entity::position, SCANNER_MAX_RANGE, station, and sun.
|
implementation |
Definition at line 2116 of file Universe.m.
References addEntity:, fillCargopodWithRandomCargo:, newShipWithRole:, nil, randf(), OOCharacter::randomCharacterWithRole:andOriginalSystem:, ShipEntity::setCrew:, Entity::setPosition:, and Entity::setScanClass:.
Referenced by addShips:withRole:atPosition:withCoordinateSystem:, addShipWithRole:nearRouteOneAt:, and spawnShipWithRole:near:.
- (BOOL) addShipWithRole: | (NSString *) | desc | |
nearPosition: | (HPVector) | pos | |
withCoordinateSystem: | (NSString *) | system |
Definition at line 2426 of file Universe.m.
References coordinatesForPosition:withCoordinateSystem:returningScalar:, nil, and SCANNER_MAX_RANGE.
- (void) addShipWithRole: | (NSString *) | desc | |
nearRouteOneAt: | (double) | route_fraction |
Definition at line 2153 of file Universe.m.
References addShipWithRole:launchPos:rfactor:, getWitchspaceExitPosition, and station.
- (OOVisualEffectEntity *) addVisualEffectAt: | (HPVector) | pos | |
withKey: | (NSString *) | key |
Definition at line 2760 of file Universe.m.
References addEntity:, newVisualEffectWithName:, nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
- (void) addWitchspaceJumpEffectForShip: | (ShipEntity *) | ship |
Definition at line 3042 of file Universe.m.
References addEntity:, PLAYER, OORingEffectEntity::ringFromEntity:, and OORingEffectEntity::shrinkingRingFromEntity:.
- (ShipEntity *) addWreckageFrom: | (ShipEntity *) | ship | |
withRole: | (NSString *) | wreckRole | |
at: | (HPVector) | rpos | |
scale: | (GLfloat) | scale | |
lifetime: | (GLfloat) | lifetime |
Definition at line 6052 of file Universe.m.
References Entity::mass, ShipEntity::performTumble, quaternion_set_random(), randf(), ShipEntity::rescaleBy:writeToCache:, Entity::setEnergy:, ShipEntity::setHeatInsulation:, ShipEntity::setIsWreckage:, Entity::setOrientation:, Entity::setPosition:, ShipEntity::setTemperature:, Entity::setVelocity:, and ShipEntity::velocity.
Referenced by addLaserHitEffectsAt:against:damage:color:.
- (GLfloat) airResistanceFactor |
References airResistanceFactor, colorblindMode, int(), isSpeaking, and stopSpeaking.
- (void) allShipsDoScriptEvent: | (jsid) | event | |
andReactToAIMessage: | (NSString *) | message |
Definition at line 9889 of file Universe.m.
References ShipEntity::doScriptEvent:, ShipEntity::getAI, n_entities, nil, AI::reactToMessage:context:, and sortedEntities.
Referenced by carryPlayerOn:inWormhole:.
- (float) ambientLightLevel |
References ambientLightLevel, currentWaypoints, dockingClearanceProtocolActive, firstBeacon, forceLightSwitch, forceWitchspaceEntries, handleGameOver, lastBeacon, planet, planets, resetBeacons, safeWitchspaceExitDistance, selectIntro2Next, selectIntro2NextCategory, selectIntro2Previous, selectIntro2PreviousCategory, setLighting, setUpPlanet, station, stations, sun, unMagicMainStation, witchspaceBreakPattern, and wormholes.
- (BOOL) autoMessageLogBg |
Definition at line 10240 of file Universe.m.
References _autoMessageLogBg, and autoMessageLogBg.
Referenced by autoMessageLogBg, and framesDoneThisUpdate.
- (BOOL) autoSave |
References autoSave.
- (BOOL) autoSaveNow |
References autoSaveNow.
- (BOOL) blockJSPlayerShipProps |
Definition at line 10270 of file Universe.m.
References blockJSPlayerShipProps, gOOJSPlayerIfStale, and nil.
Referenced by blockJSPlayerShipProps, and framesDoneThisUpdate.
- (BOOL) bloom |
Definition at line 281 of file Universe.m.
References _bloom, bloom, DETAIL_LEVEL_EXTRAS, and detailLevel.
Referenced by bloom, and Universe(OOPrivate)::drawTargetTextureIntoDefaultFramebuffer.
- (BOOL) breakPatternHide |
Definition at line 3890 of file Universe.m.
References breakPatternCounter, breakPatternHide, and PLAYER.
Referenced by breakPatternHide, drawUniverse, and skyClearColor.
- (BOOL) breakPatternOver |
Definition at line 3884 of file Universe.m.
References breakPatternCounter, and breakPatternOver.
Referenced by breakPatternOver, and skyClearColor.
- (NSString *) brochureDescriptionWithDictionary: | (NSDictionary*) | dict | |
standardEquipment: | (NSArray*) | extras | |
optionalEquipment: | (NSArray*) | options |
Definition at line 9653 of file Universe.m.
|
implementation |
Definition at line 3900 of file Universe.m.
References OOJSScript::callMethod:inContext:withArguments:count:result:, getConditionScript:, nil, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromNativeObject(), OOShipRegistry::sharedRegistry, and OOShipRegistry::shipInfoForKey:.
- (ShipEntity *) cargoPodFromTemplate: | (ShipEntity *) | cargoObj |
Definition at line 4265 of file Universe.m.
References ShipEntity::commodityType, nil, randf(), and ShipEntity::setCommodity:andAmount:.
- (void) carryPlayerOn: | (StationEntity*) | carrier | |
inWormhole: | (WormholeEntity*) | wormhole |
Definition at line 1048 of file Universe.m.
References PlayerEntity::addScannedWormhole:, PlayerEntity::addToAdjustTime:, allShipsDoScriptEvent:andReactToAIMessage:, WormholeEntity::destination, WormholeEntity::destinationCoordinates, WormholeEntity::disgorgeShips, ShipEntity::doScriptEvent:withArgument:, PlayerEntity::erodeReputation, PlayerEntity::jumpCause, PlayerEntity::legalStatus, OOJSAcquireContext(), OOJSRelinquishContext(), WormholeEntity::origin, PLAYER, populateNormalSpace, randf(), removeAllEntitiesExceptPlayer, PlayerEntity::setBounty:withReason:, PlayerEntity::setGalaxyCoordinates:, PlayerEntity::setJumpCause:, PlayerEntity::setPreviousSystemID:, PlayerEntity::setRandom_factor:, PlayerEntity::setSystemID:, setSystemTo:, setUpSpace, setUpWitchspaceBetweenSystem:andSystem:, setWitchspaceBreakPattern:, PlayerEntity::setWormhole:, ShipScriptEvent, PlayerEntity::systemID, and WormholeEntity::travelTime.
- (NSDictionary *) characters |
References characters.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10787 of file Universe.m.
Referenced by descriptionForKey:.
- (void) clearBeacon: | (Entity <OOBeaconEntity> *) | beaconShip |
Definition at line 3803 of file Universe.m.
References firstBeacon, lastBeacon, nil, setFirstBeacon:, and setLastBeacon:.
Referenced by Universe(OOPrivate)::doRemoveEntity:.
- (void) clearGUIs |
Definition at line 9932 of file Universe.m.
References GuiDisplayGen::clear, clearGUIs, GuiDisplayGen::printLongText:align:color:fadeTime:key:addToArray:, and OOColor::yellowColor.
Referenced by clearGUIs, and commodityMarket.
- (void) clearPreviousMessage |
Definition at line 6869 of file Universe.m.
References clearPreviousMessage, currentMessage, and nil.
Referenced by clearPreviousMessage, and viewDirection.
- (void) clearSystemPopulator |
Definition at line 1761 of file Universe.m.
References clearSystemPopulator, and populatorSettings.
Referenced by clearSystemPopulator, populateNormalSpace, setUpWitchspaceBetweenSystem:andSystem:, and useAddOns.
- (NSString *) collisionDescription |
Definition at line 6676 of file Universe.m.
References CollisionRegion::collisionDescription, collisionDescription, nil, and universeRegion.
Referenced by collisionDescription, and viewMatrix.
- (int) colorblindMode |
Definition at line 336 of file Universe.m.
References _colorblindMode, colorblindMode, and int().
Referenced by airResistanceFactor, colorblindMode, drawUniverse, and terminatePostFX:.
- (GuiDisplayGen *) commLogGUI |
Definition at line 9920 of file Universe.m.
References comm_log_gui, and commLogGUI.
Referenced by commLogGUI, and gui.
- (OOCommodities *) commodities |
- (NSDictionary *) commodityDataForType: | (OOCommodityType) | type |
Definition at line 4419 of file Universe.m.
References OOCommodityMarket::definitionForGood:.
Referenced by describeCommodity:amount:.
- (OOCommodityMarket *) commodityMarket |
References clearGUIs, commodityMarket, getStationMarkets, getWitchspaceExitPosition, getWitchspaceExitRotation, and marketSeed.
|
implementation |
Definition at line 9479 of file Universe.m.
References comparePrice().
|
implementation |
Definition at line 9494 of file Universe.m.
- (HPVector) coordinatesForPosition: | (HPVector) | pos | |
withCoordinateSystem: | (NSString *) | system | |
returningScalar: | (GLfloat*) | my_scalar |
Definition at line 2169 of file Universe.m.
References getWitchspaceExitPosition, kZeroHPVector, nil, planet, Entity::position, OOSunEntity::radius, and sun.
Referenced by addShipAt:withRole:withinRadius:, addShips:withRole:atPosition:withCoordinateSystem:, addShips:withRole:nearPosition:withCoordinateSystem:, addShips:withRole:nearPosition:withCoordinateSystem:withinRadius:, addShipWithRole:nearPosition:withCoordinateSystem:, and coordinatesFromCoordinateSystemString:.
- (NSPoint) coordinatesForSystem: | (OOSystemID) | s |
Definition at line 8419 of file Universe.m.
References OOSystemDescriptionManager::getCoordinatesForSystem:inGalaxy:.
Referenced by nearbyDestinationsWithinRange:.
- (HPVector) coordinatesFromCoordinateSystemString: | (NSString *) | system_x_y_z |
Definition at line 2413 of file Universe.m.
References coordinatesForPosition:withCoordinateSystem:returningScalar:, count, and ScanTokensFromString().
Referenced by spawnShip:.
- (unsigned) countEntitiesMatchingPredicate: | (EntityFilterPredicate) | predicate | |
parameter: | (void *) | parameter | |
inRange: | (double) | range | |
ofEntity: | (Entity *) | entity |
Definition at line 6394 of file Universe.m.
References Entity::collision_radius, kZeroHPVector, n_entities, nil, Entity::position, sortedEntities, and YESPredicate().
Referenced by countShipsMatchingPredicate:parameter:inRange:ofEntity:.
- (unsigned) countShipsMatchingPredicate: | (EntityFilterPredicate) | predicate | |
parameter: | (void *) | parameter | |
inRange: | (double) | range | |
ofEntity: | (Entity *) | entity |
Definition at line 6430 of file Universe.m.
References countEntitiesMatchingPredicate:parameter:inRange:ofEntity:, and IsShipPredicate().
Referenced by countShipsWithPrimaryRole:inRange:ofEntity:, countShipsWithRole:inRange:ofEntity:, and countShipsWithScanClass:inRange:ofEntity:.
- (unsigned) countShipsWithPrimaryRole: | (NSString *) | role |
Definition at line 6388 of file Universe.m.
References countShipsWithPrimaryRole:inRange:ofEntity:.
- (unsigned) countShipsWithPrimaryRole: | (NSString *) | role | |
inRange: | (double) | range | |
ofEntity: | (Entity *) | entity |
Definition at line 6370 of file Universe.m.
References countShipsMatchingPredicate:parameter:inRange:ofEntity:.
Referenced by countShipsWithPrimaryRole:.
- (unsigned) countShipsWithRole: | (NSString *) | role |
Definition at line 6364 of file Universe.m.
References countShipsWithRole:inRange:ofEntity:.
- (unsigned) countShipsWithRole: | (NSString *) | role | |
inRange: | (double) | range | |
ofEntity: | (Entity *) | entity |
Definition at line 6355 of file Universe.m.
References countShipsMatchingPredicate:parameter:inRange:ofEntity:.
Referenced by countShipsWithRole:.
- (unsigned) countShipsWithScanClass: | (OOScanClass) | scanClass | |
inRange: | (double) | range | |
ofEntity: | (Entity *) | entity |
Definition at line 6379 of file Universe.m.
References countShipsMatchingPredicate:parameter:inRange:ofEntity:.
- (int) currentPostFX |
Definition at line 291 of file Universe.m.
References _currentPostFX, currentPostFX, and int().
Referenced by currentPostFX, drawUniverse, and terminatePostFX:.
- (NSDictionary *) currentSystemData |
Definition at line 8165 of file Universe.m.
References currentSystemData, DESC, generateSystemData:, inInterstellarSpace, nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by addEntity:, addShipAt:withRole:withinRadius:, currentSystemData, Universe(OOPrivate)::setUpInitialUniverse, systemManager, and witchspaceShipWithPrimaryRole:.
- (OOSystemID) currentSystemID |
Definition at line 7974 of file Universe.m.
References currentSystemID, and systemID.
Referenced by currentSystemID, ECMVisualFXEnabled, and setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
- (NSDictionary *) currentWaypoints |
Definition at line 3831 of file Universe.m.
References currentWaypoints, and waypoints.
Referenced by ambientLightLevel, and currentWaypoints.
|
implementation |
Reimplemented from OOWeakRefObject.
Definition at line 859 of file Universe.m.
References _firstBeacon, _lastBeacon, OOWeakRefObject::dealloc, dealloc, deleteOpenGLObjects, DESTROY, OOCacheManager::flush, gSharedUniverse, nil, OOCacheManager::sharedCache, system_names, and waypoints.
Referenced by dealloc.
- (void) debugDumpEntities |
Definition at line 981 of file Universe.m.
References count, debugDumpEntities, entities, n_entities, OOLog, OOLogIndent(), OOLogOutdent(), OOLogWillDisplayMessagesInClass(), and sortedEntities.
Referenced by addEntity:, debugDumpEntities, and useAddOns.
- (NSString *) defaultAIForRole: | (NSString *) | role |
Definition at line 4215 of file Universe.m.
Referenced by newShipWithRole:.
- (void) defineFrustum |
Definition at line 4711 of file Universe.m.
References defineFrustum, frustum, and OOGLGetModelViewProjection().
Referenced by defineFrustum, drawUniverse, and gameView.
- (void) defineWaypoint: | (NSDictionary *) | definition | |
forKey: | (NSString *) | key |
Definition at line 3837 of file Universe.m.
References addEntity:, nil, PLAYER, removeEntity:, and OOWaypointEntity::waypointWithDictionary:.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 531 of file Universe.m.
References Universe(OOPrivate)::deleteOpenGLObjects, and OOGL.
Referenced by dealloc, and Universe(OOPrivate)::deleteOpenGLObjects.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 3301 of file Universe.m.
References Universe(OOPrivate)::demoShipData.
Referenced by Universe(OOPrivate)::demoShipData, Universe(OOPrivate)::setLibraryTextForDemoShip, Universe(OOPrivate)::setShaderEffectsLevelDirectly:, and update:.
- (NSString *) describeCommodity: | (OOCommodityType) | co_type | |
amount: | (OOCargoQuantity) | co_amount |
Definition at line 4431 of file Universe.m.
References commodityDataForType:, DESC, OOCommodityMarket::massUnitForGood:, OOCommodityMarket::nameForGood:, nil, UNITS_GRAMS, UNITS_KILOGRAMS, and UNITS_TONS.
- (BOOL) descriptionBooleanForKey: | (NSString *) | key |
Definition at line 8119 of file Universe.m.
References descriptions.
- (NSString *) descriptionForArrayKey: | (NSString *) | key | |
index: | (unsigned) | index |
Definition at line 8111 of file Universe.m.
References count, descriptions, and nil.
- (NSString *) descriptionForKey: | (NSString *) | key |
Definition at line 8105 of file Universe.m.
References chooseStringForKey:inDictionary:, and descriptions.
- (NSDictionary *) descriptions |
Definition at line 7980 of file Universe.m.
References _descriptions, ResourceManager::builtInPath, descriptions, nil, and verifyDescriptions.
Referenced by descriptionBooleanForKey:, descriptionForArrayKey:index:, descriptionForKey:, descriptions, ECMVisualFXEnabled, and shipsForSaleForSystem:withTL:atTime:.
- (OOGraphicsDetail) detailLevel |
- (BOOL) deterministicPopulation |
Definition at line 1787 of file Universe.m.
References deterministic_population, and deterministicPopulation.
Referenced by deterministicPopulation, and useAddOns.
- (void) displayCountdownMessage: | (NSString *) | text | |
forCount: | (OOTimeDelta) | count |
Definition at line 6894 of file Universe.m.
References count, countdown_messageRepeatTime, currentMessage, showGUIMessage:withScroll:andColor:overDuration:, GuiDisplayGen::textColor, and universal_time.
- (BOOL) displayFPS |
References displayFPS.
- (BOOL) displayGUI |
References displayGUI.
- (void) displayMessage: | (NSString *) | text | |
forCount: | (OOTimeDelta) | count |
Definition at line 6882 of file Universe.m.
References currentMessage, messageRepeatTime, showGUIMessage:withScroll:andColor:overDuration:, GuiDisplayGen::textColor, and universal_time.
- (NSString *) displayNameForCommodity: | (OOCommodityType) | co_type |
Definition at line 4425 of file Universe.m.
References OOCommodityMarket::nameForGood:.
- (BOOL) dockingClearanceProtocolActive |
Definition at line 3156 of file Universe.m.
References _dockingClearanceProtocolActive, and dockingClearanceProtocolActive.
Referenced by ambientLightLevel, and dockingClearanceProtocolActive.
- (BOOL) doingStartUp |
Definition at line 929 of file Universe.m.
References _doingStartUp, and doingStartUp.
Referenced by doingStartUp, and useAddOns.
- (BOOL) doProcedurallyTexturedPlanets |
References doProcedurallyTexturedPlanets.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10603 of file Universe.m.
References clearBeacon:, kOOLogInconsistentState, nil, OOLog, Entity::removeFromLinkedLists, Entity::setUniversalID:, Entity::universalID, Entity::wasRemovedFromUniverse, and Entity::zero_index.
Referenced by ensureEntityReallyRemoved:, and removeEntity:.
- (void) drawMessage |
Definition at line 5309 of file Universe.m.
References GuiDisplayGen::alpha, cursor_row, displayGUI, GuiDisplayGen::drawGUI:drawCursor:, drawMessage, gameController, MOUSE_MODE_UI_SCREEN_WITH_INTERACTION, OOGL, OOSetOpenGLState, OOVerifyOpenGLState, and OPENGL_STATE_OVERLAY.
Referenced by drawMessage, drawUniverse, and gameView.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 594 of file Universe.m.
References bloom, Universe(OOPrivate)::drawTargetTextureIntoDefaultFramebuffer, and OOGL.
Referenced by Universe(OOPrivate)::drawTargetTextureIntoDefaultFramebuffer, and drawUniverse.
- (void) drawUniverse |
Definition at line 4813 of file Universe.m.
References airResistanceFactor, BILLBOARD_DEPTH, breakPatternHide, cachedSun, Entity::cameraRelativePosition, colorblindMode, OOColor::colorWithRed:green:blue:alpha:, currentPostFX, defaultDrawFBO, HeadUpDisplay::deferredHudName, defineFrustum, displayGUI, docked_light_ambient, OOSunEntity::drawDirectVisionSunGlare, GuiDisplayGen::drawGUIBackground, Entity::drawImmediate:translucent:, drawMessage, OOSunEntity::drawStarGlare, drawTargetTextureIntoDefaultFramebuffer, drawUniverse, drawWatermarkString:, EXPECT, MyOpenGLView::fov:, framesDoneThisUpdate, gameController, gameView, getActiveViewMatrix:forwardVector:upVector:, GLScaledLineWidth(), handleOoliteException:, PlayerEntity::hud, INTERMEDIATE_CLEAR_DEPTH, Entity::isImmuneToBreakPatternHide, Entity::isStellarObject, kBasisYVector, kBasisZVector, kIdentityMatrix, kOOLogException, kZeroVector, lightForEntity:, main_light_position, MAX_CLEAR_DEPTH, msaaFramebufferID, n_entities, nil, no_update, OO_POSTFX_CLOAK, OO_POSTFX_CRTBADSIGNAL, OO_POSTFX_NONE, OOCheckOpenGLErrors(), OOGL, OOGLFrustum(), OOGLGetModelView(), OOGLLoadModelView(), OOGLLookAt(), OOGLMultModelView(), OOGLPopModelView(), OOGLPushModelView(), OOGLResetModelView(), OOGLResetProjection(), OOGLTranslateModelView(), OOLog, OOMatrixMultiply(), OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_OPAQUE, OPENGL_STATE_OVERLAY, HeadUpDisplay::overallAlpha, PLAYER, Entity::position, prepareToRenderIntoDefaultFramebuffer, reducedDetail, HeadUpDisplay::renderHUD, resizeTargetFramebufferWithViewSize:, Entity::setAtmosphereFogging:, HeadUpDisplay::setLineWidth:, setMainLightPosition:, HeadUpDisplay::setOverallAlpha:, PlayerEntity::showDemoShips, skyClearColor, sortedEntities, stars_ambient, Entity::status, PlayerEntity::switchHudTo:, targetFramebufferID, targetFramebufferSize, Entity::updateCameraRelativePosition, useShaders, viewMatrix, PlayerEntity::viewpointOffset, MyOpenGLView::viewSize, and wasDisplayGUI.
Referenced by drawUniverse, and gameView.
- (void) drawWatermarkString: | (NSString *) | watermarkString |
Definition at line 5335 of file Universe.m.
References gameView, MAIN_GUI_PIXEL_HEIGHT, MAIN_GUI_PIXEL_WIDTH, OODrawString(), OOGL, and OORectFromString().
Referenced by drawUniverse.
- (void) dumpCollisions |
Definition at line 6683 of file Universe.m.
References dumpCollisionInfo, and dumpCollisions.
Referenced by dumpCollisions, and viewMatrix.
- (BOOL) ECMVisualFXEnabled |
References currentSystemID, descriptions, ECMVisualFXEnabled, and filterSortedLists.
- (void) ensureEntityReallyRemoved: | (Entity *) | entity |
Definition at line 5701 of file Universe.m.
References doRemoveEntity:, NO_TARGET, and OOLog.
- (void) enterGUIViewModeWithMouseInteraction: | (BOOL) | mouseInteraction |
Definition at line 6768 of file Universe.m.
References gameController, GameController::setMouseInteractionModeForUIWithMouseInteraction:, and setViewDirection:.
Referenced by Universe(OOPrivate)::setUpInitialUniverse, and setupIntroFirstGo:.
- (NSArray *) entitiesWithinRange: | (double) | range | |
ofEntity: | (Entity *) | entity |
Definition at line 6344 of file Universe.m.
References findShipsMatchingPredicate:parameter:inRange:ofEntity:, and nil.
- (NSUInteger) entityCount |
Definition at line 974 of file Universe.m.
References entityCount.
Referenced by entityCount, and useAddOns.
- (id) entityForUniversalID: | (OOUniversalID) | u_id |
Definition at line 5346 of file Universe.m.
References entity_for_uid, MAX_ENTITY_UID, nil, NO_TARGET, OOLog, and PLAYER.
Definition at line 6458 of file Universe.m.
References Entity::collision_radius, OOINLINE, and Entity::position.
- (NSArray *) entityList |
Definition at line 1004 of file Universe.m.
References entityList.
Referenced by entityList, and useAddOns.
- (NSArray *) equipmentData |
References equipmentData.
- (NSArray *) equipmentDataOutfitting |
References equipmentDataOutfitting.
- (NSDictionary *) explosionSetting: | (NSString *) | explosion |
Definition at line 8074 of file Universe.m.
- (NSString *) expressPosition: | (HPVector) | pos | |
inCoordinateSystem: | (NSString *) | system |
Definition at line 2305 of file Universe.m.
References legacyPositionFrom:asCoordinateSystem:.
- (void) fillCargopodWithRandomCargo: | (ShipEntity *) | cargopod |
Definition at line 4377 of file Universe.m.
References CARGO_SCRIPTED_ITEM, getRandomAmountOfCommodity:, getRandomCommodity, nil, and ShipEntity::setCommodity:andAmount:.
Referenced by addShipAt:withRole:withinRadius:, addShipWithRole:launchPos:rfactor:, and witchspaceShipWithPrimaryRole:.
- (void) filterSortedLists |
Definition at line 7409 of file Universe.m.
References Entity::canCollide, Entity::collision_chain, Entity::collision_radius, Entity::collisionTestFilter, filterSortedLists, nil, OOLog, Entity::position, x_list_start, Entity::x_next, Entity::x_previous, y_list_start, Entity::y_next, Entity::y_previous, z_list_start, Entity::z_next, and Entity::z_previous.
Referenced by ECMVisualFXEnabled, filterSortedLists, and update:.
- (void) findCollisionsAndShadows |
Definition at line 6655 of file Universe.m.
References CollisionRegion::checkEntity:, CollisionRegion::clearEntityList, CollisionRegion::findCollisions, findCollisionsAndShadows, CollisionRegion::findShadowedEntities, gameController, and n_entities.
Referenced by findCollisionsAndShadows, update:, and viewMatrix.
- (OOSystemID) findConnectedSystemAtCoords: | (NSPoint) | coords | |
withGalaxy: | (OOGalaxyID) | gal |
Definition at line 8523 of file Universe.m.
References distanceBetweenPlanetPositions(), OOSystemDescriptionManager::getCoordinatesForSystem:inGalaxy:, and MAX_JUMP_RANGE.
- (NSMutableArray *) findEntitiesMatchingPredicate: | (EntityFilterPredicate) | predicate | |
parameter: | (void *) | parameter | |
inRange: | (double) | range | |
ofEntity: | (Entity *) | entity |
Definition at line 6468 of file Universe.m.
References EntityInRange(), kZeroHPVector, n_entities, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJSPauseTimeLimiter(), OOJSResumeTimeLimiter(), Entity::position, sortedEntities, and YESPredicate().
Referenced by findShipsMatchingPredicate:parameter:inRange:ofEntity:, and findVisualEffectsMatchingPredicate:parameter:inRange:ofEntity:.
- (OOSystemID) findNeighbouringSystemToCoords: | (NSPoint) | coords | |
withGalaxy: | (OOGalaxyID) | gal |
Definition at line 8476 of file Universe.m.
References distanceBetweenPlanetPositions(), OOSystemDescriptionManager::getCoordinatesForSystem:inGalaxy:, and MAX_JUMP_RANGE.
- (id) findOneEntityMatchingPredicate: | (EntityFilterPredicate) | predicate | |
parameter: | (void *) | parameter |
Definition at line 6508 of file Universe.m.
References n_entities, nil, OOJSPauseTimeLimiter(), OOJSResumeTimeLimiter(), sortedEntities, and YESPredicate().
Referenced by station, stationFriendlyTo:, and sun.
- (NSMutableArray *) findShipsMatchingPredicate: | (EntityFilterPredicate) | predicate | |
parameter: | (void *) | parameter | |
inRange: | (double) | range | |
ofEntity: | (Entity *) | entity |
Definition at line 6530 of file Universe.m.
References findEntitiesMatchingPredicate:parameter:inRange:ofEntity:, and IsShipPredicate().
Referenced by entitiesWithinRange:ofEntity:.
- (OOSystemID) findSystemAtCoords: | (NSPoint) | coords | |
withGalaxy: | (OOGalaxyID) | gal |
Definition at line 8444 of file Universe.m.
References findSystemNumberAtCoords:withGalaxy:includingHidden:, and OOLog.
- (NSPoint) findSystemCoordinatesWithPrefix: | (NSString *) | p_fix |
Definition at line 8618 of file Universe.m.
References findSystemCoordinatesWithPrefix:exactMatch:.
- (NSPoint) findSystemCoordinatesWithPrefix: | (NSString *) | p_fix | |
exactMatch: | (BOOL) | exactMatch |
Definition at line 8624 of file Universe.m.
References OOSystemDescriptionManager::getCoordinatesForSystem:inGalaxy:, OOSystemDescriptionManager::getPropertiesForSystem:inGalaxy:, nil, OO_SYSTEMCONCEALMENT_NONAME, and system_found.
Referenced by findSystemCoordinatesWithPrefix:.
- (OOSystemID) findSystemFromName: | (NSString *) | sysName |
Definition at line 8425 of file Universe.m.
References nil.
- (OOSystemID) findSystemNumberAtCoords: | (NSPoint) | coords | |
withGalaxy: | (OOGalaxyID) | gal | |
includingHidden: | (BOOL) | hidden |
Definition at line 8568 of file Universe.m.
References ABS, OOSystemDescriptionManager::getCoordinatesForSystem:inGalaxy:, OOSystemDescriptionManager::getPropertiesForSystem:inGalaxy:, kOOMinimumSystemID, OO_SYSTEMCONCEALMENT_NOTHING, PLAYER, and targetSystemID.
Referenced by findSystemAtCoords:withGalaxy:, and setUpUniverseFromStation.
- (NSMutableArray *) findVisualEffectsMatchingPredicate: | (EntityFilterPredicate) | predicate | |
parameter: | (void *) | parameter | |
inRange: | (double) | range | |
ofEntity: | (Entity *) | entity |
Definition at line 6558 of file Universe.m.
References findEntitiesMatchingPredicate:parameter:inRange:ofEntity:, and IsVisualEffectPredicate().
- (Entity< OOBeaconEntity > *) firstBeacon |
Definition at line 3751 of file Universe.m.
References firstBeacon, and OOWeakReference::weakRefUnderlyingObject.
Referenced by ambientLightLevel, clearBeacon:, firstBeacon, listBeaconsWithCode:, resetBeacons, Universe(OOPrivate)::setFirstBeacon:, and setNextBeacon:.
- (Entity *) firstEntityTargetedByPlayer |
Definition at line 6220 of file Universe.m.
References basis_vectors_from_quaternion(), Entity::collisionRadius, firstEntityTargetedByPlayer, M_PI, n_entities, nil, PlayerEntity::normalOrientation, OOVectorMultiplyMatrix(), PLAYER, quaternion_rotate_about_axis(), SCANNER_MAX_RANGE, sortedEntities, viewDirection, and PlayerEntity::weaponViewOffset.
Referenced by firstEntityTargetedByPlayer, and viewMatrix.
- (Entity *) firstEntityTargetedByPlayerPrecisely |
Definition at line 6306 of file Universe.m.
References ShipEntity::aftWeaponOffset, firstEntityTargetedByPlayerPrecisely, firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, ShipEntity::forwardWeaponOffset, kZeroVector, PLAYER, ShipEntity::portWeaponOffset, ShipEntity::starboardWeaponOffset, viewDirection, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_PORT, and WEAPON_FACING_STARBOARD.
Referenced by firstEntityTargetedByPlayerPrecisely, and viewMatrix.
- (ShipEntity *) firstShipHitByLaserFromShip: | (ShipEntity *) | srcEntity | |
inDirection: | (OOWeaponFacing) | direction | |
offset: | (Vector) | offset | |
gettingRangeFound: | (GLfloat*) | range_ptr |
Definition at line 6113 of file Universe.m.
References Entity::absolutePositionForSubentityOffset:, basis_vectors_from_quaternion(), Entity::boundingBox, Entity::collision_radius, M_PI, n_entities, nil, Entity::normalOrientation, OOVectorMultiplyMatrix(), Entity::orientation, Entity::parentEntity, Entity::position, quaternion_rotate_about_axis(), ShipEntity::setSubEntityTakingDamage:, sortedEntities, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_NONE, WEAPON_FACING_PORT, WEAPON_FACING_STARBOARD, and ShipEntity::weaponRange.
Referenced by firstEntityTargetedByPlayerPrecisely.
- (void) forceLightSwitch |
Definition at line 2101 of file Universe.m.
References demo_light_on, and forceLightSwitch.
Referenced by ambientLightLevel, and forceLightSwitch.
- (void) forceWitchspaceEntries |
Definition at line 3020 of file Universe.m.
References ShipEntity::enterTargetWormhole, forceWitchspaceEntries, n_entities, ShipEntity::primaryTarget, and sortedEntities.
Referenced by ambientLightLevel, and forceWitchspaceEntries.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10589 of file Universe.m.
References randf(), and SCANNER_MAX_RANGE.
Referenced by addShipsToRoute:withRole:quantity:routeFraction:asGroup:.
- (int) framesDoneThisUpdate |
References autoMessageLogBg, blockJSPlayerShipProps, framesDoneThisUpdate, INLINE_CONST_FUNC, int(), loadConditionScripts, OOINLINE, pauseMessageVisible, permanentCommLog, permanentMessageLog, and resetFramesDoneThisUpdate.
- (GameController *) gameController |
Definition at line 4493 of file Universe.m.
References gameController, MyOpenGLView::gameController, and gameView.
Referenced by drawMessage, drawUniverse, enterGUIViewModeWithMouseInteraction:, findCollisionsAndShadows, gameController, gameSettings, gameView, handleGameOver, handleOoliteException:, pauseGame, reinitAndShowDemo:, and setViewDirection:.
- (NSDictionary *) gameSettings |
Definition at line 4499 of file Universe.m.
References detailLevel, MyOpenGLView::fov:, gameController, gameSettings, gameView, MyOpenGLView::gammaValue, GameController::inFullScreenMode, kOOMusicITunes, kOOMusicOff, kOOMusicOn, and MyOpenGLView::viewSize.
Referenced by gameSettings, and gameView.
- (MyOpenGLView *) gameView |
References defineFrustum, drawMessage, drawUniverse, gameController, gameSettings, and gameView.
- (NSDictionary *) generateSystemData: | (OOSystemID) | s |
Definition at line 8143 of file Universe.m.
References generateSystemData:useCache:.
Referenced by currentSystemData, nearbyDestinationsWithinRange:, setSystemTo:, and shipsForSaleForSystem:withTL:atTime:.
- (NSDictionary *) generateSystemData: | (OOSystemID) | s | |
useCache: | (BOOL) | useCache |
Definition at line 8150 of file Universe.m.
References OOSystemDescriptionManager::getPropertiesForSystemKey:, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by generateSystemData:.
|
implementation |
Definition at line 8357 of file Universe.m.
References OOSystemDescriptionManager::getPropertiesForSystemKey:, and keyForPlanetOverridesForSystem:inGalaxy:.
Referenced by systemDataKeysForGalaxy:planet:.
|
implementation |
Definition at line 4650 of file Universe.m.
References aft_matrix, PlayerEntity::customViewForwardVector, PlayerEntity::customViewMatrix, PlayerEntity::customViewUpVector, fwd_matrix, kBasisXVector, kBasisYVector, kBasisZVector, nil, PLAYER, port_matrix, starboard_matrix, and viewDirection.
Referenced by activeViewMatrix, and drawUniverse.
- (OOJSScript *) getConditionScript: | (NSString *) | scriptname |
Definition at line 11045 of file Universe.m.
Referenced by canInstantiateShip:, and shipsForSaleForSystem:withTL:atTime:.
- (NSArray *) getContainersOfCommodity: | (OOCommodityType) | ||
commodity_name: | (OOCargoQuantity) | how_many |
Definition at line 4351 of file Universe.m.
References commodities, and OOLog.
- (NSArray *) getContainersOfGoods: | (OOCargoQuantity) | how_many | |
scarce: | (BOOL) | scarce | |
legal: | (BOOL) | legal |
Definition at line 4284 of file Universe.m.
References commodityMarket, OOCommodityMarket::count, OOCommodityMarket::goods, nil, OOLog, OOCommodityMarket::quantityForGood:, and Ranrot().
- (OOCreditsQuantity) getEquipmentPriceForKey: | (NSString *) | eq_key |
Definition at line 4229 of file Universe.m.
References equipmentData.
Referenced by shipsForSaleForSystem:withTL:atTime:.
- (NSDictionary *) getPopulatorSettings |
Definition at line 1768 of file Universe.m.
References getPopulatorSettings, and populatorSettings.
Referenced by getPopulatorSettings, and useAddOns.
- (OOCargoQuantity) getRandomAmountOfCommodity: | (OOCommodityType) | co_type |
Definition at line 4396 of file Universe.m.
References OOCommodities::massUnitForGood:, nil, OOLog, and Ranrot().
Referenced by fillCargopodWithRandomCargo:.
- (NSString *) getRandomCommodity |
Definition at line 4390 of file Universe.m.
References OOCommodities::getRandomCommodity, and getRandomCommodity.
Referenced by commodities, fillCargopodWithRandomCargo:, and getRandomCommodity.
- (HPVector) getSafeVectorFromEntity: | (Entity *) | e1 | |
toDistance: | (double) | dist | |
fromPoint: | (HPVector) | p2 |
Definition at line 5942 of file Universe.m.
References Entity::collision_radius, int(), kOOLogParameterError, kZeroHPVector, n_entities, OOLog, Entity::position, Ranrot(), and sortedEntities.
- (NSArray *) getStationMarkets |
Definition at line 9031 of file Universe.m.
References getStationMarkets, StationEntity::localMarket, nil, Entity::position, OOCommodityMarket::saveStationAmounts, station, stations, and UNIVERSE.
Referenced by commodityMarket, and getStationMarkets.
- (HPVector) getSunSkimEndPositionForShip: | (ShipEntity*) | ship |
Definition at line 9823 of file Universe.m.
References Entity::collision_radius, kOOLogInconsistentState, kOOLogParameterError, kZeroHPVector, OOLog, Entity::position, randf(), sun, and SUN_SKIM_RADIUS_FACTOR.
- (HPVector) getSunSkimStartPositionForShip: | (ShipEntity*) | ship |
Definition at line 9794 of file Universe.m.
References Entity::collision_radius, kOOLogInconsistentState, kOOLogParameterError, kZeroHPVector, OOLog, Entity::position, sun, and SUN_SKIM_RADIUS_FACTOR.
- (OOGovernmentID) getSystemGovernment: | (OOSystemID) | sys |
Definition at line 8389 of file Universe.m.
References OOSystemDescriptionManager::getProperty:forSystem:inGalaxy:.
- (NSString *) getSystemInhabitants: | (OOSystemID) | sys |
Definition at line 8395 of file Universe.m.
References getSystemInhabitants:plural:.
- (NSString *) getSystemInhabitants: | (OOSystemID) | sys | |
plural: | (BOOL) | plural |
Definition at line 8401 of file Universe.m.
References OOSystemDescriptionManager::getProperty:forSystem:inGalaxy:, and nil.
Referenced by getSystemInhabitants:.
- (NSString *) getSystemName: | (OOSystemID) | sys |
Definition at line 8377 of file Universe.m.
References getSystemName:forGalaxy:.
Referenced by setUpUniverseFromWitchspace, and speakWithSubstitutions:.
- (NSString *) getSystemName: | (OOSystemID) | sys | |
forGalaxy: | (OOGalaxyID) | gnum |
Definition at line 8383 of file Universe.m.
References OOSystemDescriptionManager::getProperty:forSystem:inGalaxy:.
Referenced by getSystemName:.
- (OOTimeAbsolute) getTime |
Definition at line 6643 of file Universe.m.
References getTime, and universal_time.
Referenced by getTime, showCommsLog:, and viewMatrix.
- (OOTimeDelta) getTimeDelta |
Definition at line 6649 of file Universe.m.
References getTimeDelta, and time_delta.
Referenced by getTimeDelta, and viewMatrix.
- (HPVector) getWitchspaceExitPosition |
Definition at line 9769 of file Universe.m.
References getWitchspaceExitPosition, and kZeroHPVector.
Referenced by addShipAt:withRole:withinRadius:, addShipsToRoute:withRole:quantity:routeFraction:asGroup:, addShipWithRole:nearRouteOneAt:, commodityMarket, coordinatesForPosition:withCoordinateSystem:returningScalar:, getWitchspaceExitPosition, and legacyPositionFrom:asCoordinateSystem:.
- (Quaternion) getWitchspaceExitRotation |
Definition at line 9775 of file Universe.m.
References gen_rnd_number(), and getWitchspaceExitRotation.
Referenced by commodityMarket, and getWitchspaceExitRotation.
- (NSDictionary *) globalSettings |
References globalSettings.
- (GuiDisplayGen *) gui |
References commLogGUI, gui, messageGUI, and resetCommsLogColor.
- (void) handleGameOver |
Definition at line 3186 of file Universe.m.
References gameController, handleGameOver, GameController::loadPlayerIfRequired, and setUseAddOns:fromSaveGame:forceReinit:.
Referenced by ambientLightLevel, and handleGameOver.
- (void) handleOoliteException: | (NSException *) | ooliteException |
Definition at line 10062 of file Universe.m.
References addMessage:forCount:, gameController, kOOLogException, nil, OOLITE_EXCEPTION_FATAL, OOLog, PLAYER, GameController::setGamePaused:, and ShipEntity::setStatus:.
Referenced by drawUniverse, and update:.
- (Entity *) hazardOnRouteFromEntity: | (Entity *) | e1 | |
toDistance: | (double) | dist | |
fromPoint: | (HPVector) | p2 |
Definition at line 5884 of file Universe.m.
References Entity::collision_radius, n_entities, nil, Entity::position, and sortedEntities.
- (BOOL) inInterstellarSpace |
Definition at line 8202 of file Universe.m.
References inInterstellarSpace, nil, and sun.
Referenced by currentSystemData, inInterstellarSpace, nearbyDestinationsWithinRange:, and systemManager.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 341 of file Universe.m.
References DETAIL_LEVEL_EXTRAS, detailLevel, framebufferQuadIndices, framebufferQuadVertices, GL_CLAMP_TO_EDGE, OO_POSTFX_NONE, OOGL, and OOLogERR.
Referenced by initWithGameView:.
- (id) initWithGameView: | (MyOpenGLView *) | gameView |
Definition at line 691 of file Universe.m.
References _doingStartUp, addEntity:, allPlanets, allStations, autoSave, comm_log_gui, PlayerEntity::completeSetUp, OOOpenGLExtensionManager::defaultDetailLevel, PlayerEntity::deferredInit, ResourceManager::dictionaryFromFilesNamed:inFolder:andMerge:, doProcedurallyTexturedPlanets, entities, entitiesDeadThisUpdate, framesDoneThisUpdate, gSharedUniverse, gui, initTargetFramebufferWithViewSize:, loadDescriptions, loadScenarios, GameController::logProgress:, OOSound::masterVolume, MIN_FOV_DEG, missiontext, nil, OO_DEBUG_PROGRESS, OOCPUInfoInit(), OOInitDebugSupport(), OOInitReallyRandom(), OOLog, populateNormalSpace, runLocalizationTools, setDetailLevelDirectly:, setECMVisualFXEnabled:, MyOpenGLView::setFov:fromFraction:, setGameView:, MyOpenGLView::setGammaValue:, MyOpenGLView::setMsaa:, PlayerEntity::setShowDemoShips:, ShipEntity::setStatus:, OOMaterial::setUp, setUpCargoPods, setUpInitialUniverse, setUpSettings, OOFlashEffectEntity::setUpTexture, OOLightParticleEntity::setUpTexture, ResourceManager::setUseAddOns:, OOCacheManager::sharedCache, GameController::sharedController, OOOpenGLExtensionManager::sharedManager, PlayerEntity::sharedPlayer, OOShipRegistry::sharedRegistry, OOJoystickManager::sharedStickHandler, speechSynthesizer, PlayerEntity::startUpComplete, universeRegion, useAddOns, MyOpenGLView::viewSize, waypoints, and wireframeGraphics.
|
implementation |
Definition at line 3621 of file Universe.m.
References Entity::isExplicitlyNotMainStation, and Entity::isStation.
|
implementation |
Definition at line 3627 of file Universe.m.
References ShipEntity::isHostileTo:, and Entity::isStation.
- (BOOL) isSpeaking |
Definition at line 10118 of file Universe.m.
References isSpeaking.
Referenced by airResistanceFactor, and isSpeaking.
- (BOOL) isVectorClearFromEntity: | (Entity *) | e1 | |
toDistance: | (double) | dist | |
fromPoint: | (HPVector) | p2 |
Definition at line 5823 of file Universe.m.
References Entity::collision_radius, n_entities, Entity::position, and sortedEntities.
- (NSString *) keyForInterstellarOverridesForSystems: | (OOSystemID) | ||
s1: | (OOSystemID) | s2 | |
inGalaxy: | (OOGalaxyID) | g |
Definition at line 8137 of file Universe.m.
Referenced by setUpWitchspaceBetweenSystem:andSystem:.
- (NSString *) keyForPlanetOverridesForSystem: | (OOSystemID) | s | |
inGalaxy: | (OOGalaxyID) | g |
Definition at line 8131 of file Universe.m.
Referenced by generateSystemDataForGalaxy:planet:.
- (Entity< OOBeaconEntity > *) lastBeacon |
Definition at line 3770 of file Universe.m.
References lastBeacon, and OOWeakReference::weakRefUnderlyingObject.
Referenced by ambientLightLevel, clearBeacon:, lastBeacon, and Universe(OOPrivate)::setLastBeacon:.
- (HPVector) legacyPositionFrom: | (HPVector) | pos | |
asCoordinateSystem: | (NSString *) | system |
Definition at line 2312 of file Universe.m.
References getWitchspaceExitPosition, kZeroHPVector, nil, planet, Entity::position, OOSunEntity::radius, and sun.
Referenced by expressPosition:inCoordinateSystem:.
|
implementation |
Definition at line 4579 of file Universe.m.
References demo_light_on, object_light_on, OOGL, sun_diffuse, sun_off, sun_specular, and useShaders.
Referenced by drawUniverse.
- (NSArray *) listBeaconsWithCode: | (NSString*) | code |
Definition at line 9870 of file Universe.m.
References firstBeacon, and nil.
- (void) loadConditionScripts |
Definition at line 11015 of file Universe.m.
References addConditionScripts:, conditionScripts, loadConditionScripts, OOCacheManager::objectForKey:inCache:, and OOCacheManager::sharedCache.
Referenced by framesDoneThisUpdate, and loadConditionScripts.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 8066 of file Universe.m.
References ResourceManager::dictionaryFromFilesNamed:inFolder:andMerge:, Universe(OOPrivate)::loadDescriptions, and verifyDescriptions.
Referenced by initWithGameView:, Universe(OOPrivate)::loadDescriptions, reinitAndShowDemo:, Universe(OOPrivate)::setShaderEffectsLevelDirectly:, and setUpSettings.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 8086 of file Universe.m.
References ResourceManager::arrayFromFilesNamed:inFolder:andMerge:, and Universe(OOPrivate)::loadScenarios.
Referenced by initWithGameView:, Universe(OOPrivate)::loadScenarios, reinitAndShowDemo:, and Universe(OOPrivate)::setShaderEffectsLevelDirectly:.
- (void) loadStationMarkets: | (NSArray *) | marketData |
Definition at line 8999 of file Universe.m.
References nil, StationEntity::setLocalMarket:, station, stations, and UNIVERSE.
- (HPVector) locationByCode: | (NSString *) | code | |
withSun: | (OOSunEntity *) | sun | |
andPlanet: | (OOPlanetEntity *) | planet |
Definition at line 1883 of file Universe.m.
References kOOLogUniversePopulateError, kZeroHPVector, LANE_WIDTH, locationByCode:withSun:andPlanet:, nil, OOHPVectorRandomSpatial(), OOLog, OOProjectHPVectorToPlane(), OORandomPositionInCylinder(), OORandomPositionInShell(), planet, randf(), SCANNER_MAX_RANGE, SCANNER_MAX_RANGE2, station, and sun.
Referenced by locationByCode:withSun:andPlanet:, and populateSystemFromDictionariesWithSun:andPlanet:.
|
implementation |
Definition at line 5375 of file Universe.m.
References Entity::addToLinkedLists, entities, kOOLogEntityVerificationError, kOOLogEntityVerificationRebuild, n_entities, nil, OOExtraLog, x_list_start, Entity::x_next, Entity::x_previous, y_list_start, Entity::y_next, Entity::y_previous, z_list_start, Entity::z_next, and Entity::z_previous.
- (ShipEntity *) makeDemoShipWithRole: | (NSString *) | role | |
spinning: | (BOOL) | spinning |
Definition at line 5783 of file Universe.m.
References Entity::collisionRadius, M_SQRT1_2, newShipWithRole:, nil, PLAYER, removeDemoShips, ShipEntity::removeEquipmentItem:, ShipEntity::setDemoShip:, Entity::setOrientation:, ShipEntity::setPendingEscortCount:, Entity::setPositionX:y:z:, Entity::setScanClass:, ShipEntity::setStatus:, and ShipEntity::switchAITo:.
- (void) makeSunSkimmer: | (ShipEntity *) | ship | |
andSetAI: | (BOOL) | setAI |
Definition at line 8971 of file Universe.m.
References ShipEntity::maxFlightSpeed, ShipEntity::setFuel:, ShipEntity::setHeatInsulation:, and ShipEntity::switchAITo:.
Referenced by addShipAt:withRole:withinRadius:, and witchspaceShipWithPrimaryRole:.
- (Random_Seed) marketSeed |
Definition at line 8981 of file Universe.m.
References Random_Seed::a, Random_Seed::b, Random_Seed::c, Random_Seed::d, Random_Seed::e, Random_Seed::f, OOSystemDescriptionManager::getRandomSeedForCurrentSystem, and marketSeed.
Referenced by commodityMarket, marketSeed, and shipsForSaleForSystem:withTL:atTime:.
- (OOCargoQuantity) maxCargoForShip: | (NSString *) | desc |
Definition at line 4221 of file Universe.m.
References OOShipRegistry::sharedRegistry, and OOShipRegistry::shipInfoForKey:.
- (GuiDisplayGen *) messageGUI |
Definition at line 9926 of file Universe.m.
References message_gui, and messageGUI.
Referenced by gui, and messageGUI.
- (NSDictionary *) missiontext |
- (NSMutableArray *) nearbyDestinationsWithinRange: | (double) | range |
Finds systems within range. If range is greater than 7.0LY then only look within 7.0LY.
Definition at line 8451 of file Universe.m.
References coordinatesForSystem:, distanceBetweenPlanetPositions(), generateSystemData:, inInterstellarSpace, MAX_JUMP_RANGE, and systemID.
- (id) nearestEntityMatchingPredicate: | (EntityFilterPredicate) | predicate | |
parameter: | (void *) | parameter | |
relativeToEntity: | (Entity *) | entity |
Definition at line 6586 of file Universe.m.
References kZeroHPVector, n_entities, nil, Entity::position, sortedEntities, and YESPredicate().
Referenced by nearestShipMatchingPredicate:parameter:relativeToEntity:.
- (id) nearestShipMatchingPredicate: | (EntityFilterPredicate) | predicate | |
parameter: | (void *) | parameter | |
relativeToEntity: | (Entity *) | entity |
Definition at line 6618 of file Universe.m.
References IsShipPredicate(), and nearestEntityMatchingPredicate:parameter:relativeToEntity:.
- (NSArray *) neighboursToSystem: | (OOSystemID) | system_number |
Definition at line 8797 of file Universe.m.
References closeSystems, OOSystemDescriptionManager::getNeighbourIDsForSystem:inGalaxy:, nil, and systemID.
Referenced by routeFromSystem:toSystem:optimizedBy:.
- (DockEntity *) newDockWithName: | (NSString *) | shipKey | |
andScaleFactor: | (float) | OO_RETURNS_RETAINED |
Definition at line 4143 of file Universe.m.
References kOOLogException, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOLITE_EXCEPTION_DATA_NOT_FOUND, OOLog, ShipEntity::setPrimaryRole:, OOShipRegistry::sharedRegistry, and OOShipRegistry::shipInfoForKey:.
- (ShipEntity *) newShipWithName: | (NSString *) | OO_RETURNS_RETAINED |
Definition at line 4183 of file Universe.m.
References newShipWithName:usePlayerProxy:.
Referenced by newShipWithRole:, and spawnShip:.
- (ShipEntity *) newShipWithName: | (NSString *) | shipKey | |
usePlayerProxy: | (BOOL) | OO_RETURNS_RETAINED |
Definition at line 4079 of file Universe.m.
References newShipWithName:usePlayerProxy:isSubentity:.
Referenced by newShipWithName:, setupIntroFirstGo:, and update:.
- (ShipEntity *) newShipWithName: | (NSString *) | shipKey | |
usePlayerProxy: | (BOOL) | usePlayerProxy | |
isSubentity: | (BOOL) | OO_RETURNS_RETAINED |
Definition at line 4084 of file Universe.m.
References newShipWithName:usePlayerProxy:isSubentity:andScaleFactor:.
Referenced by newShipWithName:usePlayerProxy:.
- (ShipEntity *) newShipWithName: | (NSString *) | shipKey | |
usePlayerProxy: | (BOOL) | usePlayerProxy | |
isSubentity: | (BOOL) | isSubentity | |
andScaleFactor: | (float) | OO_RETURNS_RETAINED |
Definition at line 4089 of file Universe.m.
References kOOLogException, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOLITE_EXCEPTION_DATA_NOT_FOUND, OOLog, ShipEntity::setPrimaryRole:, OOShipRegistry::sharedRegistry, shipClassForShipDictionary:, and OOShipRegistry::shipInfoForKey:.
Referenced by newShipWithName:usePlayerProxy:isSubentity:, and newSubentityWithName:andScaleFactor:.
- (ShipEntity *) newShipWithRole: | (NSString *) | OO_RETURNS_RETAINED |
Definition at line 3997 of file Universe.m.
References defaultAIForRole:, newShipWithName:, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, randomShipKeyForRoleRespectingConditions:, ShipEntity::setAITo:, ShipEntity::setBounty:withReason:, ShipEntity::setPrimaryRole:, Entity::setScanClass:, OOShipRegistry::sharedRegistry, and OOShipRegistry::shipInfoForKey:.
Referenced by addShipAt:withRole:withinRadius:, addShipWithRole:launchPos:rfactor:, makeDemoShipWithRole:spinning:, Universe(OOPrivate)::setUpCargoPods, and witchspaceShipWithPrimaryRole:.
- (ShipEntity *) newSubentityWithName: | (NSString *) | shipKey | |
andScaleFactor: | (float) | OO_RETURNS_RETAINED |
Definition at line 4073 of file Universe.m.
References newShipWithName:usePlayerProxy:isSubentity:andScaleFactor:.
- (OOVisualEffectEntity *) newVisualEffectWithName: | (NSString *) | OO_RETURNS_RETAINED |
Definition at line 4044 of file Universe.m.
References OOShipRegistry::effectInfoForKey:, kOOLogException, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOLITE_EXCEPTION_DATA_NOT_FOUND, OOLog, and OOShipRegistry::sharedRegistry.
Referenced by addVisualEffectAt:withKey:.
Definition at line 320 of file Universe.m.
References int(), OO_POSTFX_COLORBLINDNESS_TRITAN, and OO_POSTFX_NONE.
- (void) pauseGame |
Definition at line 1011 of file Universe.m.
References addMessage:forCount:, GuiDisplayGen::drawGUI:drawCursor:, gameController, gui, pauseGame, PLAYER, GameController::setGamePaused:, and setPauseMessageVisible:.
Referenced by pauseGame, and useAddOns.
- (BOOL) pauseMessageVisible |
Definition at line 10216 of file Universe.m.
References _pauseMessage, and pauseMessageVisible.
Referenced by framesDoneThisUpdate, and pauseMessageVisible.
- (BOOL) permanentCommLog |
Definition at line 10252 of file Universe.m.
References _permanentCommLog, and permanentCommLog.
Referenced by framesDoneThisUpdate, permanentCommLog, and showCommsLog:.
- (BOOL) permanentMessageLog |
Definition at line 10228 of file Universe.m.
References _permanentMessageLog, and permanentMessageLog.
Referenced by framesDoneThisUpdate, and permanentMessageLog.
- (OOPlanetEntity *) planet |
Definition at line 3677 of file Universe.m.
References allPlanets, cachedPlanet, count, nil, and planet.
Referenced by addEntity:, addShipsToRoute:withRole:quantity:routeFraction:asGroup:, ambientLightLevel, coordinatesForPosition:withCoordinateSystem:returningScalar:, legacyPositionFrom:asCoordinateSystem:, locationByCode:withSun:andPlanet:, planet, populateSystemFromDictionariesWithSun:andPlanet:, preloadPlanetTexturesForSystem:, setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:, and spawnShip:.
- (NSArray *) planets |
Definition at line 3697 of file Universe.m.
References allPlanets, and planets.
Referenced by ambientLightLevel, and planets.
- (void) populateNormalSpace |
Definition at line 1695 of file Universe.m.
References cachedPlanet, cachedStation, cachedSun, clearSystemPopulator, OOSystemDescriptionManager::getPropertiesForCurrentSystem, next_repopulation, nil, OO_DEBUG_POP_PROGRESS, OO_DEBUG_PUSH_PROGRESS, OOEnforceStandards(), OOJSAcquireContext(), OOJSRelinquishContext(), OOStandardsDeprecated(), PLAYER, populateNormalSpace, populateSystemFromDictionariesWithSun:andPlanet:, Entity::position, randf(), removeEntity:, OOSunEntity::setPosition:, SYSTEM_REPOPULATION_INTERVAL, system_repopulator, and systemID.
Referenced by carryPlayerOn:inWormhole:, initWithGameView:, populateNormalSpace, reinitAndShowDemo:, setUpUniverseFromStation, setUpUniverseFromWitchspace, and useAddOns.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10758 of file Universe.m.
References count, WormholeEntity::disgorgeShips, kOOLogException, nil, OOLog, PLAYER, and Universe(OOPrivate)::populateSpaceFromActiveWormholes.
Referenced by Universe(OOPrivate)::populateSpaceFromActiveWormholes, and setUpSpace.
- (void) populateSystemFromDictionariesWithSun: | (OOSunEntity *) | sun | |
andPlanet: | (OOPlanetEntity *) | planet |
Definition at line 1793 of file Universe.m.
References deterministic_population, EXPECT_NOT, OOSystemDescriptionManager::getRandomSeedForCurrentSystem, kZeroHPVector, locationByCode:withSun:andPlanet:, MakeRanrotSeed(), nil, planet, RANROTGetFullSeed(), RanrotSeedFromRandomSeed(), RANROTSetFullSeed(), RanrotWithSeed(), OOJSPopulatorDefinition::runCallback:, and sun.
Referenced by populateNormalSpace, and setUpWitchspaceBetweenSystem:andSystem:.
|
implementation |
Definition at line 10720 of file Universe.m.
References ResourceManager::ooSoundNamed:inFolder:.
Referenced by preloadSounds.
- (void) preloadPlanetTexturesForSystem: | (OOSystemID) | system |
Definition at line 8843 of file Universe.m.
References count, nil, and planet.
- (void) preloadSounds |
Definition at line 10729 of file Universe.m.
References count, customSounds, foreachkey, nil, PreloadOneSound, and preloadSounds.
Referenced by preloadSounds, and systemManager.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 5275 of file Universe.m.
References OOGL, and Universe(OOPrivate)::prepareToRenderIntoDefaultFramebuffer.
Referenced by drawUniverse, and Universe(OOPrivate)::prepareToRenderIntoDefaultFramebuffer.
Definition at line 328 of file Universe.m.
References int(), OO_POSTFX_COLORBLINDNESS_TRITAN, and OO_POSTFX_NONE.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10573 of file Universe.m.
References Universe(OOPrivate)::randomDistanceWithinScanner, Ranrot(), and SCANNER_MAX_RANGE.
Referenced by Universe(OOPrivate)::randomDistanceWithinScanner, Universe(OOPrivate)::randomPlaceWithinScannerFrom:alongRoute:withOffset:, Universe(OOPrivate)::setShaderEffectsLevelDirectly:, and setUpUniverseFromStation.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10579 of file Universe.m.
References randomDistanceWithinScanner.
- (NSString *) randomShipKeyForRoleRespectingConditions: | (NSString *) | role |
Definition at line 3946 of file Universe.m.
References count, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOLog, OOShipRegistry::probabilitySetForRole:, OOProbabilitySet::randomObject, OOShipRegistry::randomShipKeyForRole:, OOMutableProbabilitySet::removeObject:, and OOShipRegistry::sharedRegistry.
Referenced by newShipWithRole:.
- (BOOL) reducedDetail |
Definition at line 10010 of file Universe.m.
References DETAIL_LEVEL_MINIMUM, detailLevel, and reducedDetail.
Referenced by drawUniverse, reducedDetail, and wireframeGraphics.
- (ShipEntity *) reifyCargoPod: | (ShipEntity *) | cargoObj |
Definition at line 4252 of file Universe.m.
- (BOOL) reinitAndShowDemo: | (BOOL) | showDemo |
Definition at line 10423 of file Universe.m.
References _sessionID, addEntity:, autoSaveNow, breakPatternCounter, cachedPlanet, cachedStation, cachedSun, OOTexture::clearCache, PlayerEntity::completeSetUp, demo_ship, demo_ship_index, demo_ship_subindex, demo_ships, OOShipRegistry::demoShipKeys, ResourceManager::dictionaryFromFilesNamed:inFolder:andMerge:, PlayerEntity::doWorldEventUntilMissionScreen:, gameController, PlayerEntity::initControls, StationEntity::initialiseLocalMarket, JSResetFlags, loadDescriptions, loadScenarios, missiontext, nil, no_update, PLAYER, populateNormalSpace, OOShipRegistry::reload, removeAllEntitiesExceptPlayer, PlayerEntity::setDockedAtMainStation, GameController::setGamePaused:, PlayerEntity::setGuiToIntroFirstGo:, PlayerEntity::setGuiToStatusScreen, GameController::setMouseInteractionModeForUIWithMouseInteraction:, GameController::setPlayerFileToLoad:, ShipEntity::setStatus:, setUpCargoPods, setUpInitialUniverse, setUpSettings, ResourceManager::setUseAddOns:, OOShipRegistry::sharedRegistry, PlayerEntity::startUpComplete, station, and verifyEntitySessionIDs.
Referenced by setUseAddOns:fromSaveGame:forceReinit:.
- (void) removeAllEntitiesExceptPlayer |
Definition at line 5711 of file Universe.m.
References activeWormholes, cachedPlanet, cachedStation, cachedSun, StationEntity::clear, closeSystems, count, entities, EXPECT, Entity::isPlayer, Entity::isStation, kOOLogInconsistentState, n_entities, nil, no_update, OOLog, OOVisualEffectEntity::remove, removeAllEntitiesExceptPlayer, removeEntity:, and resetBeacons.
Referenced by carryPlayerOn:inWormhole:, reinitAndShowDemo:, removeAllEntitiesExceptPlayer, setUpUniverseFromStation, and viewMatrix.
- (void) removeDemoShips |
Definition at line 5763 of file Universe.m.
References demo_ship, n_entities, nil, removeDemoShips, removeEntity:, and sortedEntities.
Referenced by makeDemoShipWithRole:spinning:, removeDemoShips, setupIntroFirstGo:, and viewMatrix.
- (BOOL) removeEntity: | (Entity *) | entity |
Definition at line 5678 of file Universe.m.
References doRemoveEntity:, nil, and PLAYER.
Referenced by defineWaypoint:forKey:, populateNormalSpace, removeAllEntitiesExceptPlayer, removeDemoShips, setUpPlanet, setUpUniverseFromStation, update:, and Universe(OOPrivate)::verifyEntitySessionIDs.
|
implementation |
Definition at line 7065 of file Universe.m.
References EXPECT_NOT, next_repopulation, OOJSAcquireContext(), OOJSRelinquishContext(), PLAYER, repopulateSystem, and SYSTEM_REPOPULATION_INTERVAL.
Referenced by repopulateSystem, and update:.
- (void) resetBeacons |
Definition at line 3735 of file Universe.m.
References firstBeacon, nil, resetBeacons, setFirstBeacon:, and setLastBeacon:.
Referenced by ambientLightLevel, removeAllEntitiesExceptPlayer, resetBeacons, and setUpSettings.
- (void) resetCommsLogColor |
Definition at line 9942 of file Universe.m.
References resetCommsLogColor, GuiDisplayGen::setTextColor:, and OOColor::whiteColor.
Referenced by gui, and resetCommsLogColor.
- (void) resetFramesDoneThisUpdate |
Definition at line 5297 of file Universe.m.
References framesDoneThisUpdate, and resetFramesDoneThisUpdate.
Referenced by framesDoneThisUpdate, and resetFramesDoneThisUpdate.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 552 of file Universe.m.
References OOGL.
Referenced by drawUniverse.
- (BOOL) role: | (NSString *) | role | |
isInCategory: | (NSString *) | category |
Definition at line 3008 of file Universe.m.
References nil.
Referenced by roleIsPirateVictim:.
- (BOOL) roleIsPirateVictim: | (NSString *) | role |
Definition at line 3002 of file Universe.m.
References role:isInCategory:.
- (NSDictionary *) routeFromSystem: | (OOSystemID) | start | |
toSystem: | (OOSystemID) | goal | |
optimizedBy: | (OORouteType) | optimizeBy |
Definition at line 8668 of file Universe.m.
References RouteElement::cost, count, RouteElement::distance, distanceBetweenPlanetPositions(), RouteElement::elementWithLocation:parent:cost:distance:time:jumps:, OOSystemDescriptionManager::getCoordinatesForSystem:inGalaxy:, OOSystemDescriptionManager::getPropertiesForSystem:inGalaxy:, RouteElement::jumps, RouteElement::location, neighboursToSystem:, nil, OO_SYSTEMCONCEALMENT_NOTHING, OPTIMIZED_BY_TIME, RouteElement::parent, and RouteElement::time.
- (GLfloat) safeWitchspaceExitDistance |
Definition at line 3053 of file Universe.m.
References Entity::collisionRadius, MIN_DISTANCE_TO_BUOY, n_entities, safeWitchspaceExitDistance, and sortedEntities.
Referenced by ambientLightLevel, and safeWitchspaceExitDistance.
- (NSArray *) scenarios |
Definition at line 8080 of file Universe.m.
References _scenarios, and scenarios.
Referenced by missiontext, and scenarios.
- (NSDictionary *) screenTextureDescriptorForKey: | (NSString *) | key |
Definition at line 6837 of file Universe.m.
- (void) selectIntro2Next |
Definition at line 3614 of file Universe.m.
References DEMO_SHOW_THING, demo_stage, demo_stage_time, selectIntro2Next, and universal_time.
Referenced by ambientLightLevel, and selectIntro2Next.
- (void) selectIntro2NextCategory |
Definition at line 3605 of file Universe.m.
References count, demo_ship_index, demo_ship_subindex, demo_ships, DEMO_SHOW_THING, demo_stage, demo_stage_time, selectIntro2NextCategory, and universal_time.
Referenced by ambientLightLevel, and selectIntro2NextCategory.
- (void) selectIntro2Previous |
Definition at line 3587 of file Universe.m.
References demo_ship_subindex, DEMO_SHOW_THING, demo_stage, demo_stage_time, selectIntro2Previous, and universal_time.
Referenced by ambientLightLevel, and selectIntro2Previous.
- (void) selectIntro2PreviousCategory |
Definition at line 3596 of file Universe.m.
References count, demo_ship_index, demo_ship_subindex, demo_ships, DEMO_SHOW_THING, demo_stage, demo_stage_time, selectIntro2PreviousCategory, and universal_time.
Referenced by ambientLightLevel, and selectIntro2PreviousCategory.
- (NSUInteger) sessionID |
Definition at line 923 of file Universe.m.
References _sessionID, and sessionID.
Referenced by sessionID, and update:.
- (void) setAirResistanceFactor: | (GLfloat) | newFactor |
Definition at line 10090 of file Universe.m.
References airResistanceFactor.
Referenced by setSkyColorRed:green:blue:alpha:, and setUpUniverseFromMisjump.
- (void) setAmbientLightLevel: | (float) | newValue |
Definition at line 2009 of file Universe.m.
References ambientLightLevel, nil, and UNIVERSE.
- (void) setAutoCommLog: | (BOOL) | value |
Definition at line 10264 of file Universe.m.
References _autoCommLog.
- (void) setAutoMessageLogBg: | (BOOL) | value |
Definition at line 10246 of file Universe.m.
References _autoMessageLogBg.
- (void) setAutoSave: | (BOOL) | value |
Definition at line 9972 of file Universe.m.
References autoSave.
- (void) setAutoSaveNow: | (BOOL) | value |
Definition at line 9985 of file Universe.m.
References autoSaveNow.
- (void) setBlockJSPlayerShipProps: | (BOOL) | value |
Definition at line 10276 of file Universe.m.
References gOOJSPlayerIfStale, nil, and PLAYER.
- (void) setBloom: | (BOOL) | newBloom |
Definition at line 286 of file Universe.m.
References _bloom.
- (void) setCurrentPostFX: | (int) | newCurrentPostFX |
Definition at line 296 of file Universe.m.
References _colorblindMode, _currentPostFX, OO_POSTFX_COLORBLINDNESS_TRITAN, OO_POSTFX_ENDOFLIST, and OO_POSTFX_NONE.
Referenced by terminatePostFX:.
- (void) setDetailLevel: | (OOGraphicsDetail) | value |
Definition at line 10035 of file Universe.m.
References detailLevel, OOLog, OOStringFromGraphicsDetail(), OOGraphicsResetManager::resetGraphicsState, setDetailLevelDirectly:, and OOGraphicsResetManager::sharedManager.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10017 of file Universe.m.
References DETAIL_LEVEL_MAXIMUM, and DETAIL_LEVEL_MINIMUM.
Referenced by initWithGameView:, and setDetailLevel:.
- (void) setDisplayFPS: | (BOOL) | value |
Definition at line 9960 of file Universe.m.
References displayFPS.
- (void) setDisplayText: | (BOOL) | value |
Definition at line 9948 of file Universe.m.
References displayGUI.
Referenced by setViewDirection:.
- (void) setDockingClearanceProtocolActive: | (BOOL) | newValue |
Definition at line 3162 of file Universe.m.
References _dockingClearanceProtocolActive, nil, ShipEntity::primaryRole, OOShipRegistry::randomShipKeyForRole:, StationEntity::setRequiresDockingClearance:, OOShipRegistry::sharedRegistry, and station.
Referenced by Universe(OOPrivate)::setUpInitialUniverse.
- (void) setDoProcedurallyTexturedPlanets: | (BOOL) | value |
Definition at line 941 of file Universe.m.
References doProcedurallyTexturedPlanets.
- (void) setECMVisualFXEnabled: | (BOOL) | isEnabled |
Definition at line 7403 of file Universe.m.
References ECMVisualFXEnabled.
Referenced by initWithGameView:.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 3757 of file Universe.m.
References firstBeacon.
Referenced by clearBeacon:, resetBeacons, and setNextBeacon:.
- (void) setGalaxyTo: | (OOGalaxyID) | g |
Definition at line 7922 of file Universe.m.
References setGalaxyTo:andReinit:.
Referenced by setSystemTo:.
- (void) setGalaxyTo: | (OOGalaxyID) | g | |
andReinit: | (BOOL) | forced |
Definition at line 7928 of file Universe.m.
References galaxyID, OOSystemDescriptionManager::getProperty:forSystem:inGalaxy:, nil, and system_names.
Referenced by setGalaxyTo:, and Universe(OOPrivate)::setUpInitialUniverse.
- (void) setGameView: | (MyOpenGLView *) | view |
Definition at line 4480 of file Universe.m.
References gameView.
Referenced by initWithGameView:.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 3776 of file Universe.m.
References lastBeacon.
Referenced by clearBeacon:, resetBeacons, and setNextBeacon:.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 3307 of file Universe.m.
References count, demoShipData, OOColor::greenColor, kOODemoShipClass, kOODemoShipShipData, nil, OOExpand, OOShipLibraryCargo(), OOShipLibraryCategoryPlural(), OOShipLibraryCategorySingular(), OOShipLibraryGenerator(), OOShipLibraryShields(), OOShipLibrarySize(), OOShipLibrarySpeed(), OOShipLibraryTurnRate(), OOShipLibraryTurrets(), OOShipLibraryWeapons(), OOShipLibraryWitchspace(), Universe(OOPrivate)::setLibraryTextForDemoShip, OOColor::whiteColor, and OOColor::yellowColor.
Referenced by Universe(OOPrivate)::setLibraryTextForDemoShip, Universe(OOPrivate)::setShaderEffectsLevelDirectly:, setupIntroFirstGo:, and update:.
- (void) setLighting |
Definition at line 2024 of file Universe.m.
References ambientLightLevel, demo_light_position, docked_light_ambient, docked_light_diffuse, docked_light_specular, OOSunEntity::getDiffuseComponents:, OOColor::getRed:green:blue:alpha:, OOSunEntity::getSpecularComponents:, n_entities, nil, OOGL, Entity::position, setLighting, SKY_AMBIENT_ADJUSTMENT, SkyEntity::skyColor, sortedEntities, stars_ambient, sun, SUN_AMBIENT_INFLUENCE, sun_diffuse, and sun_specular.
Referenced by ambientLightLevel, setLighting, setUpSpace, and setUpWitchspaceBetweenSystem:andSystem:.
- (void) setMainLightPosition: | (Vector) | sunPos |
Definition at line 2107 of file Universe.m.
References main_light_position.
Referenced by drawUniverse, setUpSettings, and setViewDirection:.
- (void) setMessageGuiBackgroundColor: | (OOColor *) | some_color |
Definition at line 6876 of file Universe.m.
References GuiDisplayGen::setBackgroundColor:.
- (void) setNextBeacon: | (Entity <OOBeaconEntity> *) | beaconShip |
Definition at line 3789 of file Universe.m.
References firstBeacon, nil, OOLog, setFirstBeacon:, and setLastBeacon:.
Referenced by addEntity:.
- (void) setPauseMessageVisible: | (BOOL) | value |
Definition at line 10222 of file Universe.m.
References _pauseMessage.
Referenced by pauseGame.
- (void) setPermanentCommLog: | (BOOL) | value |
Definition at line 10258 of file Universe.m.
References _permanentCommLog.
- (void) setPermanentMessageLog: | (BOOL) | value |
Definition at line 10234 of file Universe.m.
References _permanentMessageLog.
- (void) setPopulatorSetting: | (NSString *) | key | |
to: | (NSDictionary *) | setting |
Definition at line 1774 of file Universe.m.
References nil.
- (void) setScreenTextureDescriptorForKey: | (NSString *) | key | |
descriptor: | (NSDictionary *) | desc |
Definition at line 6852 of file Universe.m.
References nil, and screenBackgrounds.
|
implementation |
Provided by category Universe(OOPrivate).
- (void) setSkyColorRed: | (GLfloat) | red | |
green: | (GLfloat) | green | |
blue: | (GLfloat) | blue | |
alpha: | (GLfloat) | alpha |
Definition at line 3874 of file Universe.m.
References setAirResistanceFactor:, and skyClearColor.
Referenced by setUpSpace.
- (void) setSystemDataForGalaxy: | (OOGalaxyID) | gnum | |
planet: | (OOSystemID) | pnum | |
key: | (NSString *) | key | |
value: | (id) | object | |
fromManifest: | (NSString *) | manifest | |
forLayer: | (OOSystemLayer) | layer |
Definition at line 8218 of file Universe.m.
References OOColor::blendedColorWithFraction:ofColor:, OOColor::brightColorWithDescription:, SkyEntity::changeProperty:withDictionary:, OOSunEntity::changeSunProperty:withDictionary:, OOColor::colorWithDescription:, currentSystemID, OOSunEntity::getDiffuseComponents:, OOSystemDescriptionManager::getPropertiesForCurrentSystem, OOSunEntity::getSpecularComponents:, KEY_NAME, KEY_RADIUS, KEY_TECHLEVEL, n_entities, nil, OOLogERR, planet, GuiDisplayGen::refreshStarChart, DustEntity::setDustColor:, StationEntity::setEquivalentTechLevel:, StationEntity::setLocalShipyard:, OOSystemDescriptionManager::setProperty:forSystemKey:andLayer:toValue:fromManifest:, OOSunEntity::setSunColor:, shipsForSaleForSystem:withTL:atTime:, SkyEntity::skyColor, sortedEntities, station, sun, system_names, and OOColor::whiteColor.
Referenced by setSystemDataKey:value:fromManifest:.
- (void) setSystemDataKey: | (NSString*) | key | |
value: | (NSObject*) | object | |
fromManifest: | (NSString *) | manifest |
Definition at line 8212 of file Universe.m.
References setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
- (void) setSystemTo: | (OOSystemID) | s |
Definition at line 7953 of file Universe.m.
References commodityMarket, DESTROY, PlayerEntity::galaxyNumber, OOCommodities::generateMarketForSystemWithEconomy:andScript:, generateSystemData:, PLAYER, setGalaxyTo:, systemID, and targetSystemID.
Referenced by carryPlayerOn:inWormhole:, and setUpUniverseFromStation.
- (void) setTimeAccelerationFactor: | (double) | newTimeAccelerationFactor |
Definition at line 7376 of file Universe.m.
References TIME_ACCELERATION_FACTOR_DEFAULT, TIME_ACCELERATION_FACTOR_MAX, and timeAccelerationFactor.
Referenced by setUpSettings.
- (void) setUpBreakPattern: | (HPVector) | pos | |
orientation: | (Quaternion) | q | |
forDocking: | (BOOL) | forDocking |
Definition at line 3067 of file Universe.m.
References addEntity:, BREAK_PATTERN_RING_SPACING, BREAK_PATTERN_RING_SPEED, breakPatternCounter, OOBreakPatternEntity::breakPatternWithPolygonSides:startAngle:aspectRatio:, OOColor::colorWithDescription:, OOColor::colorWithRed:green:blue:alpha:, globalSettings, Entity::isImmuneToBreakPatternHide, kOOBreakPatternMaxSides, nil, OOLogWARN, PLAYER, OOBreakPatternEntity::setInnerColor:outerColor:, OOBreakPatternEntity::setLifetime:, Entity::setOrientation:, Entity::setPosition:, Entity::setVelocity:, setViewDirection:, vector_forward_from_quaternion(), and witchspaceBreakPattern.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10379 of file Universe.m.
References newShipWithRole:, nil, ShipEntity::setCommodity:andAmount:, Entity::setScanClass:, and Universe(OOPrivate)::setUpCargoPods.
Referenced by initWithGameView:, reinitAndShowDemo:, and Universe(OOPrivate)::setUpCargoPods.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10540 of file Universe.m.
References PlayerEntity::baseMass, currentSystemData, enterGUIViewModeWithMouseInteraction:, PlayerEntity::galaxyNumber, OO_DEBUG_POP_PROGRESS, OO_DEBUG_PUSH_PROGRESS, PLAYER, Entity::position, setDockingClearanceProtocolActive:, setGalaxyTo:andReinit:, Entity::setOrientation:, Entity::setPosition:, Universe(OOPrivate)::setUpInitialUniverse, PlayerEntity::setUpShipFromDictionary:, setUpSpace, OOShipRegistry::sharedRegistry, ShipEntity::shipDataKey, OOShipRegistry::shipInfoForKey:, station, and PlayerEntity::systemID.
Referenced by initWithGameView:, reinitAndShowDemo:, and Universe(OOPrivate)::setUpInitialUniverse.
- (void) setupIntroFirstGo: | (BOOL) | justCobra |
Definition at line 3199 of file Universe.m.
References addEntity:, demo_ship, demo_ship_index, demo_ship_subindex, demo_ships, DEMO_SHOW_THING, demo_stage, demo_stage_time, OOShipRegistry::demoShipKeys, DESTROY, displayGUI, enterGUIViewModeWithMouseInteraction:, kOODemoShipClass, kOODemoShipKey, newShipWithName:usePlayerProxy:, nil, PLAYER, removeDemoShips, ShipEntity::removeEquipmentItem:, ShipEntity::setDemoShip:, ShipEntity::setDemoStartTime:, ShipEntity::setDestination:, setLibraryTextForDemoShip, Entity::setOrientation:, ShipEntity::setPendingEscortCount:, Entity::setPositionX:y:z:, Entity::setScanClass:, PlayerEntity::setShowDemoShips:, ShipEntity::setStatus:, OOShipRegistry::sharedRegistry, ShipEntity::switchAITo:, and universal_time.
- (OOPlanetEntity *) setUpPlanet |
Definition at line 1337 of file Universe.m.
References addEntity:, allPlanets, cachedPlanet, count, OOSystemDescriptionManager::getPropertiesForCurrentSystem, OOSystemDescriptionManager::getRandomSeedForCurrentSystem, OOLog, removeEntity:, seed_for_planet_description(), and setUpPlanet.
Referenced by ambientLightLevel, setUpPlanet, and setUpSpace.
- (void) setUpSettings |
Definition at line 10289 of file Universe.m.
References ResourceManager::arrayFromFilesNamed:inFolder:andMerge:, autoAIMap, characters, OOColor::colorWithDescription:, comm_log_gui, commodities, countdown_messageRepeatTime, customSounds, ResourceManager::dictionaryFromFilesNamed:inFolder:andMerge:, ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, entity_for_uid, equipmentData, equipmentDataOutfitting, explosionSettings, globalSettings, gui, loadDescriptions, OOEquipmentType::loadEquipment, message_gui, messageRepeatTime, next_universal_id, resetBeacons, roleCategories, ResourceManager::roleCategoriesDictionary, screenBackgrounds, setMainLightPosition:, GuiDisplayGen::setTextColor:, setTimeAccelerationFactor:, setUpSettings, speechArray, ResourceManager::systemDescriptionManager, systemManager, time_delta, universal_time, and GuiDisplayGen::userSettings.
Referenced by initWithGameView:, reinitAndShowDemo:, setUpSettings, and useAddOns.
- (void) setUpSpace |
Definition at line 1375 of file Universe.m.
References addEntity:, ambientLightLevel, OOColor::blendedColorWithFraction:ofColor:, cachedPlanet, cachedStation, cachedSun, CollisionRegion::clearSubregions, closeSystems, OOColor::colorWithDescription:, OOColor::colorWithHue:saturation:brightness:alpha:, DESTROY, OOSystemDescriptionManager::getPropertiesForCurrentSystem, OOSystemDescriptionManager::getRandomSeedForCurrentSystem, GameController::logProgress:, nil, OO_DEBUG_POP_PROGRESS, OO_DEBUG_PUSH_PROGRESS, OOLog, OOLogWARN, populateSpaceFromActiveWormholes, randf(), Ranrot(), seed_for_planet_description(), StationEntity::setAllegiance:, StationEntity::setAllowsFastDocking:, DustEntity::setDustColor:, Entity::setEnergy:, StationEntity::setEquivalentTechLevel:, setLighting, Entity::setOrientation:, ShipEntity::setPitch:, Entity::setPosition:, OOSunEntity::setPosition:, OOSunEntity::setRadius:andCorona:, Entity::setScanClass:, setSkyColorRed:green:blue:alpha:, Entity::setStatus:, ShipEntity::setStatus:, Entity::setThrowSparks:, setUpPlanet, setUpSpace, Entity::setVelocity:, GameController::sharedController, and OOColor::whiteColor.
Referenced by carryPlayerOn:inWormhole:, Universe(OOPrivate)::setUpInitialUniverse, setUpSpace, setUpUniverseFromStation, setUpUniverseFromWitchspace, and useAddOns.
- (void) setUpUniverseFromMisjump |
Definition at line 1229 of file Universe.m.
References addEntity:, count, displayGUI, entities, PlayerEntity::leaveWitchspace, setAirResistanceFactor:, setUpUniverseFromMisjump, setUpWitchspace, and setViewDirection:.
Referenced by setUpUniverseFromMisjump, and useAddOns.
- (void) setUpUniverseFromStation |
Definition at line 1109 of file Universe.m.
References autoSaveNow, StationEntity::clear, closeSystems, count, PlayerEntity::currentSystemID, displayGUI, PlayerEntity::dockedStation, ShipEntity::doScriptEvent:withArgument:, entities, findSystemNumberAtCoords:withGalaxy:includingHidden:, PlayerEntity::galaxy_coordinates, PlayerEntity::galaxyNumber, StationEntity::interstellarUndockingAllowed, Entity::isStation, PlayerEntity::jumpCause, nil, PLAYER, populateNormalSpace, quaternion_set_random(), randomDistanceWithinScanner, removeAllEntitiesExceptPlayer, removeEntity:, PlayerEntity::setJumpCause:, Entity::setPosition:, PlayerEntity::setPreviousSystemID:, PlayerEntity::setSystemID:, setSystemTo:, setUpSpace, setUpUniverseFromStation, setViewDirection:, setWitchspaceBreakPattern:, sun, and vector_forward_from_quaternion().
Referenced by setUpUniverseFromStation, and useAddOns.
- (void) setUpUniverseFromWitchspace |
Definition at line 1193 of file Universe.m.
References addEntity:, PlayerEntity::commLog, count, PlayerEntity::dial_clock_adjusted, displayGUI, entities, getSystemName:, PlayerEntity::leaveWitchspace, populateNormalSpace, GuiDisplayGen::printLongText:align:color:fadeTime:key:addToArray:, setUpSpace, setUpUniverseFromWitchspace, setViewDirection:, and OOColor::whiteColor.
Referenced by setUpUniverseFromWitchspace, and useAddOns.
- (void) setUpWitchspace |
Definition at line 1264 of file Universe.m.
References setUpWitchspace, and setUpWitchspaceBetweenSystem:andSystem:.
Referenced by setUpUniverseFromMisjump, setUpWitchspace, and useAddOns.
- (void) setUpWitchspaceBetweenSystem: | (OOSystemID) | s1 | |
andSystem: | (OOSystemID) | s2 |
Definition at line 1270 of file Universe.m.
References addEntity:, ambientLightLevel, CollisionRegion::clearSubregions, clearSystemPopulator, OOColor::colorWithRed:green:blue:alpha:, OOSystemDescriptionManager::getPropertiesForSystemKey:, keyForInterstellarOverridesForSystems:s1:inGalaxy:, kOOLogUniversePopulateWitchspace, next_repopulation, nil, OOEnforceStandards(), OOJSAcquireContext(), OOJSRelinquishContext(), OOLog, OOLogIndentIf, OOLogOutdentIf, OOStandardsDeprecated(), PLAYER, populateSystemFromDictionariesWithSun:andPlanet:, quaternion_set_random(), randf(), PlayerEntity::runUnsanitizedScriptActions:allowingAIMethods:withContextName:forTarget:, setLighting, Entity::setOrientation:, Entity::setScanClass:, SYSTEM_REPOPULATION_INTERVAL, and system_repopulator.
Referenced by carryPlayerOn:inWormhole:, and setUpWitchspace.
- (BOOL) setUseAddOns: | (NSString *) | newUse | |
fromSaveGame: | (BOOL) | saveGame |
Definition at line 954 of file Universe.m.
References setUseAddOns:fromSaveGame:forceReinit:.
- (BOOL) setUseAddOns: | (NSString *) | newUse | |
fromSaveGame: | (BOOL) | saveGame | |
forceReinit: | (BOOL) | force |
Definition at line 960 of file Universe.m.
References DESTROY, reinitAndShowDemo:, and useAddOns.
Referenced by handleGameOver, and setUseAddOns:fromSaveGame:.
- (void) setViewDirection: | (OOViewID) | vd |
Definition at line 6695 of file Universe.m.
References addMessage:forCount:, GuiDisplayGen::clear, DESC, displayGUI, gameController, GameController::isGamePaused, nil, setDisplayText:, setMainLightPosition:, GameController::setMouseInteractionModeForFlight, GameController::setMouseInteractionModeForUIWithMouseInteraction:, and viewDirection.
Referenced by enterGUIViewModeWithMouseInteraction:, setUpBreakPattern:orientation:forDocking:, setUpUniverseFromMisjump, setUpUniverseFromStation, and setUpUniverseFromWitchspace.
- (void) setWireframeGraphics: | (BOOL) | value |
Definition at line 9997 of file Universe.m.
References wireframeGraphics.
- (void) setWitchspaceBreakPattern: | (BOOL) | newValue |
Definition at line 3150 of file Universe.m.
References _witchspaceBreakPattern.
Referenced by carryPlayerOn:inWormhole:, and setUpUniverseFromStation.
- (Class) shipClassForShipDictionary: | (NSDictionary *) | dict |
Definition at line 4189 of file Universe.m.
References nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by newShipWithName:usePlayerProxy:isSubentity:andScaleFactor:.
- (NSArray *) shipsForSaleForSystem: | (OOSystemID) | s | |
withTL: | (OOTechLevelID) | specialTL | |
atTime: | (OOTimeAbsolute) | current_time |
Definition at line 9061 of file Universe.m.
References Random_Seed::a, Random_Seed::b, Random_Seed::c, OOJSScript::callMethod:inContext:withArguments:count:result:, compareName(), OOEquipmentType::conditionScript, count, cunningFee(), Random_Seed::d, DESC_PLURAL, descriptions, Random_Seed::e, ENTITY_PERSONALITY_MAX, OOEquipmentType::equipmentTypeWithIdentifier:, Random_Seed::f, generateSystemData:, getConditionScript:, getEquipmentPriceForKey:, isWeaponNone(), KEY_CHANCE, marketSeed, MAX, MIN, OOEquipmentType::name, nil, OOJSAcquireContext(), OOJSRelinquishContext(), OOJSValueFromNativeObject(), OOWeaponTypeFromEquipmentIdentifierSloppy(), PASSENGER_BERTH_SPACE, PLAYER, OOShipRegistry::playerShipKeys, OOEquipmentType::price, randf(), Ranrot(), ranrot_srand(), RANROTGetFullSeed(), RanrotSeedFromRandomSeed(), RANROTSetFullSeed(), RanrotWithSeed(), rotate_seed(), OOShipRegistry::sharedRegistry, OOShipRegistry::shipInfoForKey:, OOShipRegistry::shipyardInfoForKey:, OOEquipmentType::techLevel, VALID_WEAPON_FACINGS, WEAPON_FACING_AFT, and WEAPON_FACING_FORWARD.
Referenced by setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
- (NSString *) shortTimeDescription: | (OOTimeDelta) | interval |
Definition at line 8932 of file Universe.m.
References DESC.
- (void) showCommsLog: | (OOTimeDelta) | how_long |
Definition at line 7044 of file Universe.m.
References GuiDisplayGen::fadeOutFromTime:overDuration:, getTime, permanentCommLog, and GuiDisplayGen::setAlpha:.
Referenced by addCommsMessage:forCount:andShowComms:logOnly:.
- (void) showGUIMessage: | (NSString *) | text | |
withScroll: | (BOOL) | scroll | |
andColor: | (OOColor *) | selectedColor | |
overDuration: | (OOTimeDelta) | how_long |
Definition at line 7051 of file Universe.m.
References GuiDisplayGen::printLineNoScroll:align:color:fadeTime:key:addToArray:, GuiDisplayGen::printLongText:align:color:fadeTime:key:addToArray:, and GuiDisplayGen::setAlpha:.
Referenced by addCommsMessage:forCount:andShowComms:logOnly:, addMessage:forCount:forceDisplay:, displayCountdownMessage:forCount:, and displayMessage:forCount:.
- (GLfloat *) skyClearColor |
References breakPatternHide, breakPatternOver, and skyClearColor.
- (NSString *) soundNameForCustomSoundKey: | (NSString *) | key |
Definition at line 6775 of file Universe.m.
References count, nil, OOCacheManager::objectForKey:inCache:, OOLog, OOLogERR, OOCacheManager::setObject:forKey:inCache:, and OOCacheManager::sharedCache.
- (BOOL) spawnShip: | (NSString *) | shipdesc |
Definition at line 2603 of file Universe.m.
References addEntity:, coordinatesFromCoordinateSystemString:, kBasisZHPVector, kBasisZVector, kZeroHPVector, newShipWithName:, nil, OOHPVectorRandomRadial(), OOLogERR, OOLogWARN, OOStandardsDeprecated(), planet, Entity::position, quaternion_rotation_between(), SCANNER_MAX_RANGE, Entity::setOrientation:, Entity::setPosition:, OOShipRegistry::sharedRegistry, OOShipRegistry::shipInfoForKey:, and sun.
- (ShipEntity *) spawnShipWithRole: | (NSString *) | desc | |
near: | (Entity *) | entity |
Definition at line 2741 of file Universe.m.
References addShipWithRole:launchPos:rfactor:, Entity::collision_radius, nil, quaternion_set_random(), randf(), Entity::setOrientation:, and vector_forward_from_quaternion().
|
implementation |
Definition at line 6934 of file Universe.m.
References getSystemName:, nil, OOSPEECHSETTINGS_OFF, PLAYER, speechArray, startSpeakingString:, stopSpeaking, and PlayerEntity::targetSystemID.
Referenced by addCommsMessage:forCount:andShowComms:logOnly:, and addMessage:forCount:forceDisplay:.
- (void) startSpeakingString: | (NSString *) | text |
Definition at line 10099 of file Universe.m.
References OOSound::masterVolume.
Referenced by speakWithSubstitutions:.
- (StationEntity *) station |
Definition at line 3633 of file Universe.m.
References cachedStation, cachedSun, findOneEntityMatchingPredicate:parameter:, nil, and station.
Referenced by addShipsToRoute:withRole:quantity:routeFraction:asGroup:, addShipWithRole:nearRouteOneAt:, ambientLightLevel, getStationMarkets, loadStationMarkets:, locationByCode:withSun:andPlanet:, reinitAndShowDemo:, setDockingClearanceProtocolActive:, setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:, Universe(OOPrivate)::setUpInitialUniverse, station, stationWithRole:andPosition:, and unMagicMainStation.
- (StationEntity *) stationFriendlyTo: | (ShipEntity *) | ship |
Definition at line 3669 of file Universe.m.
References findOneEntityMatchingPredicate:parameter:.
- (NSArray *) stations |
Definition at line 3703 of file Universe.m.
References stations.
Referenced by ambientLightLevel, getStationMarkets, loadStationMarkets:, stations, and stationWithRole:andPosition:.
- (StationEntity *) stationWithRole: | (NSString *) | role | |
andPosition: | (HPVector) | position |
Definition at line 3644 of file Universe.m.
References nil, station, and stations.
- (void) stopSpeaking |
Definition at line 10105 of file Universe.m.
References speechSynthesizer, and stopSpeaking.
Referenced by airResistanceFactor, speakWithSubstitutions:, and stopSpeaking.
- (OOSunEntity *) sun |
Definition at line 3687 of file Universe.m.
References cachedSun, findOneEntityMatchingPredicate:parameter:, nil, and sun.
Referenced by addShipsToRoute:withRole:quantity:routeFraction:asGroup:, ambientLightLevel, coordinatesForPosition:withCoordinateSystem:returningScalar:, getSunSkimEndPositionForShip:, getSunSkimStartPositionForShip:, inInterstellarSpace, legacyPositionFrom:asCoordinateSystem:, locationByCode:withSun:andPlanet:, populateSystemFromDictionariesWithSun:andPlanet:, setLighting, setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:, setUpUniverseFromStation, spawnShip:, and sun.
- (id) systemDataForGalaxy: | (OOGalaxyID) | gnum | |
planet: | (OOSystemID) | pnum | |
key: | (NSString *) | key |
Definition at line 8371 of file Universe.m.
References OOSystemDescriptionManager::getProperty:forSystem:inGalaxy:.
- (NSArray *) systemDataKeysForGalaxy: | (OOGalaxyID) | gnum | |
planet: | (OOSystemID) | pnum |
Definition at line 8364 of file Universe.m.
References generateSystemDataForGalaxy:planet:.
- (OOSystemDescriptionManager *) systemManager |
References currentSystemData, inInterstellarSpace, preloadSounds, systemManager, and systemsFound.
- (NSString *) systemNameIndex: | (OOSystemID) | index |
Definition at line 8662 of file Universe.m.
References system_names.
- (BOOL *) systemsFound |
Definition at line 8656 of file Universe.m.
References system_found, and systemsFound.
Referenced by systemManager, and systemsFound.
- (void) terminatePostFX: | (int) | postFX |
Definition at line 312 of file Universe.m.
References colorblindMode, currentPostFX, and setCurrentPostFX:.
- (double) timeAccelerationFactor |
References timeAccelerationFactor.
- (NSString *) timeDescription: | (OOTimeDelta) | interval |
Definition at line 8900 of file Universe.m.
- (OOCreditsQuantity) tradeInValueForCommanderDictionary: | (NSDictionary*) | cmdr_dict |
Definition at line 9503 of file Universe.m.
References count, OOEquipmentType::equipmentTypeWithIdentifier:, nil, OOEquipmentIdentifierFromWeaponType(), OOLogERR, OOShipRegistry::sharedRegistry, OOShipRegistry::shipyardInfoForKey:, and UNIVERSE.
- (void) unMagicMainStation |
Definition at line 3715 of file Universe.m.
References cachedStation, Entity::isExplicitlyNotMainStation, nil, station, and unMagicMainStation.
Referenced by ambientLightLevel, and unMagicMainStation.
- (void) update: | (OOTimeDelta) | delta_t |
Definition at line 7078 of file Universe.m.
References _sessionID, count, DEMO2_FLY_IN_STAGE_TIME, DEMO2_VANISHING_DISTANCE, DEMO_FLY_IN, DEMO_FLY_OUT, demo_ship, demo_ship_index, demo_ship_subindex, demo_ships, DEMO_SHOW_THING, demo_stage, demo_stage_time, demo_start_time, demo_start_z, demoShipData, ShipEntity::destination, doLinkedListMaintenanceThisUpdate, entitiesDeadThisUpdate, EXPECT, EXPECT_NOT, filterSortedLists, findCollisionsAndShadows, OOJavaScriptEngine::garbageCollectionOpportunity:, ShipEntity::getAI, handleOoliteException:, kIdentityQuaternion, kOOLogException, M_PI, MaintainLinkedLists(), n_entities, newShipWithName:usePlayerProxy:, next_repopulation, AI::nextThinkTime, nil, no_update, OOJSAcquireContext(), OOJSRelinquishContext(), OOLog, OOLogERR, PLAYER, quaternion_rotate_about_y(), removeEntity:, ShipEntity::removeEquipmentItem:, repopulateSystem, sessionID, ShipEntity::setDemoShip:, ShipEntity::setDemoStartTime:, ShipEntity::setDestination:, setLibraryTextForDemoShip, AI::setNextThinkTime:, Entity::setOrientation:, Entity::setPosition:, Entity::setPositionX:y:z:, Entity::setScanClass:, ShipEntity::setStatus:, Entity::setVelocity:, OOJavaScriptEngine::sharedEngine, skyClearColor, sortedEntities, ShipEntity::switchAITo:, AI::think, AI::thinkTimeInterval, time_delta, timeAccelerationFactor, universal_time, Entity::update:, Entity::updateLinkedLists, verifyEntitySessionIDs, Entity::zero_distance, and Entity::zero_index.
- (NSString *) useAddOns |
References clearSystemPopulator, debugDumpEntities, deterministicPopulation, doingStartUp, entityCount, entityList, getPopulatorSettings, pauseGame, populateNormalSpace, setUpSettings, setUpSpace, setUpUniverseFromMisjump, setUpUniverseFromStation, setUpUniverseFromWitchspace, setUpWitchspace, and useAddOns.
- (void) useGUILightSource: | (BOOL) | GUILight |
Definition at line 4549 of file Universe.m.
References demo_light_on, OOGL, and useShaders.
- (BOOL) useShaders |
Definition at line 10056 of file Universe.m.
References DETAIL_LEVEL_SHADERS, detailLevel, and useShaders.
Referenced by detailLevel, drawUniverse, lightForEntity:, useGUILightSource:, and useShaders.
|
implementation |
Definition at line 8019 of file Universe.m.
References OOLogERR, VerifyDesc, VerifyDescArray, and VerifyDescString.
Referenced by VerifyDesc, and VerifyDescArray.
|
implementation |
Definition at line 8009 of file Universe.m.
References nil, and VerifyDesc.
Referenced by VerifyDesc.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 8041 of file Universe.m.
References foreachkey, nil, OOLog, and Universe(OOPrivate)::verifyDescriptions.
Referenced by descriptions, Universe(OOPrivate)::loadDescriptions, Universe(OOPrivate)::setShaderEffectsLevelDirectly:, and Universe(OOPrivate)::verifyDescriptions.
|
implementation |
Definition at line 7999 of file Universe.m.
References OOLog.
Referenced by VerifyDesc.
|
implementation |
Provided by category Universe(OOPrivate).
Definition at line 10396 of file Universe.m.
References nil, OOLogERR, removeEntity:, and Universe(OOPrivate)::verifyEntitySessionIDs.
Referenced by reinitAndShowDemo:, Universe(OOPrivate)::setShaderEffectsLevelDirectly:, update:, and Universe(OOPrivate)::verifyEntitySessionIDs.
- (OOViewID) viewDirection |
- (BOOL) viewFrustumIntersectsSphereAt: | (Vector) | position | |
withRadius: | (GLfloat) | radius |
Definition at line 4798 of file Universe.m.
References frustum.
- (OOMatrix) viewMatrix |
References collisionDescription, dumpCollisions, findCollisionsAndShadows, firstEntityTargetedByPlayer, firstEntityTargetedByPlayerPrecisely, getTime, getTimeDelta, removeAllEntitiesExceptPlayer, removeDemoShips, and viewMatrix.
- (BOOL) wireframeGraphics |
- (BOOL) witchspaceBreakPattern |
Definition at line 3144 of file Universe.m.
References _witchspaceBreakPattern, and witchspaceBreakPattern.
Referenced by ambientLightLevel, setUpBreakPattern:orientation:forDocking:, and witchspaceBreakPattern.
- (void) witchspaceShipWithPrimaryRole: | (NSString *) | role |
Definition at line 2683 of file Universe.m.
References currentSystemData, fillCargopodWithRandomCargo:, ShipEntity::leaveWitchspace, makeSunSkimmer:andSetAI:, newShipWithRole:, nil, ShipEntity::pendingEscortCount, randf(), OOCharacter::randomCharacterWithRole:andOriginalSystem:, Ranrot(), ShipEntity::setBounty:withReason:, ShipEntity::setCargoFlag:, ShipEntity::setCrew:, Entity::setScanClass:, and ShipEntity::switchAITo:.
- (NSArray *) wormholes |
Definition at line 3709 of file Universe.m.
References activeWormholes, and wormholes.
Referenced by ambientLightLevel, and wormholes.
|
private |
Definition at line 352 of file Universe.h.
Referenced by setAutoCommLog:.
|
private |
Definition at line 354 of file Universe.h.
Referenced by autoMessageLogBg, and setAutoMessageLogBg:.
|
private |
Definition at line 376 of file Universe.h.
|
private |
Definition at line 378 of file Universe.h.
Referenced by colorblindMode, and setCurrentPostFX:.
|
private |
Definition at line 377 of file Universe.h.
Referenced by currentPostFX, and setCurrentPostFX:.
|
private |
Definition at line 267 of file Universe.h.
Referenced by descriptions.
|
private |
Definition at line 357 of file Universe.h.
Referenced by dockingClearanceProtocolActive, and setDockingClearanceProtocolActive:.
|
private |
Definition at line 358 of file Universe.h.
Referenced by doingStartUp, and initWithGameView:.
|
private |
Definition at line 221 of file Universe.h.
Referenced by dealloc.
|
private |
Definition at line 222 of file Universe.h.
Referenced by dealloc.
|
private |
Definition at line 351 of file Universe.h.
Referenced by pauseMessageVisible, and setPauseMessageVisible:.
|
private |
Definition at line 353 of file Universe.h.
Referenced by permanentCommLog, and setPermanentCommLog:.
|
private |
Definition at line 355 of file Universe.h.
Referenced by permanentMessageLog, and setPermanentMessageLog:.
|
private |
Definition at line 270 of file Universe.h.
Referenced by scenarios.
|
private |
Definition at line 202 of file Universe.h.
Referenced by reinitAndShowDemo:, sessionID, and update:.
|
private |
Definition at line 356 of file Universe.h.
Referenced by setWitchspaceBreakPattern:, and witchspaceBreakPattern.
|
private |
Definition at line 320 of file Universe.h.
Referenced by removeAllEntitiesExceptPlayer, and wormholes.
|
private |
Definition at line 10084 of file Universe.m.
Referenced by airResistanceFactor, drawUniverse, and setAirResistanceFactor:.
|
private |
Definition at line 298 of file Universe.h.
Referenced by initWithGameView:, planet, planets, and setUpPlanet.
|
private |
Definition at line 299 of file Universe.h.
Referenced by initWithGameView:.
|
private |
Definition at line 2018 of file Universe.m.
Referenced by ambientLightLevel, setAmbientLightLevel:, setLighting, setUpSpace, and setUpWitchspaceBetweenSystem:andSystem:.
|
private |
Definition at line 278 of file Universe.h.
Referenced by setUpSettings.
|
private |
Definition at line 9979 of file Universe.m.
Referenced by autoSave, initWithGameView:, and setAutoSave:.
|
private |
Definition at line 9991 of file Universe.m.
Referenced by autoSaveNow, reinitAndShowDemo:, setAutoSaveNow:, and setUpUniverseFromStation.
|
private |
Definition at line 370 of file Universe.h.
|
private |
Definition at line 291 of file Universe.h.
Referenced by breakPatternHide, breakPatternOver, reinitAndShowDemo:, and setUpBreakPattern:orientation:forDocking:.
|
private |
Definition at line 296 of file Universe.h.
Referenced by planet, populateNormalSpace, reinitAndShowDemo:, removeAllEntitiesExceptPlayer, setUpPlanet, and setUpSpace.
|
private |
Definition at line 295 of file Universe.h.
Referenced by populateNormalSpace, reinitAndShowDemo:, removeAllEntitiesExceptPlayer, setUpSpace, station, and unMagicMainStation.
|
private |
Definition at line 297 of file Universe.h.
Referenced by drawUniverse, populateNormalSpace, reinitAndShowDemo:, removeAllEntitiesExceptPlayer, setUpSpace, station, and sun.
|
private |
Definition at line 282 of file Universe.h.
|
private |
Definition at line 322 of file Universe.h.
|
private |
Definition at line 8093 of file Universe.m.
Referenced by characters, and setUpSettings.
|
private |
Definition at line 308 of file Universe.h.
Referenced by neighboursToSystem:, removeAllEntitiesExceptPlayer, setUpSpace, and setUpUniverseFromStation.
|
private |
Definition at line 233 of file Universe.h.
Referenced by commLogGUI, initWithGameView:, and setUpSettings.
|
private |
Definition at line 4245 of file Universe.m.
Referenced by commodities, getContainersOfCommodity:commodity_name:, and setUpSettings.
|
private |
Definition at line 8894 of file Universe.m.
Referenced by commodityMarket, getContainersOfGoods:scarce:legal:, and setSystemTo:.
|
private |
Definition at line 349 of file Universe.h.
Referenced by addConditionScripts:, and loadConditionScripts.
|
private |
Definition at line 229 of file Universe.h.
Referenced by displayCountdownMessage:forCount:, and setUpSettings.
|
private |
Definition at line 227 of file Universe.h.
Referenced by addCommsMessage:forCount:andShowComms:logOnly:, addMessage:forCount:forceDisplay:, clearPreviousMessage, displayCountdownMessage:forCount:, and displayMessage:forCount:.
- (int) cursor_row |
Definition at line 194 of file Universe.h.
Referenced by drawMessage.
|
private |
Definition at line 268 of file Universe.h.
Referenced by preloadSounds, and setUpSettings.
|
private |
Definition at line 373 of file Universe.h.
Referenced by drawUniverse.
|
private |
Definition at line 293 of file Universe.h.
Referenced by reinitAndShowDemo:, removeDemoShips, setupIntroFirstGo:, and update:.
|
private |
Definition at line 255 of file Universe.h.
Referenced by reinitAndShowDemo:, selectIntro2NextCategory, selectIntro2PreviousCategory, setupIntroFirstGo:, and update:.
|
private |
Definition at line 256 of file Universe.h.
Referenced by reinitAndShowDemo:, selectIntro2NextCategory, selectIntro2Previous, selectIntro2PreviousCategory, setupIntroFirstGo:, and update:.
|
private |
Definition at line 257 of file Universe.h.
Referenced by reinitAndShowDemo:, selectIntro2NextCategory, selectIntro2PreviousCategory, setupIntroFirstGo:, and update:.
|
private |
Definition at line 254 of file Universe.h.
Referenced by selectIntro2Next, selectIntro2NextCategory, selectIntro2Previous, selectIntro2PreviousCategory, setupIntroFirstGo:, and update:.
|
private |
Definition at line 251 of file Universe.h.
Referenced by selectIntro2Next, selectIntro2NextCategory, selectIntro2Previous, selectIntro2PreviousCategory, setupIntroFirstGo:, and update:.
|
private |
Definition at line 252 of file Universe.h.
Referenced by update:.
|
private |
Definition at line 253 of file Universe.h.
Referenced by update:.
|
private |
Definition at line 10050 of file Universe.m.
Referenced by bloom, detailLevel, gameSettings, Universe(OOPrivate)::initTargetFramebufferWithViewSize:, reducedDetail, setDetailLevel:, and useShaders.
|
private |
Definition at line 306 of file Universe.h.
Referenced by deterministicPopulation, and populateSystemFromDictionariesWithSun:andPlanet:.
|
private |
Definition at line 9966 of file Universe.m.
Referenced by displayFPS, and setDisplayFPS:.
|
private |
Definition at line 9954 of file Universe.m.
Referenced by displayGUI, drawMessage, drawUniverse, setDisplayText:, setupIntroFirstGo:, setUpUniverseFromMisjump, setUpUniverseFromStation, setUpUniverseFromWitchspace, and setViewDirection:.
|
private |
Definition at line 327 of file Universe.h.
Referenced by addEntity:, and update:.
|
private |
Definition at line 935 of file Universe.m.
Referenced by doProcedurallyTexturedPlanets, initWithGameView:, and setDoProcedurallyTexturedPlanets:.
|
private |
Definition at line 261 of file Universe.h.
Referenced by dumpCollisions.
|
private |
Definition at line 7397 of file Universe.m.
Referenced by ECMVisualFXEnabled, and setECMVisualFXEnabled:.
|
private |
Definition at line 219 of file Universe.h.
Referenced by addEntity:, debugDumpEntities, initWithGameView:, MaintainLinkedLists, removeAllEntitiesExceptPlayer, setUpUniverseFromMisjump, setUpUniverseFromStation, and setUpUniverseFromWitchspace.
|
private |
Definition at line 329 of file Universe.h.
Referenced by initWithGameView:, and update:.
|
private |
Definition at line 217 of file Universe.h.
Referenced by addEntity:, entityForUniversalID:, and setUpSettings.
|
private |
Definition at line 8882 of file Universe.m.
Referenced by equipmentData, getEquipmentPriceForKey:, and setUpSettings.
|
private |
Definition at line 8888 of file Universe.m.
Referenced by equipmentDataOutfitting, and setUpSettings.
|
private |
Definition at line 280 of file Universe.h.
Referenced by setUpSettings.
|
private |
Definition at line 371 of file Universe.h.
|
private |
Definition at line 5291 of file Universe.m.
Referenced by drawUniverse, framesDoneThisUpdate, initWithGameView:, and resetFramesDoneThisUpdate.
|
private |
Definition at line 347 of file Universe.h.
Referenced by defineFrustum, and viewFrustumIntersectsSphereAt:withRadius:.
|
private |
Definition at line 284 of file Universe.h.
Referenced by setGalaxyTo:andReinit:.
|
private |
Definition at line 4487 of file Universe.m.
Referenced by drawUniverse, drawWatermarkString:, gameController, gameSettings, gameView, and setGameView:.
|
private |
Definition at line 8876 of file Universe.m.
Referenced by globalSettings, setUpBreakPattern:orientation:forDocking:, and setUpSettings.
|
private |
Definition at line 9914 of file Universe.m.
Referenced by gui, initWithGameView:, pauseGame, screenTextureDescriptorForKey:, and setUpSettings.
|
private |
Definition at line 259 of file Universe.h.
Referenced by drawUniverse, and setMainLightPosition:.
|
private |
Definition at line 232 of file Universe.h.
Referenced by messageGUI, and setUpSettings.
|
private |
Definition at line 228 of file Universe.h.
Referenced by addCommsMessage:forCount:andShowComms:logOnly:, addMessage:forCount:forceDisplay:, displayMessage:forCount:, and setUpSettings.
|
private |
Definition at line 8099 of file Universe.m.
Referenced by initWithGameView:, missiontext, and reinitAndShowDemo:.
|
private |
Definition at line 365 of file Universe.h.
|
private |
Definition at line 364 of file Universe.h.
Referenced by drawUniverse.
|
private |
Definition at line 360 of file Universe.h.
- (unsigned) n_entities |
Definition at line 192 of file Universe.h.
Referenced by addEntity:, allShipsDoScriptEvent:andReactToAIMessage:, countEntitiesMatchingPredicate:parameter:inRange:ofEntity:, debugDumpEntities, drawUniverse, findCollisionsAndShadows, findEntitiesMatchingPredicate:parameter:inRange:ofEntity:, findOneEntityMatchingPredicate:parameter:, firstEntityTargetedByPlayer, firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, forceWitchspaceEntries, getSafeVectorFromEntity:toDistance:fromPoint:, PlayerEntity(OOControlsPrivate)::handleAutopilotOn:, hazardOnRouteFromEntity:toDistance:fromPoint:, isVectorClearFromEntity:toDistance:fromPoint:, MaintainLinkedLists, nearestEntityMatchingPredicate:parameter:relativeToEntity:, removeAllEntitiesExceptPlayer, removeDemoShips, safeWitchspaceExitDistance, setLighting, setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:, and update:.
|
private |
Definition at line 304 of file Universe.h.
Referenced by populateNormalSpace, repopulateSystem, setUpWitchspaceBetweenSystem:andSystem:, and update:.
|
private |
Definition at line 216 of file Universe.h.
Referenced by addEntity:, and setUpSettings.
|
private |
Definition at line 312 of file Universe.h.
Referenced by drawUniverse, reinitAndShowDemo:, removeAllEntitiesExceptPlayer, and update:.
|
private |
Definition at line 368 of file Universe.h.
|
private |
Definition at line 362 of file Universe.h.
|
private |
Definition at line 375 of file Universe.h.
|
private |
Definition at line 374 of file Universe.h.
|
private |
Definition at line 303 of file Universe.h.
Referenced by clearSystemPopulator, and getPopulatorSettings.
|
private |
Definition at line 372 of file Universe.h.
|
private |
Definition at line 372 of file Universe.h.
|
private |
Definition at line 372 of file Universe.h.
|
private |
Definition at line 277 of file Universe.h.
Referenced by setUpSettings.
|
private |
Definition at line 279 of file Universe.h.
Referenced by setScreenTextureDescriptorForKey:descriptor:, and setUpSettings.
|
private |
Definition at line 3868 of file Universe.m.
Referenced by drawUniverse, setSkyColorRed:green:blue:alpha:, skyClearColor, and update:.
- (Entity* sortedEntities[UNIVERSE_MAX_ENTITIES+1]) |
Definition at line 191 of file Universe.h.
Referenced by addEntity:, allShipsDoScriptEvent:andReactToAIMessage:, countEntitiesMatchingPredicate:parameter:inRange:ofEntity:, debugDumpEntities, drawUniverse, findEntitiesMatchingPredicate:parameter:inRange:ofEntity:, findOneEntityMatchingPredicate:parameter:, firstEntityTargetedByPlayer, firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, forceWitchspaceEntries, getSafeVectorFromEntity:toDistance:fromPoint:, PlayerEntity(OOControlsPrivate)::handleAutopilotOn:, hazardOnRouteFromEntity:toDistance:fromPoint:, isVectorClearFromEntity:toDistance:fromPoint:, nearestEntityMatchingPredicate:parameter:relativeToEntity:, removeDemoShips, safeWitchspaceExitDistance, setLighting, setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:, and update:.
|
private |
Definition at line 339 of file Universe.h.
Referenced by setUpSettings, and speakWithSubstitutions:.
|
private |
Definition at line 334 of file Universe.h.
Referenced by initWithGameView:, and stopSpeaking.
- (GLfloat stars_ambient[4]) |
Definition at line 199 of file Universe.h.
Referenced by drawUniverse, and setLighting.
|
private |
Definition at line 205 of file Universe.h.
Referenced by lightForEntity:, and setLighting.
|
private |
Definition at line 206 of file Universe.h.
Referenced by lightForEntity:, and setLighting.
|
private |
Definition at line 289 of file Universe.h.
Referenced by findSystemCoordinatesWithPrefix:exactMatch:, and systemsFound.
|
private |
Definition at line 288 of file Universe.h.
Referenced by dealloc, setGalaxyTo:andReinit:, setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:, and systemNameIndex:.
|
private |
Definition at line 305 of file Universe.h.
Referenced by populateNormalSpace, and setUpWitchspaceBetweenSystem:andSystem:.
|
private |
Definition at line 285 of file Universe.h.
Referenced by currentSystemID, nearbyDestinationsWithinRange:, neighboursToSystem:, populateNormalSpace, and setSystemTo:.
|
private |
Definition at line 8125 of file Universe.m.
Referenced by setUpSettings, and systemManager.
|
private |
Definition at line 366 of file Universe.h.
|
private |
Definition at line 367 of file Universe.h.
Referenced by drawUniverse.
|
private |
Definition at line 363 of file Universe.h.
Referenced by drawUniverse.
|
private |
Definition at line 286 of file Universe.h.
Referenced by findSystemNumberAtCoords:withGalaxy:includingHidden:, and setSystemTo:.
|
private |
Definition at line 361 of file Universe.h.
|
private |
Definition at line 369 of file Universe.h.
|
private |
Definition at line 249 of file Universe.h.
Referenced by getTimeDelta, setUpSettings, and update:.
|
private |
Definition at line 7370 of file Universe.m.
Referenced by setTimeAccelerationFactor:, timeAccelerationFactor, and update:.
|
private |
Definition at line 248 of file Universe.h.
Referenced by addCommsMessage:forCount:andShowComms:logOnly:, addMessage:forCount:forceDisplay:, displayCountdownMessage:forCount:, displayMessage:forCount:, getTime, selectIntro2Next, selectIntro2NextCategory, selectIntro2Previous, selectIntro2PreviousCategory, setupIntroFirstGo:, setUpSettings, and update:.
|
private |
Definition at line 324 of file Universe.h.
Referenced by collisionDescription, and initWithGameView:.
|
private |
Definition at line 948 of file Universe.m.
Referenced by initWithGameView:, setUseAddOns:fromSaveGame:forceReinit:, and useAddOns.
|
private |
Definition at line 6689 of file Universe.m.
Referenced by firstEntityTargetedByPlayer, firstEntityTargetedByPlayerPrecisely, getActiveViewMatrix:forwardVector:upVector:, setViewDirection:, and viewDirection.
|
private |
Definition at line 5303 of file Universe.m.
Referenced by drawUniverse, and viewMatrix.
|
private |
Definition at line 236 of file Universe.h.
Referenced by drawUniverse.
|
private |
Definition at line 223 of file Universe.h.
Referenced by currentWaypoints, dealloc, and initWithGameView:.
|
private |
Definition at line 10004 of file Universe.m.
Referenced by initWithGameView:, setWireframeGraphics:, and wireframeGraphics.
- (Entity*) x_list_start |
Definition at line 197 of file Universe.h.
Referenced by filterSortedLists, and MaintainLinkedLists.
- (Entity *) y_list_start |
Definition at line 197 of file Universe.h.
Referenced by filterSortedLists, and MaintainLinkedLists.
- (Entity *) z_list_start |
Definition at line 197 of file Universe.h.
Referenced by filterSortedLists, and MaintainLinkedLists.