![]() |
Oolite 1.91.0.7665-250419-c535bfe
|
#include <OOShipRegistry.h>
Instance Methods | |
(NSDictionary *) | - shipInfoForKey: |
(void) | - setShipInfoForKey:with: |
(NSDictionary *) | - effectInfoForKey: |
(NSDictionary *) | - shipyardInfoForKey: |
(OOProbabilitySet *) | - probabilitySetForRole: |
(NSArray *) | - demoShipKeys |
(NSArray *) | - playerShipKeys |
(id) | - init [implementation] |
(void) | - dealloc [implementation] |
(NSArray *) | - shipKeys |
(NSArray *) | - shipRoles |
(NSArray *) | - shipKeysWithRole: |
(NSString *) | - randomShipKeyForRole: |
(void) | - loadShipData [implementation] |
(void) | - loadDemoShipConditions [implementation] |
(void) | - loadDemoShips [implementation] |
(void) | - loadCachedRoleProbabilitySets [implementation] |
(void) | - buildRoleProbabilitySets [implementation] |
(BOOL) | - applyLikeShips:withKey: [implementation] |
(BOOL) | - loadAndMergeShipyard: [implementation] |
(BOOL) | - stripPrivateKeys: [implementation] |
(BOOL) | - makeShipEntriesMutable: [implementation] |
(BOOL) | - loadAndApplyShipDataOverrides: [implementation] |
(BOOL) | - canonicalizeAndTagSubentities: [implementation] |
(BOOL) | - removeUnusableEntries:shipMode: [implementation] |
(BOOL) | - sanitizeConditions: [implementation] |
(NSMutableDictionary *) | - mergeShip:withParent: [implementation] |
(void) | - mergeShipRoles:forShipKey:intoProbabilityMap: [implementation] |
(NSDictionary *) | - canonicalizeSubentityDeclaration:forShip:shipData:fatalError: [implementation] |
(NSDictionary *) | - translateOldStyleSubentityDeclaration:forShip:shipData:fatalError: [implementation] |
(NSDictionary *) | - translateOldStyleFlasherDeclaration:forShip:fatalError: [implementation] |
(NSDictionary *) | - translateOldStandardBasicSubentityDeclaration:forShip:shipData:fatalError: [implementation] |
(NSDictionary *) | - validateNewStyleSubentityDeclaration:forShip:fatalError: [implementation] |
(NSDictionary *) | - validateNewStyleFlasherDeclaration:forShip:fatalError: [implementation] |
(NSDictionary *) | - validateNewStyleStandardSubentityDeclaration:forShip:fatalError: [implementation] |
(BOOL) | - shipIsBallTurretForKey:inShipData: [implementation] |
(id) | - copyWithZone: [implementation] |
(id) | - retain [implementation] |
(NSUInteger) | - retainCount [implementation] |
(void) | - release [implementation] |
(id) | - autorelease [implementation] |
Class Methods | |
(OOShipRegistry *) | + sharedRegistry |
(void) | + reload |
(id) | + allocWithZone: [implementation] |
Private Attributes | |
NSDictionary * | _shipData |
NSDictionary * | _effectData |
NSArray * | _demoShips |
NSArray * | _playerShips |
NSDictionary * | _probabilitySets |
Definition at line 35 of file OOShipRegistry.h.
|
implementation |
Provided by category OOShipRegistry(Singleton).
Definition at line 1694 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 615 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(Singleton).
Definition at line 1728 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 563 of file OOShipRegistry.m.
Referenced by init.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 899 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 1269 of file OOShipRegistry.m.
Referenced by OOShipRegistry(OODataLoader)::canonicalizeAndTagSubentities:.
|
implementation |
Provided by category OOShipRegistry(Singleton).
Definition at line 1706 of file OOShipRegistry.m.
|
implementation |
Definition at line 196 of file OOShipRegistry.m.
References dealloc.
Referenced by dealloc.
- (NSArray *) demoShipKeys |
Definition at line 241 of file OOShipRegistry.m.
References demoShipKeys, and loadDemoShips.
Referenced by demoShipKeys, Universe::reinitAndShowDemo:, and Universe::setupIntroFirstGo:.
- (NSDictionary *) effectInfoForKey: | (NSString *) | key |
Definition at line 222 of file OOShipRegistry.m.
Referenced by Universe::newVisualEffectWithName:.
|
implementation |
Definition at line 150 of file OOShipRegistry.m.
References _demoShips, _effectData, _playerShips, _probabilitySets, _shipData, buildRoleProbabilitySets, count, init, loadCachedRoleProbabilitySets, loadDemoShipConditions, loadDemoShips, loadShipData, nil, OOCacheManager::objectForKey:inCache:, and OOCacheManager::sharedCache.
Referenced by init.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 774 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 840 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 543 of file OOShipRegistry.m.
Referenced by init.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 393 of file OOShipRegistry.m.
Referenced by init.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 425 of file OOShipRegistry.m.
Referenced by demoShipKeys, and init.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 296 of file OOShipRegistry.m.
Referenced by init.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 747 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 690 of file OOShipRegistry.m.
Referenced by OOShipRegistry(OODataLoader)::applyLikeShips:withKey:.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 1223 of file OOShipRegistry.m.
Referenced by OOShipRegistry(OODataLoader)::buildRoleProbabilitySets.
- (NSArray *) playerShipKeys |
Definition at line 250 of file OOShipRegistry.m.
References _playerShips, and playerShipKeys.
Referenced by playerShipKeys, and Universe::shipsForSaleForSystem:withTL:atTime:.
- (OOProbabilitySet *) probabilitySetForRole: | (NSString *) | role |
Definition at line 234 of file OOShipRegistry.m.
References nil.
Referenced by OOShipRegistry(OOConveniences)::randomShipKeyForRole:, Universe::randomShipKeyForRoleRespectingConditions:, and OOShipRegistry(OOConveniences)::shipKeysWithRole:.
- (NSString *) randomShipKeyForRole: | (NSString *) | role |
Provided by category OOShipRegistry(OOConveniences).
Definition at line 276 of file OOShipRegistry.m.
Referenced by Universe::randomShipKeyForRoleRespectingConditions:, and Universe::setDockingClearanceProtocolActive:.
|
implementation |
Provided by category OOShipRegistry(Singleton).
Definition at line 1724 of file OOShipRegistry.m.
+ (void) reload |
Definition at line 135 of file OOShipRegistry.m.
References nil, OODebugMonitor::release, reload, sharedRegistry, and sSingleton.
Referenced by Universe::reinitAndShowDemo:, and reload.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 997 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(Singleton).
Definition at line 1712 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(Singleton).
Definition at line 1718 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 1045 of file OOShipRegistry.m.
- (void) setShipInfoForKey: | (NSString *) | key | |
with: | (NSDictionary *) | newShipData |
Definition at line 213 of file OOShipRegistry.m.
References _shipData, and DESTROY.
Referenced by ShipStaticSetShipDataForKey().
+ (OOShipRegistry *) sharedRegistry |
Definition at line 124 of file OOShipRegistry.m.
References nil, sharedRegistry, and sSingleton.
Referenced by PlayerEntity::availableFacings, Universe::canInstantiateShip:, ShipEntity::equipmentValidToAdd:whileLoading:inContext:, Universe::initWithGameView:, PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, Universe::maxCargoForShip:, Universe::newDockWithName:andScaleFactor:, Universe::newShipWithName:usePlayerProxy:isSubentity:andScaleFactor:, Universe::newShipWithRole:, Universe::newVisualEffectWithName:, Universe::randomShipKeyForRoleRespectingConditions:, Universe::reinitAndShowDemo:, reload, PlayerEntity::renovationFactor, PlayerEntity(Contracts)::replaceShipWithNamedShip:, PlayerEntity::resetHud, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setDefaultCustomViews, Universe::setDockingClearanceProtocolActive:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, Universe(OOPrivate)::setUpInitialUniverse, Universe::setupIntroFirstGo:, PlayerEntity::setWeaponMount:toWeapon:inContext:, sharedRegistry, ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, Universe::shipsForSaleForSystem:withTL:atTime:, ShipStaticKeys(), ShipStaticKeysForRole(), ShipStaticRoles(), ShipStaticSetShipDataForKey(), ShipStaticShipDataForKey(), PlayerEntity(OOLoadSavePrivate)::showCommanderShip:, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, ShipEntity(LoadRestoreInternal)::simplifyShipdata:andGetDeletes:, Universe::spawnShip:, StationAddShipToShipyard(), and Universe::tradeInValueForCommanderDictionary:.
- (NSDictionary *) shipInfoForKey: | (NSString *) | key |
Definition at line 207 of file OOShipRegistry.m.
Referenced by Universe::canInstantiateShip:, OOShipRegistry(OODataLoader)::loadDemoShips, PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, Universe::maxCargoForShip:, Universe::newDockWithName:andScaleFactor:, Universe::newShipWithName:usePlayerProxy:isSubentity:andScaleFactor:, Universe::newShipWithRole:, PlayerEntity(Contracts)::replaceShipWithNamedShip:, PlayerEntity::resetHud, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setDefaultCustomViews, Universe(OOPrivate)::setUpInitialUniverse, ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, Universe::shipsForSaleForSystem:withTL:atTime:, ShipStaticShipDataForKey(), shipyardInfoForKey:, PlayerEntity(OOLoadSavePrivate)::showCommanderShip:, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, ShipEntity(LoadRestoreInternal)::simplifyShipdata:andGetDeletes:, Universe::spawnShip:, and StationAddShipToShipyard().
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 1658 of file OOShipRegistry.m.
Referenced by OOShipRegistry(OODataLoader)::translateOldStandardBasicSubentityDeclaration:forShip:shipData:fatalError:.
- (NSArray *) shipKeys |
Provided by category OOShipRegistry(OOConveniences).
Definition at line 260 of file OOShipRegistry.m.
Referenced by ShipStaticKeys().
- (NSArray *) shipKeysWithRole: | (NSString *) | role |
Provided by category OOShipRegistry(OOConveniences).
Definition at line 270 of file OOShipRegistry.m.
Referenced by ShipStaticKeysForRole().
- (NSArray *) shipRoles |
Provided by category OOShipRegistry(OOConveniences).
Definition at line 265 of file OOShipRegistry.m.
Referenced by ShipStaticRoles().
- (NSDictionary *) shipyardInfoForKey: | (NSString *) | key |
Definition at line 228 of file OOShipRegistry.m.
References shipInfoForKey:.
Referenced by PlayerEntity::availableFacings, ShipEntity::equipmentValidToAdd:whileLoading:inContext:, PlayerEntity::renovationFactor, PlayerEntity(Contracts)::replaceShipWithNamedShip:, PlayerEntity::setCommanderDataFromDictionary:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setWeaponMount:toWeapon:inContext:, Universe::shipsForSaleForSystem:withTL:atTime:, StationAddShipToShipyard(), and Universe::tradeInValueForCommanderDictionary:.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 808 of file OOShipRegistry.m.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 1398 of file OOShipRegistry.m.
Referenced by OOShipRegistry(OODataLoader)::translateOldStyleSubentityDeclaration:forShip:shipData:fatalError:.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 1363 of file OOShipRegistry.m.
Referenced by OOShipRegistry(OODataLoader)::translateOldStyleSubentityDeclaration:forShip:shipData:fatalError:.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 1318 of file OOShipRegistry.m.
Referenced by OOShipRegistry(OODataLoader)::canonicalizeSubentityDeclaration:forShip:shipData:fatalError:.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 1474 of file OOShipRegistry.m.
Referenced by OOShipRegistry(OODataLoader)::validateNewStyleSubentityDeclaration:forShip:fatalError:.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 1561 of file OOShipRegistry.m.
Referenced by OOShipRegistry(OODataLoader)::validateNewStyleSubentityDeclaration:forShip:fatalError:.
|
implementation |
Provided by category OOShipRegistry(OODataLoader).
Definition at line 1448 of file OOShipRegistry.m.
Referenced by OOShipRegistry(OODataLoader)::canonicalizeSubentityDeclaration:forShip:shipData:fatalError:.
|
private |
Definition at line 40 of file OOShipRegistry.h.
Referenced by init.
|
private |
Definition at line 39 of file OOShipRegistry.h.
Referenced by init.
|
private |
Definition at line 41 of file OOShipRegistry.h.
Referenced by init, and playerShipKeys.
|
private |
Definition at line 42 of file OOShipRegistry.h.
Referenced by init.
|
private |
Definition at line 38 of file OOShipRegistry.h.
Referenced by init, and setShipInfoForKey:with:.