![]() |
Oolite 1.91.0.7665-250419-c535bfe
|
#include <OOSystemDescriptionManager.h>
Private Attributes | |
NSMutableDictionary * | universalProperties |
OOSystemDescriptionEntry * | interstellarSpace |
NSMutableDictionary * | systemDescriptions |
NSMutableDictionary * | propertyCache [OO_SYSTEM_CACHE_LENGTH] |
NSMutableSet * | propertiesInUse |
NSPoint | coordinatesCache [OO_SYSTEM_CACHE_LENGTH] |
NSMutableArray * | neighbourCache [OO_SYSTEM_CACHE_LENGTH] |
NSMutableDictionary * | scriptedChanges |
Note: forSystem: inGalaxy: returns from the (fast) propertyCache
forSystemKey calculates the values - but is necessary for interstellar space
Definition at line 73 of file OOSystemDescriptionManager.h.
- (void) buildRouteCache |
Definition at line 100 of file OOSystemDescriptionManager.m.
References buildRouteCache, coordinatesCache, distanceBetweenPlanetPositions(), MAX_JUMP_RANGE, OO_GALAXIES_AVAILABLE, OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, PointFromString(), propertyCache, x, and y.
Referenced by buildRouteCache, and ResourceManager::systemDescriptionManager.
|
implementation |
Provided by category OOSystemDescriptionManager(OOPrivate).
Definition at line 503 of file OOSystemDescriptionManager.m.
References getProperty:forSystemKey:, getProperty:forSystemKey:withUniversal:, and nil.
Referenced by getPropertiesForSystemKey:, and OOSystemDescriptionManager(OOPrivate)::updateCacheEntry:.
|
implementation |
Definition at line 84 of file OOSystemDescriptionManager.m.
References dealloc, DESTROY, interstellarSpace, neighbourCache, OO_SYSTEM_CACHE_LENGTH, propertiesInUse, propertyCache, scriptedChanges, systemDescriptions, and universalProperties.
Referenced by dealloc.
- (NSDictionary *) exportScriptedChanges |
Definition at line 312 of file OOSystemDescriptionManager.m.
References exportScriptedChanges.
Referenced by exportScriptedChanges.
- (NSPoint) getCoordinatesForSystem: | (OOSystemID) | s | |
inGalaxy: | (OOGalaxyID) | g |
Definition at line 560 of file OOSystemDescriptionManager.m.
References coordinatesCache, OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, and OOLog.
Referenced by Universe::coordinatesForSystem:, GuiDisplayGen(Internal)::drawAdvancedNavArrayAtX:y:z:alpha:usingRoute:optimizedBy:zoom:, GuiDisplayGen(Internal)::drawStarChart:x:y:z:alpha:, Universe::findConnectedSystemAtCoords:withGalaxy:, Universe::findNeighbouringSystemToCoords:withGalaxy:, Universe::findSystemCoordinatesWithPrefix:exactMatch:, Universe::findSystemNumberAtCoords:withGalaxy:includingHidden:, and Universe::routeFromSystem:toSystem:optimizedBy:.
- (NSArray *) getNeighbourIDsForSystem: | (OOSystemID) | s | |
inGalaxy: | (OOGalaxyID) | g |
Definition at line 577 of file OOSystemDescriptionManager.m.
References neighbourCache, nil, OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, and OOLog.
Referenced by Universe::neighboursToSystem:.
- (NSDictionary *) getPropertiesForCurrentSystem |
Definition at line 318 of file OOSystemDescriptionManager.m.
References getPropertiesForCurrentSystem, OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, OOLog, and propertyCache.
Referenced by getPropertiesForCurrentSystem, Universe::populateNormalSpace, Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:, Universe::setUpPlanet, and Universe::setUpSpace.
- (NSDictionary *) getPropertiesForSystem: | (OOSystemID) | s | |
inGalaxy: | (OOGalaxyID) | g |
Definition at line 360 of file OOSystemDescriptionManager.m.
References OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, OOLog, and propertyCache.
Referenced by GuiDisplayGen(Internal)::drawAdvancedNavArrayAtX:y:z:alpha:usingRoute:optimizedBy:zoom:, GuiDisplayGen(Internal)::drawStarChart:x:y:z:alpha:, Universe::findSystemCoordinatesWithPrefix:exactMatch:, Universe::findSystemNumberAtCoords:withGalaxy:includingHidden:, and Universe::routeFromSystem:toSystem:optimizedBy:.
- (NSDictionary *) getPropertiesForSystemKey: | (NSString *) | key |
Definition at line 340 of file OOSystemDescriptionManager.m.
References calculatePropertiesForSystemKey:, count, OO_GALAXIES_AVAILABLE, OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, OOLog, propertyCache, and ScanTokensFromString().
Referenced by Universe::generateSystemData:useCache:, Universe::generateSystemDataForGalaxy:planet:, and Universe::setUpWitchspaceBetweenSystem:andSystem:.
- (id) getProperty: | (NSString *) | property | |
forSystem: | (OOSystemID) | s | |
inGalaxy: | (OOGalaxyID) | g |
Definition at line 377 of file OOSystemDescriptionManager.m.
References nil, OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, and OOLog.
Referenced by Universe::getSystemGovernment:, Universe::getSystemInhabitants:plural:, Universe::getSystemName:forGalaxy:, Universe::setGalaxyTo:andReinit:, Universe::systemDataForGalaxy:planet:key:, and SystemInfoGetProperty().
- (id) getProperty: | (NSString *) | property | |
forSystemKey: | (NSString *) | key |
Definition at line 372 of file OOSystemDescriptionManager.m.
References getProperty:forSystemKey:withUniversal:.
Referenced by OOSystemDescriptionManager(OOPrivate)::calculatePropertiesForSystemKey:, GuiDisplayGen(Internal)::drawAdvancedNavArrayAtX:y:z:alpha:usingRoute:optimizedBy:zoom:, importLegacyScriptedChanges:, and OOSystemDescriptionManager(OOPrivate)::updateCacheEntry:forProperty:.
|
implementation |
Provided by category OOSystemDescriptionManager(OOPrivate).
Definition at line 394 of file OOSystemDescriptionManager.m.
References EXPECT_NOT, OOSystemDescriptionEntry::getProperty:forLayer:, and nil.
Referenced by OOSystemDescriptionManager(OOPrivate)::calculatePropertiesForSystemKey:, and getProperty:forSystemKey:.
|
implementation |
Provided by category OOSystemDescriptionManager(OOPrivate).
Definition at line 431 of file OOSystemDescriptionManager.m.
References OOSystemDescriptionEntry::getProperty:forLayer:, and nil.
- (Random_Seed) getRandomSeedForCurrentSystem |
Definition at line 595 of file OOSystemDescriptionManager.m.
References getRandomSeedForCurrentSystem, kNilRandomSeed, OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, OOLog, propertyCache, RandomSeedFromString(), and UNIVERSE.
Referenced by getRandomSeedForCurrentSystem, Universe::marketSeed, Universe::populateSystemFromDictionariesWithSun:andPlanet:, Universe::setUpPlanet, and Universe::setUpSpace.
- (Random_Seed) getRandomSeedForSystem: | (OOSystemID) | s | |
inGalaxy: | (OOGalaxyID) | g |
Definition at line 615 of file OOSystemDescriptionManager.m.
References kNilRandomSeed, OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, OOLog, propertyCache, and RandomSeedFromString().
- (void) importLegacyScriptedChanges: | (NSDictionary *) | scripted |
Definition at line 273 of file OOSystemDescriptionManager.m.
References foreachkey, getProperty:forSystemKey:, nil, and setProperty:forSystemKey:andLayer:toValue:fromManifest:.
- (void) importScriptedChanges: | (NSDictionary *) | scripted |
Definition at line 238 of file OOSystemDescriptionManager.m.
References count, foreachkey, nil, OOLog, and setProperty:forSystemKey:andLayer:toValue:fromManifest:.
|
implementation |
Definition at line 62 of file OOSystemDescriptionManager.m.
References init, interstellarSpace, neighbourCache, nil, OO_SYSTEM_CACHE_LENGTH, propertiesInUse, propertyCache, scriptedChanges, systemDescriptions, and universalProperties.
Referenced by init.
|
implementation |
Provided by category OOSystemDescriptionManager(OOPrivate).
Definition at line 215 of file OOSystemDescriptionManager.m.
References nil.
Referenced by setProperty:forSystemKey:andLayer:toValue:fromManifest:.
- (void) setInterstellarProperties: | (NSDictionary *) | properties |
Definition at line 142 of file OOSystemDescriptionManager.m.
References setProperties:inDescription:.
Referenced by ResourceManager::systemDescriptionManager.
- (void) setProperties: | (NSDictionary *) | properties | |
forSystemKey: | (NSString *) | key |
Definition at line 148 of file OOSystemDescriptionManager.m.
References count, nil, OO_GALAXIES_AVAILABLE, OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, OOLog, ScanTokensFromString(), setProperties:inDescription:, and updateCacheEntry:.
Referenced by ResourceManager::systemDescriptionManager.
|
implementation |
Provided by category OOSystemDescriptionManager(OOPrivate).
Definition at line 483 of file OOSystemDescriptionManager.m.
References foreachkey, kOOSystemLayerProperty, nil, OO_LAYER_OXP_PRIORITY, OOLog, and OOSystemDescriptionEntry::setProperty:forLayer:toValue:.
Referenced by setInterstellarProperties:, and setProperties:forSystemKey:.
- (void) setProperty: | (NSString *) | property | |
forSystemKey: | (NSString *) | key | |
andLayer: | (OOSystemLayer) | layer | |
toValue: | (id) | value | |
fromManifest: | (NSString *) | manifest |
Definition at line 178 of file OOSystemDescriptionManager.m.
References count, nil, OO_GALAXIES_AVAILABLE, OO_SYSTEM_CACHE_LENGTH, OO_SYSTEMS_PER_GALAXY, OOLog, saveScriptedChangeToProperty:forSystemKey:andLayer:toValue:fromManifest:, ScanTokensFromString(), OOSystemDescriptionEntry::setProperty:forLayer:toValue:, and updateCacheEntry:forProperty:.
Referenced by importLegacyScriptedChanges:, importScriptedChanges:, and Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
- (void) setUniversalProperties: | (NSDictionary *) | properties |
Definition at line 131 of file OOSystemDescriptionManager.m.
References OO_SYSTEM_CACHE_LENGTH, and updateCacheEntry:.
Referenced by ResourceManager::systemDescriptionManager.
|
implementation |
Provided by category OOSystemDescriptionManager(OOPrivate).
Definition at line 533 of file OOSystemDescriptionManager.m.
References calculatePropertiesForSystemKey:, and OO_SYSTEM_CACHE_LENGTH.
Referenced by setProperties:forSystemKey:, and setUniversalProperties:.
|
implementation |
Provided by category OOSystemDescriptionManager(OOPrivate).
Definition at line 544 of file OOSystemDescriptionManager.m.
References getProperty:forSystemKey:, nil, and OO_SYSTEM_CACHE_LENGTH.
Referenced by setProperty:forSystemKey:andLayer:toValue:fromManifest:.
|
private |
Definition at line 81 of file OOSystemDescriptionManager.h.
Referenced by buildRouteCache, and getCoordinatesForSystem:inGalaxy:.
|
private |
Definition at line 77 of file OOSystemDescriptionManager.h.
|
private |
Definition at line 82 of file OOSystemDescriptionManager.h.
Referenced by dealloc, getNeighbourIDsForSystem:inGalaxy:, and init.
|
private |
Definition at line 80 of file OOSystemDescriptionManager.h.
|
private |
Definition at line 79 of file OOSystemDescriptionManager.h.
Referenced by buildRouteCache, dealloc, getPropertiesForCurrentSystem, getPropertiesForSystem:inGalaxy:, getPropertiesForSystemKey:, getRandomSeedForCurrentSystem, getRandomSeedForSystem:inGalaxy:, and init.
|
private |
Definition at line 83 of file OOSystemDescriptionManager.h.
|
private |
Definition at line 78 of file OOSystemDescriptionManager.h.
|
private |
Definition at line 76 of file OOSystemDescriptionManager.h.