Oolite 1.91.0.7644-241112-7f5034b
|
import "OOCocoa.h"
import "OOOpenGL.h"
import "OOShaderProgram.h"
import "legacy_random.h"
import "OOMaths.h"
import "OOColor.h"
import "OOWeakReference.h"
import "OOTypes.h"
import "OOSound.h"
import "OOJSPropID.h"
import "OOStellarBody.h"
import "OOEntityWithDrawable.h"
import "OOCommodities.h"
import "OOSystemDescriptionManager.h"
Go to the source code of this file.
Classes | |
class | Universe |
category | OOSound(OOCustomSounds) |
category | OOSoundSource(OOCustomSounds) |
Macros | |
#define | OO_SCANCLASS_TYPE |
#define | CROSSHAIR_SIZE 32.0 |
#define | SHADERS_MIN SHADERS_OFF |
#define | MAX_MESSAGES 5 |
#define | PROXIMITY_WARN_DISTANCE 4 |
#define | PROXIMITY_WARN_DISTANCE2 (PROXIMITY_WARN_DISTANCE * PROXIMITY_WARN_DISTANCE) |
#define | PROXIMITY_AVOID_DISTANCE_FACTOR 10.0 |
#define | SAFE_ADDITION_FACTOR2 800 |
#define | SUN_SKIM_RADIUS_FACTOR 1.15470053838 |
#define | SUN_SPARKS_RADIUS_FACTOR 2.0 |
#define | KEY_TECHLEVEL @"techlevel" |
#define | KEY_ECONOMY @"economy" |
#define | KEY_ECONOMY_DESC @"economy_description" |
#define | KEY_GOVERNMENT @"government" |
#define | KEY_GOVERNMENT_DESC @"government_description" |
#define | KEY_POPULATION @"population" |
#define | KEY_POPULATION_DESC @"population_description" |
#define | KEY_PRODUCTIVITY @"productivity" |
#define | KEY_RADIUS @"radius" |
#define | KEY_NAME @"name" |
#define | KEY_INHABITANT @"inhabitant" |
#define | KEY_INHABITANTS @"inhabitants" |
#define | KEY_DESCRIPTION @"description" |
#define | KEY_SHORT_DESCRIPTION @"short_description" |
#define | KEY_PLANETNAME @"planet_name" |
#define | KEY_SUNNAME @"sun_name" |
#define | KEY_CHANCE @"chance" |
#define | KEY_PRICE @"price" |
#define | KEY_OPTIONAL_EQUIPMENT @"optional_equipment" |
#define | KEY_STANDARD_EQUIPMENT @"standard_equipment" |
#define | KEY_EQUIPMENT_MISSILES @"missiles" |
#define | KEY_EQUIPMENT_FORWARD_WEAPON @"forward_weapon_type" |
#define | KEY_EQUIPMENT_AFT_WEAPON @"aft_weapon_type" |
#define | KEY_EQUIPMENT_PORT_WEAPON @"port_weapon_type" |
#define | KEY_EQUIPMENT_STARBOARD_WEAPON @"starboard_weapon_type" |
#define | KEY_EQUIPMENT_EXTRAS @"extras" |
#define | KEY_WEAPON_FACINGS @"weapon_facings" |
#define | KEY_RENOVATION_MULTIPLIER @"renovation_multiplier" |
#define | SHIPYARD_KEY_ID @"id" |
#define | SHIPYARD_KEY_SHIPDATA_KEY @"shipdata_key" |
#define | SHIPYARD_KEY_SHIP @"ship" |
#define | SHIPYARD_KEY_PRICE @"price" |
#define | SHIPYARD_KEY_PERSONALITY @"personality" |
#define | PASSENGER_BERTH_SPACE 5 |
#define | PLANETINFO_UNIVERSAL_KEY @"universal" |
#define | PLANETINFO_INTERSTELLAR_KEY @"interstellar space" |
#define | OOLITE_EXCEPTION_LOOPING @"OoliteLoopingException" |
#define | OOLITE_EXCEPTION_DATA_NOT_FOUND @"OoliteDataNotFoundException" |
#define | OOLITE_EXCEPTION_FATAL @"OoliteFatalException" |
#define | BILLBOARD_DEPTH 75000.0 |
#define | TIME_ACCELERATION_FACTOR_MIN 0.0625f |
#define | TIME_ACCELERATION_FACTOR_DEFAULT 1.0f |
#define | TIME_ACCELERATION_FACTOR_MAX 16.0f |
#define | DEMO_LIGHT_POSITION 5000.0f, 25000.0f, -10000.0f |
#define | MIN_DISTANCE_TO_BUOY 750.0f |
#define | MIN_DISTANCE_TO_BUOY2 (MIN_DISTANCE_TO_BUOY * MIN_DISTANCE_TO_BUOY) |
#define | SYSTEM_REPOPULATION_INTERVAL 20.0f; |
#define | OO_LOCALIZATION_TOOLS 1 |
#define | MASS_DEPENDENT_FUEL_PRICES 1 |
#define | UNIVERSE OOGetUniverse() |
#define | DESC(key) |
#define | DESC_PLURAL(key, count) |
Typedefs | |
typedef BOOL(* | EntityFilterPredicate) (Entity *entity, void *parameter) |
Enumerations | |
enum | { MARKET_NAME = 0 , MARKET_QUANTITY = 1 , MARKET_PRICE = 2 , MARKET_BASE_PRICE = 3 , MARKET_ECO_ADJUST_PRICE = 4 , MARKET_ECO_ADJUST_QUANTITY = 5 , MARKET_BASE_QUANTITY = 6 , MARKET_MASK_PRICE = 7 , MARKET_MASK_QUANTITY = 8 , MARKET_UNITS = 9 } |
enum | { EQUIPMENT_TECH_LEVEL_INDEX = 0 , EQUIPMENT_PRICE_INDEX = 1 , EQUIPMENT_SHORT_DESC_INDEX = 2 , EQUIPMENT_KEY_INDEX = 3 , EQUIPMENT_LONG_DESC_INDEX = 4 , EQUIPMENT_EXTRA_INFO_INDEX = 5 } |
enum | { OO_POSTFX_NONE = 0 , OO_POSTFX_COLORBLINDNESS_PROTAN , OO_POSTFX_COLORBLINDNESS_DEUTER , OO_POSTFX_COLORBLINDNESS_TRITAN , OO_POSTFX_CLOAK , OO_POSTFX_GRAYSCALE , OO_POSTFX_OLDMOVIE , OO_POSTFX_CRT , OO_POSTFX_ENDOFLIST } |
Functions | |
OOINLINE Universe * | OOGetUniverse (void) INLINE_CONST_FUNC |
NSComparisonResult | populatorPrioritySort (id a, id b, void *context) |
NSComparisonResult | equipmentSort (id a, id b, void *context) |
NSComparisonResult | equipmentSortOutfitting (id a, id b, void *context) |
NSString * | OOLookUpDescriptionPRIV (NSString *key) |
NSString * | OOLookUpPluralDescriptionPRIV (NSString *key, NSInteger count) |
NSString * | OODisplayStringFromGovernmentID (OOGovernmentID government) |
NSString * | OODisplayStringFromEconomyID (OOEconomyID economy) |
#define BILLBOARD_DEPTH 75000.0 |
Definition at line 162 of file Universe.h.
#define CROSSHAIR_SIZE 32.0 |
Definition at line 60 of file Universe.h.
#define DEMO_LIGHT_POSITION 5000.0f, 25000.0f, -10000.0f |
Definition at line 168 of file Universe.h.
#define DESC | ( | key | ) |
Definition at line 839 of file Universe.h.
Referenced by DisplayStringForMassUnit(), OODisplayStringFromShaderSetting(), OOShipLibraryCargo(), OOShipLibraryGenerator(), OOShipLibraryShields(), OOShipLibrarySpeed(), OOShipLibraryTurnRate(), OOShipLibraryWeapons(), OOShipLibraryWitchspace(), NSString(OOUtilities)::pathHasExtension:, SystemGetProperty(), and SystemStaticSystemNameForID().
#define DESC_PLURAL | ( | key, | |
count ) |
Definition at line 840 of file Universe.h.
#define KEY_CHANCE @"chance" |
Definition at line 132 of file Universe.h.
#define KEY_DESCRIPTION @"description" |
Definition at line 127 of file Universe.h.
#define KEY_ECONOMY @"economy" |
Definition at line 116 of file Universe.h.
Referenced by SystemGetProperty().
#define KEY_ECONOMY_DESC @"economy_description" |
Definition at line 117 of file Universe.h.
#define KEY_EQUIPMENT_AFT_WEAPON @"aft_weapon_type" |
Definition at line 138 of file Universe.h.
#define KEY_EQUIPMENT_EXTRAS @"extras" |
Definition at line 141 of file Universe.h.
#define KEY_EQUIPMENT_FORWARD_WEAPON @"forward_weapon_type" |
Definition at line 137 of file Universe.h.
#define KEY_EQUIPMENT_MISSILES @"missiles" |
Definition at line 136 of file Universe.h.
#define KEY_EQUIPMENT_PORT_WEAPON @"port_weapon_type" |
Definition at line 139 of file Universe.h.
#define KEY_EQUIPMENT_STARBOARD_WEAPON @"starboard_weapon_type" |
Definition at line 140 of file Universe.h.
#define KEY_GOVERNMENT @"government" |
Definition at line 118 of file Universe.h.
Referenced by SystemGetProperty().
#define KEY_GOVERNMENT_DESC @"government_description" |
Definition at line 119 of file Universe.h.
#define KEY_INHABITANT @"inhabitant" |
Definition at line 125 of file Universe.h.
#define KEY_INHABITANTS @"inhabitants" |
Definition at line 126 of file Universe.h.
#define KEY_NAME @"name" |
Definition at line 124 of file Universe.h.
#define KEY_OPTIONAL_EQUIPMENT @"optional_equipment" |
Definition at line 134 of file Universe.h.
#define KEY_PLANETNAME @"planet_name" |
Definition at line 129 of file Universe.h.
#define KEY_POPULATION @"population" |
Definition at line 120 of file Universe.h.
Referenced by SystemGetProperty().
#define KEY_POPULATION_DESC @"population_description" |
Definition at line 121 of file Universe.h.
#define KEY_PRICE @"price" |
Definition at line 133 of file Universe.h.
#define KEY_PRODUCTIVITY @"productivity" |
Definition at line 122 of file Universe.h.
Referenced by SystemGetProperty().
#define KEY_RADIUS @"radius" |
Definition at line 123 of file Universe.h.
#define KEY_RENOVATION_MULTIPLIER @"renovation_multiplier" |
Definition at line 143 of file Universe.h.
#define KEY_SHORT_DESCRIPTION @"short_description" |
Definition at line 128 of file Universe.h.
Referenced by StationAddShipToShipyard().
#define KEY_STANDARD_EQUIPMENT @"standard_equipment" |
Definition at line 135 of file Universe.h.
#define KEY_SUNNAME @"sun_name" |
Definition at line 130 of file Universe.h.
#define KEY_TECHLEVEL @"techlevel" |
Definition at line 115 of file Universe.h.
Referenced by SystemGetProperty().
#define KEY_WEAPON_FACINGS @"weapon_facings" |
Definition at line 142 of file Universe.h.
#define MASS_DEPENDENT_FUEL_PRICES 1 |
Definition at line 182 of file Universe.h.
#define MAX_MESSAGES 5 |
Definition at line 105 of file Universe.h.
#define MIN_DISTANCE_TO_BUOY 750.0f |
Definition at line 170 of file Universe.h.
#define MIN_DISTANCE_TO_BUOY2 (MIN_DISTANCE_TO_BUOY * MIN_DISTANCE_TO_BUOY) |
Definition at line 171 of file Universe.h.
#define OO_LOCALIZATION_TOOLS 1 |
Definition at line 178 of file Universe.h.
#define OO_SCANCLASS_TYPE |
Definition at line 55 of file Universe.h.
#define OOLITE_EXCEPTION_DATA_NOT_FOUND @"OoliteDataNotFoundException" |
Definition at line 157 of file Universe.h.
#define OOLITE_EXCEPTION_FATAL @"OoliteFatalException" |
Definition at line 158 of file Universe.h.
#define OOLITE_EXCEPTION_LOOPING @"OoliteLoopingException" |
Definition at line 156 of file Universe.h.
#define PASSENGER_BERTH_SPACE 5 |
Definition at line 151 of file Universe.h.
#define PLANETINFO_INTERSTELLAR_KEY @"interstellar space" |
Definition at line 154 of file Universe.h.
#define PLANETINFO_UNIVERSAL_KEY @"universal" |
Definition at line 153 of file Universe.h.
#define PROXIMITY_AVOID_DISTANCE_FACTOR 10.0 |
Definition at line 109 of file Universe.h.
#define PROXIMITY_WARN_DISTANCE 4 |
Definition at line 107 of file Universe.h.
#define PROXIMITY_WARN_DISTANCE2 (PROXIMITY_WARN_DISTANCE * PROXIMITY_WARN_DISTANCE) |
Definition at line 108 of file Universe.h.
#define SAFE_ADDITION_FACTOR2 800 |
Definition at line 110 of file Universe.h.
#define SHADERS_MIN SHADERS_OFF |
Definition at line 102 of file Universe.h.
#define SHIPYARD_KEY_ID @"id" |
Definition at line 145 of file Universe.h.
#define SHIPYARD_KEY_PERSONALITY @"personality" |
Definition at line 149 of file Universe.h.
Referenced by StationAddShipToShipyard().
#define SHIPYARD_KEY_PRICE @"price" |
Definition at line 148 of file Universe.h.
Referenced by StationAddShipToShipyard().
#define SHIPYARD_KEY_SHIP @"ship" |
Definition at line 147 of file Universe.h.
#define SHIPYARD_KEY_SHIPDATA_KEY @"shipdata_key" |
Definition at line 146 of file Universe.h.
Referenced by StationAddShipToShipyard().
#define SUN_SKIM_RADIUS_FACTOR 1.15470053838 |
Definition at line 112 of file Universe.h.
#define SUN_SPARKS_RADIUS_FACTOR 2.0 |
Definition at line 113 of file Universe.h.
#define SYSTEM_REPOPULATION_INTERVAL 20.0f; |
Definition at line 175 of file Universe.h.
#define TIME_ACCELERATION_FACTOR_DEFAULT 1.0f |
Definition at line 165 of file Universe.h.
#define TIME_ACCELERATION_FACTOR_MAX 16.0f |
Definition at line 166 of file Universe.h.
#define TIME_ACCELERATION_FACTOR_MIN 0.0625f |
Definition at line 164 of file Universe.h.
#define UNIVERSE OOGetUniverse() |
Definition at line 833 of file Universe.h.
Referenced by ShipEntity::alertCondition, ClockGetProperty(), ConsoleGetProperty(), DisplayStringForMassUnitForCommodity(), GlobalGetColorSaturation(), GlobalGetProperty(), GlobalSetScreenBackground(), GlobalSetScreenOverlay(), PlayerEntity(OOControlsPrivate)::handleAutopilotOn:, HeadUpDisplay::hudDrawReticleOnTarget, HeadUpDisplay::hudRotateViewpointForVirtualDepth, ManifestGetProperty(), OOApplyTextureOptionDefaults(), PlanetGetProperty(), PlayerSetEscapePodDestination(), PlayerShipGetProperty(), PlayerShipResetCustomView(), PlayerShipSetCustomView(), PlayerStopAudioMessage(), RemoveOrExplodeShip(), ShipSetCargo(), ShipStaticRoleIsInCategory(), StationGetProperty(), StationSetMarketPrice(), StationSetMarketQuantity(), SystemGetProperty(), SystemInfoSamplePrice(), SystemStaticSystemNameForID(), and GuiDisplayGen::TextureForGUITexture.
typedef BOOL(* EntityFilterPredicate) (Entity *entity, void *parameter) |
Definition at line 52 of file Universe.h.
anonymous enum |
Enumerator | |
---|---|
MARKET_NAME | |
MARKET_QUANTITY | |
MARKET_PRICE | |
MARKET_BASE_PRICE | |
MARKET_ECO_ADJUST_PRICE | |
MARKET_ECO_ADJUST_QUANTITY | |
MARKET_BASE_QUANTITY | |
MARKET_MASK_PRICE | |
MARKET_MASK_QUANTITY | |
MARKET_UNITS |
Definition at line 62 of file Universe.h.
anonymous enum |
Enumerator | |
---|---|
EQUIPMENT_TECH_LEVEL_INDEX | |
EQUIPMENT_PRICE_INDEX | |
EQUIPMENT_SHORT_DESC_INDEX | |
EQUIPMENT_KEY_INDEX | |
EQUIPMENT_LONG_DESC_INDEX | |
EQUIPMENT_EXTRA_INFO_INDEX |
Definition at line 77 of file Universe.h.
anonymous enum |
Definition at line 88 of file Universe.h.
NSComparisonResult equipmentSort | ( | id | a, |
id | b, | ||
void * | context ) |
Definition at line 11093 of file Universe.m.
NSComparisonResult equipmentSortOutfitting | ( | id | a, |
id | b, | ||
void * | context ) |
Definition at line 11119 of file Universe.m.
NSString * OODisplayStringFromEconomyID | ( | OOEconomyID | economy | ) |
Definition at line 230 of file OOConstToString.m.
Referenced by SystemGetProperty().
NSString * OODisplayStringFromGovernmentID | ( | OOGovernmentID | government | ) |
Definition at line 214 of file OOConstToString.m.
Referenced by SystemGetProperty().
Definition at line 828 of file Universe.h.
References gSharedUniverse.
NSString * OOLookUpDescriptionPRIV | ( | NSString * | key | ) |
Definition at line 11145 of file Universe.m.
References nil.
Referenced by OOLookUpPluralDescriptionPRIV().
NSString * OOLookUpPluralDescriptionPRIV | ( | NSString * | key, |
NSInteger | count ) |
Definition at line 11154 of file Universe.m.
References count, nil, OOLogWARN, and OOLookUpDescriptionPRIV().
NSComparisonResult populatorPrioritySort | ( | id | a, |
id | b, | ||
void * | context ) |
Definition at line 11081 of file Universe.m.