Oolite
Loading...
Searching...
No Matches
Universe.h
Go to the documentation of this file.
1/*
2
3Universe.h
4
5Manages a lot of stuff that isn't managed somewhere else.
6
7Oolite
8Copyright (C) 2004-2013 Giles C Williams and contributors
9
10This program is free software; you can redistribute it and/or
11modify it under the terms of the GNU General Public License
12as published by the Free Software Foundation; either version 2
13of the License, or (at your option) any later version.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23MA 02110-1301, USA.
24
25*/
26
27#import "OOColor.h"
28#import "OOCommodities.h"
30#import "OOFoundation.h"
31#import "OOJSPropID.h"
32#import "OOMaths.h"
33#import "OOOpenGL.h"
34#import "OOShaderProgram.h"
35#import "OOSound.h"
36#import "OOStellarBody.h"
38#import "OOTypes.h"
39#import "OOWeakReference.h"
40#import "legacy_random.h"
41
42#if OOLITE_ESPEAK
43#include <espeak-ng/speak_lib.h>
44#endif
45
47 Entity, ShipEntity, StationEntity, OOPlanetEntity, OOSunEntity,
50
51typedef BOOL (*EntityFilterPredicate)(Entity* entity, void* parameter);
52
53#ifndef OO_SCANCLASS_TYPE
54#define OO_SCANCLASS_TYPE
55typedef enum OOScanClass OOScanClass;
56#endif
57
58#define CROSSHAIR_SIZE 32.0
59
60enum {
71};
72
73enum {
80};
81
82enum {
92 OO_POSTFX_ENDOFLIST // keep this for last
93};
94
95#define SHADERS_MIN SHADERS_OFF
96
97#define MAX_MESSAGES 5
98
99#define PROXIMITY_WARN_DISTANCE 4 // Eric 2010-10-17: old value was 20.0
100#define PROXIMITY_WARN_DISTANCE2 (PROXIMITY_WARN_DISTANCE * PROXIMITY_WARN_DISTANCE)
101#define PROXIMITY_AVOID_DISTANCE_FACTOR 10.0
102#define SAFE_ADDITION_FACTOR2 800 // Eric 2010-10-17: used to be "2 * PROXIMITY_WARN_DISTANCE2"
103
104#define SUN_SKIM_RADIUS_FACTOR 1.15470053838 // 2 sqrt(3) / 3. Why? I have no idea. -- Ahruman 2009-10-04
105#define SUN_SPARKS_RADIUS_FACTOR 2.0
106
107#define KEY_TECHLEVEL @"techlevel"
108#define KEY_ECONOMY @"economy"
109#define KEY_ECONOMY_DESC @"economy_description"
110#define KEY_GOVERNMENT @"government"
111#define KEY_GOVERNMENT_DESC @"government_description"
112#define KEY_POPULATION @"population"
113#define KEY_POPULATION_DESC @"population_description"
114#define KEY_PRODUCTIVITY @"productivity"
115#define KEY_RADIUS @"radius"
116#define KEY_NAME @"name"
117#define KEY_INHABITANT @"inhabitant"
118#define KEY_INHABITANTS @"inhabitants"
119#define KEY_DESCRIPTION @"description"
120#define KEY_SHORT_DESCRIPTION @"short_description"
121#define KEY_PLANETNAME @"planet_name"
122#define KEY_SUNNAME @"sun_name"
123
124#define KEY_CHANCE @"chance"
125#define KEY_PRICE @"price"
126#define KEY_OPTIONAL_EQUIPMENT @"optional_equipment"
127#define KEY_STANDARD_EQUIPMENT @"standard_equipment"
128#define KEY_EQUIPMENT_MISSILES @"missiles"
129#define KEY_EQUIPMENT_FORWARD_WEAPON @"forward_weapon_type"
130#define KEY_EQUIPMENT_AFT_WEAPON @"aft_weapon_type"
131#define KEY_EQUIPMENT_PORT_WEAPON @"port_weapon_type"
132#define KEY_EQUIPMENT_STARBOARD_WEAPON @"starboard_weapon_type"
133#define KEY_EQUIPMENT_EXTRAS @"extras"
134#define KEY_WEAPON_FACINGS @"weapon_facings"
135#define KEY_RENOVATION_MULTIPLIER @"renovation_multiplier"
136
137#define SHIPYARD_KEY_ID @"id"
138#define SHIPYARD_KEY_SHIPDATA_KEY @"shipdata_key"
139#define SHIPYARD_KEY_SHIP @"ship"
140#define SHIPYARD_KEY_PRICE @"price"
141#define SHIPYARD_KEY_PERSONALITY @"personality"
142// default passenger berth required space
143#define PASSENGER_BERTH_SPACE 5
144
145#define PLANETINFO_UNIVERSAL_KEY @"universal"
146#define PLANETINFO_INTERSTELLAR_KEY @"interstellar space"
147
148#define OOLITE_EXCEPTION_LOOPING @"OoliteLoopingException"
149#define OOLITE_EXCEPTION_DATA_NOT_FOUND @"OoliteDataNotFoundException"
150#define OOLITE_EXCEPTION_FATAL @"OoliteFatalException"
151
152// the distance the sky backdrop is from the camera
153// though it appears at infinity
154#define BILLBOARD_DEPTH 75000.0
155
156#define TIME_ACCELERATION_FACTOR_MIN 0.0625f
157#define TIME_ACCELERATION_FACTOR_DEFAULT 1.0f
158#define TIME_ACCELERATION_FACTOR_MAX 16.0f
159
160#define DEMO_LIGHT_POSITION 5000.0f, 25000.0f, -10000.0f
161
162#define MIN_DISTANCE_TO_BUOY 750.0f // don't add ships within this distance
163#define MIN_DISTANCE_TO_BUOY2 (MIN_DISTANCE_TO_BUOY * MIN_DISTANCE_TO_BUOY)
164
165// if this is changed, also change oolite-populator.js
166// once this number has been in a stable release, cannot easily be changed
167#define SYSTEM_REPOPULATION_INTERVAL 20.0f;
168
169#ifndef OO_LOCALIZATION_TOOLS
170#define OO_LOCALIZATION_TOOLS 1
171#endif
172
173#ifndef MASS_DEPENDENT_FUEL_PRICES
174#define MASS_DEPENDENT_FUEL_PRICES 1
175#endif
176
178@public
179 // use a sorted list for drawing and other activities
180 Entity* sortedEntities[UNIVERSE_MAX_ENTITIES + 1]; // One extra for padding; see -doRemoveEntity:.
181 unsigned n_entities;
182
184
185 // collision optimisation sorted lists
187
188 GLfloat stars_ambient[4];
189
190@private
191 NSUInteger _sessionID;
192
193 // colors
194 GLfloat sun_diffuse[4];
195 GLfloat sun_specular[4];
196
198
200
201 GLfloat airResistanceFactor;
202
204
206 Entity* entity_for_uid[MAX_ENTITY_UID];
207
208 NSMutableArray* entities;
209
212 NSMutableDictionary* waypoints;
213
214 GLfloat skyClearColor[4];
215
216 NSString* currentMessage;
218 OOTimeAbsolute countdown_messageRepeatTime; // Getafix(4/Aug/2010) - Quickfix countdown messages colliding with weapon overheat messages.
219 // For proper handling of message dispatching, code refactoring is needed.
223
224 BOOL displayGUI;
226
227 BOOL autoSaveNow;
228 BOOL autoSave;
231 // Above entry replaces these two
232 // BOOL reducedDetail;
233 // OOShaderSetting shaderEffectsLevel;
234
235 BOOL displayFPS;
236
239
244 NSUInteger demo_ship_index;
246 NSArray* demo_ships;
247
249
251
254
255 NSDictionary* _descriptions; // holds descriptive text for lots of stuff, loaded at initialisation
256 NSDictionary* customSounds; // holds descriptive audio for lots of stuff, loaded at initialisation
257 NSDictionary* characters; // holds descriptons of characters
258 NSArray* _scenarios; // game start scenarios
259 NSDictionary* globalSettings; // miscellaneous global game settings
260 OOSystemDescriptionManager* systemManager; // planetinfo data manager
261 NSDictionary* missiontext; // holds descriptive text for missions, loaded at initialisation
262 NSArray* equipmentData; // holds data on available equipment, loaded at initialisation
264 // NSSet *pirateVictimRoles; // Roles listed in pirateVictimRoles.plist.
265 NSDictionary* roleCategories; // Categories for roles from role-categories.plist, extending the old pirate-victim-roles.plist
266 NSDictionary* autoAIMap; // Default AIs for roles from autoAImap.plist.
267 NSDictionary* screenBackgrounds; // holds filenames for various screens backgrounds, loaded at initialisation
268 NSDictionary* explosionSettings; // explosion settings from explosions.plist
269
270 NSDictionary* cargoPods; // template cargo pods
271
275
276 NSString* system_names[256]; // hold pregenerated universe info
277 BOOL system_found[256]; // holds matches for input strings
278
280
282
284 OOPlanetEntity* cachedPlanet;
286 NSMutableArray* allPlanets;
287 NSMutableSet* allStations;
288
289 float ambientLightLevel;
290
291 NSMutableDictionary* populatorSettings;
295
296 NSArray* closeSystems;
297
298 NSString* useAddOns;
299
301
302#ifdef OO_DEBUG_MONITOR_ENABLED
304#endif
305
307
308 NSMutableArray* activeWormholes;
309
310 NSMutableArray* characterPool;
311
313
314 // check and maintain linked lists occasionally
316
319 NSUInteger drawCounter;
320
321#if OOLITE_SPEECH_SYNTH
322#if OOLITE_MAC_COCOA_UI
323 NSSpeechSynthesizer* speechSynthesizer;
324#elif OOLITE_ESPEAK
325 const espeak_VOICE** espeak_voices;
326 unsigned int espeak_voice_count;
327#endif
328 NSArray* speechArray;
329#endif
330
331#if NEW_PLANETS
332 NSMutableArray* _preloadingPlanetMaterials;
333#endif
335
336 GLfloat frustum[6][4];
337
338 NSMutableDictionary* conditionScripts;
339
348
358 OOShaderProgram* textureProgram;
359 OOShaderProgram* blurProgram;
360 OOShaderProgram* finalProgram;
363 GLuint pingpongFBO[2];
365 BOOL _bloom;
368}
369
370- (BOOL)bloom;
371- (void)setBloom:(BOOL)newBloom;
372
373- (int)currentPostFX;
374- (void)setCurrentPostFX:(int)newCurrentPostFX;
375- (void)terminatePostFX:(int)postFX;
376
377- (id)initWithGameView:(MyOpenGLView*)gameView;
378
379// SessionID: a value that's incremented when the game is reset.
380- (NSUInteger)sessionID;
381
383- (void)setDoProcedurallyTexturedPlanets:(BOOL)value;
384
385- (NSString*)useAddOns;
386- (BOOL)setUseAddOns:(NSString*)newUse fromSaveGame:(BOOL)saveGame;
387- (BOOL)setUseAddOns:(NSString*)newUse fromSaveGame:(BOOL)saveGame forceReinit:(BOOL)force;
388
389- (void)setUpSettings;
390
391- (BOOL)reinitAndShowDemo:(BOOL)showDemo;
392
393- (BOOL)doingStartUp; // True during initial game startup (not reset).
394
395- (NSUInteger)entityCount;
396#ifdef OO_DEBUG_MONITOR_ENABLED
397- (void)debugDumpEntities;
398- (NSArray*)entityList;
399#endif
400
401- (void)pauseGame;
402- (void)quitGame;
403
404- (void)carryPlayerOn:(StationEntity*)carrier inWormhole:(WormholeEntity*)wormhole;
408- (void)setUpWitchspace;
409- (void)setUpWitchspaceBetweenSystem:(OOSystemID)s1 andSystem:(OOSystemID)s2;
410- (void)setUpSpace;
411- (void)populateNormalSpace;
414- (void)populateSystemFromDictionariesWithSun:(OOSunEntity*)sun andPlanet:(OOPlanetEntity*)planet;
415- (NSDictionary*)getPopulatorSettings;
416- (void)setPopulatorSetting:(NSString*)key to:(NSDictionary*)setting;
417- (HPVector)locationByCode:(NSString*)code withSun:(OOSunEntity*)sun andPlanet:(OOPlanetEntity*)planet;
418- (void)setAmbientLightLevel:(float)newValue;
420- (void)setLighting;
421- (void)forceLightSwitch;
422- (void)setMainLightPosition:(Vector)sunPos;
423- (OOPlanetEntity*)setUpPlanet;
424
425- (void)makeSunSkimmer:(ShipEntity*)ship andSetAI:(BOOL)setAI;
426- (void)addShipWithRole:(NSString*)desc nearRouteOneAt:(double)route_fraction;
427- (HPVector)coordinatesForPosition:(HPVector)pos withCoordinateSystem:(NSString*)system returningScalar:(GLfloat*)my_scalar;
428- (NSString*)expressPosition:(HPVector)pos inCoordinateSystem:(NSString*)system;
429- (HPVector)legacyPositionFrom:(HPVector)pos asCoordinateSystem:(NSString*)system;
430- (HPVector)coordinatesFromCoordinateSystemString:(NSString*)system_x_y_z;
431- (BOOL)addShipWithRole:(NSString*)desc nearPosition:(HPVector)pos withCoordinateSystem:(NSString*)system;
432- (BOOL)addShips:(int)howMany withRole:(NSString*)desc atPosition:(HPVector)pos withCoordinateSystem:(NSString*)system;
433- (BOOL)addShips:(int)howMany withRole:(NSString*)desc nearPosition:(HPVector)pos withCoordinateSystem:(NSString*)system;
434- (BOOL)addShips:(int)howMany withRole:(NSString*)desc nearPosition:(HPVector)pos withCoordinateSystem:(NSString*)system withinRadius:(GLfloat)radius;
435- (BOOL)addShips:(int)howMany withRole:(NSString*)desc intoBoundingBox:(BoundingBox)bbox;
436- (BOOL)spawnShip:(NSString*)shipdesc;
437- (void)witchspaceShipWithPrimaryRole:(NSString*)role;
438- (ShipEntity*)spawnShipWithRole:(NSString*)desc near:(Entity*)entity;
439
440- (OOVisualEffectEntity*)addVisualEffectAt:(HPVector)pos withKey:(NSString*)key;
441- (ShipEntity*)addShipAt:(HPVector)pos withRole:(NSString*)role withinRadius:(GLfloat)radius;
442- (NSArray*)addShipsAt:(HPVector)pos withRole:(NSString*)role quantity:(unsigned)count withinRadius:(GLfloat)radius asGroup:(BOOL)isGroup;
443- (NSArray*)addShipsToRoute:(NSString*)route withRole:(NSString*)role quantity:(unsigned)count routeFraction:(double)routeFraction asGroup:(BOOL)isGroup;
444
445- (BOOL)roleIsPirateVictim:(NSString*)role;
446- (BOOL)role:(NSString*)role isInCategory:(NSString*)category;
447
449- (void)addWitchspaceJumpEffectForShip:(ShipEntity*)ship;
451
452- (void)setUpBreakPattern:(HPVector)pos orientation:(Quaternion)q forDocking:(BOOL)forDocking;
454- (void)setWitchspaceBreakPattern:(BOOL)newValue;
455
457- (void)setDockingClearanceProtocolActive:(BOOL)newValue;
458
459- (void)handleGameOver;
460
461- (void)setupIntroFirstGo:(BOOL)justCobra;
463- (void)selectIntro2Next;
466
468- (OOPlanetEntity*)planet;
469- (OOSunEntity*)sun;
470- (NSArray*)planets; // Note: does not include sun.
471- (NSArray*)stations; // includes main station
472- (NSArray*)wormholes;
473- (StationEntity*)stationWithRole:(NSString*)role andPosition:(HPVector)position;
474
475// Turn main station into just another station, for blowUpStation.
476- (void)unMagicMainStation;
477// find a valid station in interstellar space
478- (StationEntity*)stationFriendlyTo:(ShipEntity*)ship;
479
480- (void)resetBeacons;
481- (Entity<OOBeaconEntity>*)firstBeacon;
482- (Entity<OOBeaconEntity>*)lastBeacon;
483- (void)setNextBeacon:(Entity<OOBeaconEntity>*)beaconShip;
484- (void)clearBeacon:(Entity<OOBeaconEntity>*)beaconShip;
485
486- (NSDictionary*)currentWaypoints;
487- (void)defineWaypoint:(NSDictionary*)definition forKey:(NSString*)key;
488
489- (GLfloat*)skyClearColor;
490// Note: the alpha value is also air resistance!
491- (void)setSkyColorRed:(GLfloat)red green:(GLfloat)green blue:(GLfloat)blue alpha:(GLfloat)alpha;
492
493- (BOOL)breakPatternOver;
494- (BOOL)breakPatternHide;
495
496- (NSString*)randomShipKeyForRoleRespectingConditions:(NSString*)role;
497- (ShipEntity*)newShipWithRole:(NSString*)role OO_RETURNS_RETAINED; // Selects ship using role weights, applies auto_ai, respects conditions
498- (ShipEntity*)newShipWithName:(NSString*)shipKey OO_RETURNS_RETAINED; // Does not apply auto_ai or respect conditions
499- (ShipEntity*)newSubentityWithName:(NSString*)shipKey andScaleFactor:(float)scale OO_RETURNS_RETAINED; // Does not apply auto_ai or respect conditions
500- (OOVisualEffectEntity*)newVisualEffectWithName:(NSString*)effectKey OO_RETURNS_RETAINED;
501- (DockEntity*)newDockWithName:(NSString*)shipKey andScaleFactor:(float)scale OO_RETURNS_RETAINED; // Does not apply auto_ai or respect conditions
502- (ShipEntity*)newShipWithName:(NSString*)shipKey usePlayerProxy:(BOOL)usePlayerProxy OO_RETURNS_RETAINED; // If usePlayerProxy, non-carriers are instantiated as ProxyPlayerEntity.
503- (ShipEntity*)newShipWithName:(NSString*)shipKey usePlayerProxy:(BOOL)usePlayerProxy isSubentity:(BOOL)isSubentity OO_RETURNS_RETAINED;
504- (ShipEntity*)newShipWithName:(NSString*)shipKey usePlayerProxy:(BOOL)usePlayerProxy isSubentity:(BOOL)isSubentity andScaleFactor:(float)scale OO_RETURNS_RETAINED;
505
506- (Class)shipClassForShipDictionary:(NSDictionary*)dict;
507
508- (NSString*)defaultAIForRole:(NSString*)role; // autoAImap.plist lookup
509
510- (OOCargoQuantity)maxCargoForShip:(NSString*)desc;
511
512- (OOCreditsQuantity)getEquipmentPriceForKey:(NSString*)eq_key;
513
515
516- (ShipEntity*)reifyCargoPod:(ShipEntity*)cargoObj;
517- (ShipEntity*)cargoPodFromTemplate:(ShipEntity*)cargoObj;
518- (NSArray*)getContainersOfGoods:(OOCargoQuantity)how_many scarce:(BOOL)scarce legal:(BOOL)legal;
519- (NSArray*)getContainersOfCommodity:(OOCommodityType)commodity_name how_much:(OOCargoQuantity)how_much;
520- (void)fillCargopodWithRandomCargo:(ShipEntity*)cargopod;
521
522- (NSString*)getRandomCommodity;
523- (OOCargoQuantity)getRandomAmountOfCommodity:(OOCommodityType)co_type;
524
525- (NSDictionary*)commodityDataForType:(OOCommodityType)type;
526- (NSString*)displayNameForCommodity:(OOCommodityType)co_type;
527- (NSString*)describeCommodity:(OOCommodityType)co_type amount:(OOCargoQuantity)co_amount;
528
529- (void)setGameView:(MyOpenGLView*)view;
532- (NSDictionary*)gameSettings;
533
534- (void)useGUILightSource:(BOOL)GUILight;
535
536- (void)drawUniverse;
537
538- (void)defineFrustum;
539- (BOOL)viewFrustumIntersectsSphereAt:(Vector)position withRadius:(GLfloat)radius;
540
541- (void)drawMessage;
542
543- (void)drawWatermarkString:(NSString*)watermarkString;
544
545// Used to draw subentities. Should be getting this from camera.
547
548- (id)entityForUniversalID:(OOUniversalID)u_id;
549
550- (BOOL)addEntity:(Entity*)entity;
551- (BOOL)removeEntity:(Entity*)entity;
552- (void)ensureEntityReallyRemoved:(Entity*)entity;
554- (void)removeDemoShips;
555
556- (ShipEntity*)makeDemoShipWithRole:(NSString*)role spinning:(BOOL)spinning;
557
558- (BOOL)isVectorClearFromEntity:(Entity*)e1 toDistance:(double)dist fromPoint:(HPVector)p2;
559- (Entity*)hazardOnRouteFromEntity:(Entity*)e1 toDistance:(double)dist fromPoint:(HPVector)p2;
560- (HPVector)getSafeVectorFromEntity:(Entity*)e1 toDistance:(double)dist fromPoint:(HPVector)p2;
561
562- (ShipEntity*)addWreckageFrom:(ShipEntity*)ship withRole:(NSString*)wreckRole at:(HPVector)rpos scale:(GLfloat)scale lifetime:(GLfloat)lifetime;
563- (void)addLaserHitEffectsAt:(HPVector)pos against:(ShipEntity*)target damage:(float)damage color:(OOColor*)color;
564- (ShipEntity*)firstShipHitByLaserFromShip:(ShipEntity*)srcEntity inDirection:(OOWeaponFacing)direction offset:(Vector)offset gettingRangeFound:(GLfloat*)range_ptr;
567
568- (NSArray*)entitiesWithinRange:(double)range ofEntity:(Entity*)entity;
569- (unsigned)countShipsWithRole:(NSString*)role inRange:(double)range ofEntity:(Entity*)entity;
570- (unsigned)countShipsWithRole:(NSString*)role;
571- (unsigned)countShipsWithPrimaryRole:(NSString*)role inRange:(double)range ofEntity:(Entity*)entity;
572- (unsigned)countShipsWithPrimaryRole:(NSString*)role;
573- (unsigned)countShipsWithScanClass:(OOScanClass)scanClass inRange:(double)range ofEntity:(Entity*)entity;
574
575// General count/search methods. Pass range of -1 and entity of nil to search all of system.
576- (unsigned)countEntitiesMatchingPredicate:(EntityFilterPredicate)predicate
577 parameter:(void*)parameter
578 inRange:(double)range
579 ofEntity:(Entity*)entity;
580- (unsigned)countShipsMatchingPredicate:(EntityFilterPredicate)predicate
581 parameter:(void*)parameter
582 inRange:(double)range
583 ofEntity:(Entity*)entity;
584- (NSMutableArray*)findEntitiesMatchingPredicate:(EntityFilterPredicate)predicate
585 parameter:(void*)parameter
586 inRange:(double)range
587 ofEntity:(Entity*)entity;
588- (id)findOneEntityMatchingPredicate:(EntityFilterPredicate)predicate
589 parameter:(void*)parameter;
590- (NSMutableArray*)findShipsMatchingPredicate:(EntityFilterPredicate)predicate
591 parameter:(void*)parameter
592 inRange:(double)range
593 ofEntity:(Entity*)entity;
594- (NSMutableArray*)findVisualEffectsMatchingPredicate:(EntityFilterPredicate)predicate
595 parameter:(void*)parameter
596 inRange:(double)range
597 ofEntity:(Entity*)entity;
598- (id)nearestEntityMatchingPredicate:(EntityFilterPredicate)predicate
599 parameter:(void*)parameter
600 relativeToEntity:(Entity*)entity;
601- (id)nearestShipMatchingPredicate:(EntityFilterPredicate)predicate
602 parameter:(void*)parameter
603 relativeToEntity:(Entity*)entity;
604
607
609- (NSString*)collisionDescription;
610- (void)dumpCollisions;
611
613- (void)setViewDirection:(OOViewID)vd;
614- (void)enterGUIViewModeWithMouseInteraction:(BOOL)mouseInteraction; // Use instead of setViewDirection:VIEW_GUI_DISPLAY
615
616- (NSString*)soundNameForCustomSoundKey:(NSString*)key;
617- (NSDictionary*)screenTextureDescriptorForKey:(NSString*)key;
618- (void)setScreenTextureDescriptorForKey:(NSString*)key descriptor:(NSDictionary*)desc;
619
621- (void)setMessageGuiBackgroundColor:(OOColor*)some_color;
622- (void)displayMessage:(NSString*)text forCount:(OOTimeDelta)count;
623- (void)displayCountdownMessage:(NSString*)text forCount:(OOTimeDelta)count;
624- (void)addDelayedMessage:(NSString*)text forCount:(OOTimeDelta)count afterDelay:(OOTimeDelta)delay;
625- (void)addDelayedMessage:(NSDictionary*)textdict;
626- (void)addMessage:(NSString*)text forCount:(OOTimeDelta)count;
627- (void)addMessage:(NSString*)text forCount:(OOTimeDelta)count forceDisplay:(BOOL)forceDisplay;
628- (void)addCommsMessage:(NSString*)text forCount:(OOTimeDelta)count;
629- (void)addCommsMessage:(NSString*)text forCount:(OOTimeDelta)count andShowComms:(BOOL)showComms logOnly:(BOOL)logOnly;
630- (void)showCommsLog:(OOTimeDelta)how_long;
631- (void)showGUIMessage:(NSString*)text withScroll:(BOOL)scroll andColor:(OOColor*)selectedColor overDuration:(OOTimeDelta)how_long;
632
633- (void)update:(OOTimeDelta)delta_t;
634
635// Time Acelleration Factor. In deployment builds, this is always 1.0 and -setTimeAccelerationFactor: does nothing.
636- (double)timeAccelerationFactor;
637- (void)setTimeAccelerationFactor:(double)newTimeAccelerationFactor;
638
640- (void)setECMVisualFXEnabled:(BOOL)isEnabled;
641
642- (void)filterSortedLists;
643
645
646- (void)setGalaxyTo:(OOGalaxyID)g;
647- (void)setGalaxyTo:(OOGalaxyID)g andReinit:(BOOL)forced;
648
649- (void)setSystemTo:(OOSystemID)s;
650
652
653- (NSDictionary*)descriptions;
654- (NSDictionary*)characters;
655- (NSDictionary*)missiontext;
656- (NSArray*)scenarios;
657- (NSDictionary*)explosionSetting:(NSString*)explosion;
658
660
661- (NSString*)descriptionForKey:(NSString*)key; // String, or random item from array
662- (NSString*)descriptionForArrayKey:(NSString*)key index:(unsigned)index; // Indexed item from array
663- (BOOL)descriptionBooleanForKey:(NSString*)key; // Boolean from descriptions.plist, for configuration.
664
665- (NSString*)keyForPlanetOverridesForSystem:(OOSystemID)s inGalaxy:(OOGalaxyID)g;
666- (NSString*)keyForInterstellarOverridesForSystems:(OOSystemID)s1 s2:(OOSystemID)s2 inGalaxy:(OOGalaxyID)g;
667- (NSDictionary*)generateSystemData:(OOSystemID)s;
668- (NSDictionary*)generateSystemData:(OOSystemID)s useCache:(BOOL)useCache;
669- (NSDictionary*)currentSystemData; // Same as generateSystemData:systemSeed unless in interstellar space.
670
671- (BOOL)inInterstellarSpace;
672
673- (void)setSystemDataKey:(NSString*)key value:(NSObject*)object fromManifest:(NSString*)manifest;
674- (void)setSystemDataForGalaxy:(OOGalaxyID)gnum planet:(OOSystemID)pnum key:(NSString*)key value:(id)object fromManifest:(NSString*)manifest forLayer:(OOSystemLayer)layer;
675- (id)systemDataForGalaxy:(OOGalaxyID)gnum planet:(OOSystemID)pnum key:(NSString*)key;
676- (NSArray*)systemDataKeysForGalaxy:(OOGalaxyID)gnum planet:(OOSystemID)pnum;
677- (NSString*)getSystemName:(OOSystemID)sys;
678- (NSString*)getSystemName:(OOSystemID)sys forGalaxy:(OOGalaxyID)gnum;
679- (OOGovernmentID)getSystemGovernment:(OOSystemID)sys;
680- (NSString*)getSystemInhabitants:(OOSystemID)sys;
681- (NSString*)getSystemInhabitants:(OOSystemID)sys plural:(BOOL)plural;
682
683- (NSPoint)coordinatesForSystem:(OOSystemID)s;
684- (OOSystemID)findSystemFromName:(NSString*)sysName;
685
689- (NSMutableArray*)nearbyDestinationsWithinRange:(double)range;
690
691- (OOSystemID)findNeighbouringSystemToCoords:(NSPoint)coords withGalaxy:(OOGalaxyID)gal;
692- (OOSystemID)findConnectedSystemAtCoords:(NSPoint)coords withGalaxy:(OOGalaxyID)gal;
693// old alias for findSystemNumberAtCoords
694- (OOSystemID)findSystemAtCoords:(NSPoint)coords withGalaxy:(OOGalaxyID)gal;
695- (OOSystemID)findSystemNumberAtCoords:(NSPoint)coords withGalaxy:(OOGalaxyID)gal includingHidden:(BOOL)hidden;
696- (NSPoint)findSystemCoordinatesWithPrefix:(NSString*)p_fix;
697- (NSPoint)findSystemCoordinatesWithPrefix:(NSString*)p_fix exactMatch:(BOOL)exactMatch;
698- (BOOL*)systemsFound;
699- (NSString*)systemNameIndex:(OOSystemID)index;
700- (NSDictionary*)routeFromSystem:(OOSystemID)start toSystem:(OOSystemID)goal optimizedBy:(OORouteType)optimizeBy;
701- (NSArray*)neighboursToSystem:(OOSystemID)system_number;
702
703- (void)preloadPlanetTexturesForSystem:(OOSystemID)system;
704- (void)preloadSounds;
705
706- (NSDictionary*)globalSettings;
707
708- (NSArray*)equipmentData;
712
713- (NSString*)timeDescription:(OOTimeDelta)interval;
714- (NSString*)shortTimeDescription:(OOTimeDelta)interval;
715
716- (void)loadStationMarkets:(NSArray*)marketData;
717- (NSArray*)getStationMarkets;
718
719- (NSArray*)shipsForSaleForSystem:(OOSystemID)s withTL:(OOTechLevelID)specialTL atTime:(OOTimeAbsolute)current_time;
720
721/* Calculate base cost, before depreciation */
722- (OOCreditsQuantity)tradeInValueForCommanderDictionary:(NSDictionary*)cmdr_dict;
723
724- (NSString*)brochureDescriptionWithDictionary:(NSDictionary*)dict standardEquipment:(NSArray*)extras optionalEquipment:(NSArray*)options;
725
728
729- (HPVector)getSunSkimStartPositionForShip:(ShipEntity*)ship;
730- (HPVector)getSunSkimEndPositionForShip:(ShipEntity*)ship;
731
732- (NSArray*)listBeaconsWithCode:(NSString*)code;
733
734- (void)allShipsDoScriptEvent:(OOJSPropID)event andReactToAIMessage:(NSString*)message;
735
737
738- (void)clearGUIs;
739
743
744- (void)resetCommsLogColor;
745
746- (void)setDisplayText:(BOOL)value;
748
749- (void)setDisplayFPS:(BOOL)value;
751
752- (void)setAutoSave:(BOOL)value;
753- (BOOL)autoSave;
754
755- (void)setWireframeGraphics:(BOOL)value;
757
758- (BOOL)reducedDetail;
759- (void)setDetailLevel:(OOGraphicsDetail)value;
761- (BOOL)useShaders;
762
763- (void)handleOoliteException:(NSException*)ooliteException;
764
766- (void)setAirResistanceFactor:(GLfloat)newFactor;
767
768// speech routines
769//
770- (void)startSpeakingString:(NSString*)text;
771//
772- (void)stopSpeaking;
773//
774- (BOOL)isSpeaking;
775//
776#if OOLITE_ESPEAK
777- (NSString*)voiceName:(unsigned int)index;
778- (unsigned int)voiceNumber:(NSString*)name;
779- (unsigned int)nextVoice:(unsigned int)index;
780- (unsigned int)prevVoice:(unsigned int)index;
781- (unsigned int)setVoice:(unsigned int)index withGenderM:(BOOL)isMale;
782#endif
783- (int)nextColorblindMode:(int)index;
784- (int)prevColorblindMode:(int)index;
786//
788
789// autosave
790- (void)setAutoSaveNow:(BOOL)value;
792
795
796// True if textual pause message (as opposed to overlay) is being shown.
797- (BOOL)pauseMessageVisible;
798- (void)setPauseMessageVisible:(BOOL)value;
799
800- (BOOL)permanentCommLog;
801- (void)setPermanentCommLog:(BOOL)value;
802- (void)setAutoCommLog:(BOOL)value;
803- (BOOL)permanentMessageLog;
804- (void)setPermanentMessageLog:(BOOL)value;
805- (BOOL)autoMessageLogBg;
806- (void)setAutoMessageLogBg:(BOOL)value;
807
809- (void)setBlockJSPlayerShipProps:(BOOL)value;
810
812- (void)addConditionScripts:(NSEnumerator*)scripts;
813- (OOJSScript*)getConditionScript:(NSString*)scriptname;
814
815@end
816
817/* Use UNIVERSE to refer to the global universe object.
818 The purpose of this is that it makes UNIVERSE essentially a read-only
819 global with zero overhead.
820*/
823{
825 return gSharedUniverse;
826}
827#define UNIVERSE OOGetUniverse()
828
829// Only for use with string literals, and only for looking up strings.
830// DESC() is deprecated in favour of OOExpandKey() except in known performance-
831// critical contexts.
832#define DESC(key) (OOLookUpDescriptionPRIV(key ""))
833#define DESC_PLURAL(key, count) (OOLookUpPluralDescriptionPRIV(key "", count))
834
835// Not for direct use.
836NSComparisonResult populatorPrioritySort(id a, id b, void* context);
837NSComparisonResult equipmentSort(id a, id b, void* context);
838NSComparisonResult equipmentSortOutfitting(id a, id b, void* context);
839NSString* OOLookUpDescriptionPRIV(NSString* key);
840NSString* OOLookUpPluralDescriptionPRIV(NSString* key, NSInteger count);
841
842@interface OOSound (OOCustomSounds)
843
844+ (id)soundWithCustomSoundKey:(NSString*)key;
845- (id)initWithCustomSoundKey:(NSString*)key;
846
847@end
848
849@interface OOSoundSource (OOCustomSounds)
850
851+ (id)sourceWithCustomSoundKey:(NSString*)key;
852- (id)initWithCustomSoundKey:(NSString*)key;
853
854- (void)playCustomSoundWithKey:(NSString*)key;
855
856@end
857
OOScanClass
Definition Entity.h:69
NSString * OODisplayStringFromEconomyID(OOEconomyID economy)
NSString * OODisplayStringFromGovernmentID(OOGovernmentID government)
#define INLINE_CONST_FUNC
#define OOINLINE
jsid OOJSPropID
Definition OOJSPropID.h:31
unsigned count
NSString * OOCommodityType
Definition OOTypes.h:97
OORouteType
Definition OOTypes.h:31
OOGraphicsDetail
Definition OOTypes.h:208
OOViewID
Definition OOTypes.h:39
uint64_t OOCreditsQuantity
Definition OOTypes.h:160
uint16_t OOUniversalID
Definition OOTypes.h:165
NSUInteger OOTechLevelID
Definition OOTypes.h:177
int16_t OOSystemID
Definition OOTypes.h:183
uint8_t OOGalaxyID
Definition OOTypes.h:182
uint32_t OOCargoQuantity
Definition OOTypes.h:155
double OOTimeDelta
Definition OOTypes.h:193
uint8_t OOGovernmentID
Definition OOTypes.h:179
double OOTimeAbsolute
Definition OOTypes.h:192
OOWeaponFacing
Definition OOTypes.h:195
uint8_t OOEconomyID
Definition OOTypes.h:180
@ OO_POSTFX_COLORBLINDNESS_PROTAN
Definition Universe.h:84
@ OO_POSTFX_ENDOFLIST
Definition Universe.h:92
@ OO_POSTFX_COLORBLINDNESS_TRITAN
Definition Universe.h:86
@ OO_POSTFX_CRT
Definition Universe.h:90
@ OO_POSTFX_COLORBLINDNESS_DEUTER
Definition Universe.h:85
@ OO_POSTFX_GRAYSCALE
Definition Universe.h:88
@ OO_POSTFX_OLDMOVIE
Definition Universe.h:89
@ OO_POSTFX_NONE
Definition Universe.h:83
@ OO_POSTFX_CRTBADSIGNAL
Definition Universe.h:91
@ OO_POSTFX_CLOAK
Definition Universe.h:87
OOINLINE Universe * OOGetUniverse(void) INLINE_CONST_FUNC
Definition Universe.h:822
@ MARKET_QUANTITY
Definition Universe.h:62
@ MARKET_ECO_ADJUST_QUANTITY
Definition Universe.h:66
@ MARKET_MASK_PRICE
Definition Universe.h:68
@ MARKET_ECO_ADJUST_PRICE
Definition Universe.h:65
@ MARKET_NAME
Definition Universe.h:61
@ MARKET_UNITS
Definition Universe.h:70
@ MARKET_BASE_PRICE
Definition Universe.h:64
@ MARKET_BASE_QUANTITY
Definition Universe.h:67
@ MARKET_PRICE
Definition Universe.h:63
@ MARKET_MASK_QUANTITY
Definition Universe.h:69
@ EQUIPMENT_SHORT_DESC_INDEX
Definition Universe.h:76
@ EQUIPMENT_LONG_DESC_INDEX
Definition Universe.h:78
@ EQUIPMENT_TECH_LEVEL_INDEX
Definition Universe.h:74
@ EQUIPMENT_KEY_INDEX
Definition Universe.h:77
@ EQUIPMENT_PRICE_INDEX
Definition Universe.h:75
@ EQUIPMENT_EXTRA_INFO_INDEX
Definition Universe.h:79
NSString * OOLookUpDescriptionPRIV(NSString *key)
Definition Universe.m:10069
NSString * OOLookUpPluralDescriptionPRIV(NSString *key, NSInteger count)
Definition Universe.m:10078
NSComparisonResult populatorPrioritySort(id a, id b, void *context)
Definition Universe.m:9994
NSComparisonResult equipmentSortOutfitting(id a, id b, void *context)
Definition Universe.m:10038
NSComparisonResult equipmentSort(id a, id b, void *context)
Definition Universe.m:10007
BOOL(* EntityFilterPredicate)(Entity *entity, void *parameter)
Definition Universe.h:51
Universe * gSharedUniverse
Definition Universe.m:131
GLuint targetDepthBufferID
Definition Universe.h:355
OOGraphicsDetail detailLevel
Definition Universe.m:9046
GLuint pingpongColorbuffers[2]
Definition Universe.h:364
Random_Seed marketSeed()
Definition Universe.m:8077
unsigned n_entities
Definition Universe.h:181
GLuint msaaDepthBufferID
Definition Universe.h:354
OOShaderProgram * finalProgram
Definition Universe.h:360
void populateNormalSpace()
Definition Universe.m:1622
OOWeakReference * _firstBeacon
Definition Universe.h:210
Entity< OOBeaconEntity > * lastBeacon()
Definition Universe.m:3419
NSMutableDictionary * conditionScripts
Definition Universe.h:338
Entity * firstEntityTargetedByPlayerPrecisely()
Definition Universe.m:5723
BOOL useShaders()
Definition Universe.m:9051
OOGalaxyID galaxyID
Definition Universe.h:272
OOSunEntity * sun()
Definition Universe.m:3345
NSArray * demo_ships
Definition Universe.h:246
void pauseGame()
Definition Universe.m:997
OOTimeDelta getTimeDelta()
Definition Universe.m:6033
BOOL _autoMessageLogBg
Definition Universe.h:343
OOSystemID systemID
Definition Universe.h:273
void setUpUniverseFromWitchspace()
Definition Universe.m:1162
void resetCommsLogColor()
Definition Universe.m:8957
BOOL * systemsFound()
Definition Universe.m:7777
BOOL reducedDetail()
Definition Universe.m:9014
NSString * collisionDescription()
Definition Universe.m:6056
BOOL autoSaveNow
Definition Universe.m:8998
BOOL _doingStartUp
Definition Universe.h:347
GLuint msaaTextureID
Definition Universe.h:349
BOOL autoMessageLogBg()
Definition Universe.m:9213
NSString * system_repopulator
Definition Universe.h:293
OOTimeAbsolute demo_start_time
Definition Universe.h:241
OOSystemID targetSystemID
Definition Universe.h:274
void setLighting()
Definition Universe.m:1879
GLuint quadTextureVAO
Definition Universe.h:361
BOOL ECMVisualFXEnabled
Definition Universe.m:6707
NSString * system_names[256]
Definition Universe.h:276
void setUpSpace()
Definition Universe.m:1334
NSString * useAddOns
Definition Universe.m:943
GLfloat sun_diffuse[4]
Definition Universe.h:194
void selectIntro2Previous()
Definition Universe.m:3261
GuiDisplayGen * messageGUI()
Definition Universe.m:8939
void forceWitchspaceEntries()
Definition Universe.m:2818
NSUInteger demo_ship_index
Definition Universe.h:244
BOOL dockingClearanceProtocolActive()
Definition Universe.m:2936
Entity * y_list_start
Definition Universe.h:186
NSDictionary * customSounds
Definition Universe.h:256
BOOL doProcedurallyTexturedPlanets
Definition Universe.m:932
NSDictionary * currentSystemData()
Definition Universe.m:7357
NSDictionary * descriptions()
Definition Universe.m:7202
OOCommodities * commodities
Definition Universe.m:3848
OOShaderProgram * blurProgram
Definition Universe.h:359
NSArray * stations()
Definition Universe.m:3358
NSMutableSet * allStations
Definition Universe.h:287
NSDictionary * roleCategories
Definition Universe.h:265
GuiDisplayGen * comm_log_gui
Definition Universe.h:222
GLfloat sun_specular[4]
Definition Universe.h:195
void removeAllEntitiesExceptPlayer()
Definition Universe.m:5155
OOTimeAbsolute getTime()
Definition Universe.m:6028
NSUInteger demo_ship_subindex
Definition Universe.h:245
NSDictionary * gameSettings()
Definition Universe.m:4069
BOOL breakPatternHide()
Definition Universe.m:3516
GLuint targetFramebufferID
Definition Universe.h:356
NSDictionary * _descriptions
Definition Universe.h:255
NSDictionary * cargoPods
Definition Universe.h:270
NSArray * equipmentData
Definition Universe.m:7990
int cursor_row
Definition Universe.h:183
void resetFramesDoneThisUpdate()
Definition Universe.m:4800
int demo_stage
Definition Universe.h:243
BOOL doLinkedListMaintenanceThisUpdate
Definition Universe.h:315
NSArray * getStationMarkets()
Definition Universe.m:8119
NSDictionary * characters
Definition Universe.m:7294
void setUpSettings()
Definition Universe.m:9252
void quitGame()
Definition Universe.m:1024
NSMutableDictionary * waypoints
Definition Universe.h:212
OOShaderProgram * textureProgram
Definition Universe.h:358
int next_universal_id
Definition Universe.h:205
BOOL wasDisplayGUI
Definition Universe.h:225
OOTimeAbsolute demo_stage_time
Definition Universe.h:240
BOOL _pauseMessage
Definition Universe.h:340
BOOL no_update
Definition Universe.h:300
OOViewID viewDirection
Definition Universe.m:6069
BOOL deterministic_population
Definition Universe.h:294
BOOL _autoCommLog
Definition Universe.h:341
OOMatrix viewMatrix
Definition Universe.m:4805
void setUpUniverseFromStation()
Definition Universe.m:1088
void selectIntro2Next()
Definition Universe.m:3285
NSMutableDictionary * populatorSettings
Definition Universe.h:291
NSDictionary * screenBackgrounds
Definition Universe.h:267
void unMagicMainStation()
Definition Universe.m:3368
GLuint pingpongFBO[2]
Definition Universe.h:363
NSDictionary * globalSettings
Definition Universe.m:7985
GuiDisplayGen * message_gui
Definition Universe.h:221
OOSunEntity * cachedSun
Definition Universe.h:285
void dumpCollisions()
Definition Universe.m:6064
HPVector getWitchspaceExitPosition()
Definition Universe.m:8775
NSUInteger _sessionID
Definition Universe.h:191
BOOL system_found[256]
Definition Universe.h:277
NSString * currentMessage
Definition Universe.h:216
CollisionRegion * universeRegion
Definition Universe.h:312
NSArray * wormholes()
Definition Universe.m:3363
void setUpUniverseFromMisjump()
Definition Universe.m:1198
void drawMessage()
Definition Universe.m:4810
NSUInteger drawCounter
Definition Universe.h:319
NSDictionary * explosionSettings
Definition Universe.h:268
void clearSystemPopulator()
Definition Universe.m:1682
OOPlanetEntity * cachedPlanet
Definition Universe.h:284
NSSize targetFramebufferSize
Definition Universe.h:352
NSDictionary * getPopulatorSettings()
Definition Universe.m:1688
NSUInteger entityCount()
Definition Universe.m:964
NSMutableArray * activeWormholes
Definition Universe.h:308
ShipEntity * demo_ship
Definition Universe.h:281
void clearPreviousMessage()
Definition Universe.m:6235
NSMutableArray * entities
Definition Universe.h:208
void defineFrustum()
Definition Universe.m:4255
BOOL deterministicPopulation()
Definition Universe.m:1702
OOPlanetEntity * setUpPlanet()
Definition Universe.m:1298
Entity * firstEntityTargetedByPlayer()
Definition Universe.m:5649
GLfloat skyClearColor[4]
Definition Universe.m:3497
OOCommodityMarket * commodityMarket
Definition Universe.m:8000
OOPlanetEntity * planet()
Definition Universe.m:3337
OOSystemDescriptionManager * systemManager
Definition Universe.m:7322
BOOL _permanentMessageLog
Definition Universe.h:344
BOOL inInterstellarSpace()
Definition Universe.m:7389
GLuint passthroughTextureID[2]
Definition Universe.h:351
BOOL _witchspaceBreakPattern
Definition Universe.h:345
NSArray * closeSystems
Definition Universe.h:296
void loadConditionScripts()
Definition Universe.m:9916
GLuint passthroughFramebufferID
Definition Universe.h:357
NSArray * _scenarios
Definition Universe.h:258
OOTimeDelta next_repopulation
Definition Universe.h:292
GLuint msaaFramebufferID
Definition Universe.h:353
BOOL _bloom
Definition Universe.h:365
OOTimeDelta time_delta
Definition Universe.h:238
void removeDemoShips()
Definition Universe.m:5201
BOOL dumpCollisionInfo
Definition Universe.h:250
Entity * sortedEntities[UNIVERSE_MAX_ENTITIES+1]
Definition Universe.h:180
GLfloat main_light_position[4]
Definition Universe.h:248
BOOL _dockingClearanceProtocolActive
Definition Universe.h:346
void handleGameOver()
Definition Universe.m:2961
BOOL displayFPS
Definition Universe.m:8977
BOOL autoSave
Definition Universe.m:8988
int breakPatternCounter
Definition Universe.h:279
OOTimeAbsolute countdown_messageRepeatTime
Definition Universe.h:218
BOOL _permanentCommLog
Definition Universe.h:342
NSMutableSet * entitiesDeadThisUpdate
Definition Universe.h:317
NSString * getRandomCommodity()
Definition Universe.m:3972
GLfloat stars_ambient[4]
Definition Universe.h:188
NSMutableArray * characterPool
Definition Universe.h:310
MyOpenGLView * gameView
Definition Universe.m:4059
BOOL doingStartUp()
Definition Universe.m:927
GLfloat airResistanceFactor
Definition Universe.m:9073
double timeAccelerationFactor()
Definition Universe.m:6697
NSDictionary * autoAIMap
Definition Universe.h:266
NSDictionary * currentWaypoints()
Definition Universe.m:3467
GLuint quadTextureVBO
Definition Universe.h:361
OOTimeAbsolute messageRepeatTime
Definition Universe.h:217
NSMutableArray * allPlanets
Definition Universe.h:286
void stopSpeaking()
Definition Universe.m:9091
GLfloat demo_start_z
Definition Universe.h:242
GLuint targetTextureID
Definition Universe.h:350
GameController * gameController()
Definition Universe.m:4064
void setUpWitchspace()
Definition Universe.m:1229
GLint defaultDrawFBO
Definition Universe.h:362
NSArray * scenarios()
Definition Universe.m:7283
StationEntity * station()
Definition Universe.m:3301
Entity * z_list_start
Definition Universe.h:186
Entity< OOBeaconEntity > * firstBeacon()
Definition Universe.m:3403
GLfloat safeWitchspaceExitDistance()
Definition Universe.m:2843
void forceLightSwitch()
Definition Universe.m:1960
Quaternion getWitchspaceExitRotation()
Definition Universe.m:8780
void selectIntro2NextCategory()
Definition Universe.m:3277
void drawUniverse()
Definition Universe.m:4353
BOOL displayGUI
Definition Universe.m:8967
GLfloat frustum[6][4]
Definition Universe.h:336
int framesDoneThisUpdate
Definition Universe.m:4795
void filterSortedLists()
Definition Universe.m:6717
void clearGUIs()
Definition Universe.m:8944
BOOL blockJSPlayerShipProps()
Definition Universe.m:9238
BOOL permanentMessageLog()
Definition Universe.m:9203
void findCollisionsAndShadows()
Definition Universe.m:6038
Entity * entity_for_uid[MAX_ENTITY_UID]
Definition Universe.h:206
BOOL wireframeGraphics
Definition Universe.m:9009
BOOL pauseMessageVisible()
Definition Universe.m:9193
BOOL breakPatternOver()
Definition Universe.m:3511
OOTimeAbsolute universal_time
Definition Universe.h:237
GuiDisplayGen * commLogGUI()
Definition Universe.m:8934
StationEntity * cachedStation
Definition Universe.h:283
GLuint quadTextureEBO
Definition Universe.h:361
OOWeakReference * _lastBeacon
Definition Universe.h:211
void resetBeacons()
Definition Universe.m:3389
Entity * x_list_start
Definition Universe.h:186
int _currentPostFX
Definition Universe.h:366
OOSystemID currentSystemID()
Definition Universe.m:7197
BOOL isSpeaking()
Definition Universe.m:9100
void preloadSounds()
Definition Universe.m:9653
BOOL witchspaceBreakPattern()
Definition Universe.m:2926
void selectIntro2PreviousCategory()
Definition Universe.m:3269
BOOL permanentCommLog()
Definition Universe.m:9223
NSDictionary * missiontext
Definition Universe.m:7299
float ambientLightLevel
Definition Universe.m:1874
int _colorblindMode
Definition Universe.h:367
NSArray * planets()
Definition Universe.m:3353
int colorblindMode()
Definition Universe.m:335
NSArray * equipmentDataOutfitting
Definition Universe.m:7995
GuiDisplayGen * gui
Definition Universe.m:8929
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque