|
Oolite
|
Definition at line 64 of file OOShipRegistry.m.
| - (BOOL) applyLikeShips: | (NSMutableDictionary*) | ioData | |
| withKey: | (NSString*) | likeKey |
Extends class OOShipRegistry.
Definition at line 580 of file OOShipRegistry.m.
References count, foreachkey, OOShipRegistry::mergeShip:withParent:, nil, OOLogERR, and OOStandardsError().
| - (void) buildRoleProbabilitySets |
Extends class OOShipRegistry.
Definition at line 532 of file OOShipRegistry.m.
References buildRoleProbabilitySets, foreachkey, OOShipRegistry::mergeShipRoles:forShipKey:intoProbabilityMap:, nil, OOProbabilitySet::propertyListRepresentation, OOCacheManager::setObject:forKey:inCache:, and OOCacheManager::sharedCache.
Referenced by buildRoleProbabilitySets.
| - (BOOL) canonicalizeAndTagSubentities: | (NSMutableDictionary*) | ioData |
Extends class OOShipRegistry.
Definition at line 828 of file OOShipRegistry.m.
References OOShipRegistry::canonicalizeSubentityDeclaration:forShip:shipData:fatalError:, count, nil, OOLogERR, and OOStandardsError().
| - (NSDictionary *) canonicalizeSubentityDeclaration: | (id) | declaration | |
| forShip: | (NSString*) | shipKey | |
| shipData: | (NSDictionary*) | shipData | |
| fatalError: | (BOOL*) | outFatalError |
Extends class OOShipRegistry.
Definition at line 1138 of file OOShipRegistry.m.
References nil, OOEnforceStandards(), OOLogERR, OOStandardsDeprecated(), OOShipRegistry::translateOldStyleSubentityDeclaration:forShip:shipData:fatalError:, and OOShipRegistry::validateNewStyleSubentityDeclaration:forShip:fatalError:.
| - (BOOL) loadAndApplyShipDataOverrides: | (NSMutableDictionary*) | ioData |
Extends class OOShipRegistry.
Definition at line 719 of file OOShipRegistry.m.
References ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, foreachkey, nil, and OOLogERR.
| - (BOOL) loadAndMergeShipyard: | (NSMutableDictionary*) | ioData |
Extends class OOShipRegistry.
Definition at line 775 of file OOShipRegistry.m.
References ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, foreachkey, nil, OOLogWARN, OOCacheManager::setObject:forKey:inCache:, and OOCacheManager::sharedCache.
| - (void) loadCachedRoleProbabilitySets |
Extends class OOShipRegistry.
Definition at line 513 of file OOShipRegistry.m.
References foreachkey, loadCachedRoleProbabilitySets, nil, OOCacheManager::objectForKey:inCache:, OOProbabilitySet::probabilitySetWithPropertyListRepresentation:, OOCache::setObject:forKey:, and OOCacheManager::sharedCache.
Referenced by loadCachedRoleProbabilitySets.
| - (void) loadDemoShipConditions |
Extends class OOShipRegistry.
Definition at line 383 of file OOShipRegistry.m.
References ResourceManager::arrayFromFilesNamed:inFolder:andMerge:cache:, loadDemoShipConditions, nil, OOCacheManager::setObject:forKey:inCache:, and OOCacheManager::sharedCache.
Referenced by loadDemoShipConditions.
| - (void) loadDemoShips |
Extends class OOShipRegistry.
Definition at line 411 of file OOShipRegistry.m.
References ResourceManager::arrayFromFilesNamed:inFolder:andMerge:cache:, OOJSScript::callMethod:inContext:withArguments:count:result:, count, DESTROY, kDefaultDemoShip, kOODemoShipClass, kOODemoShipKey, loadDemoShips, nil, OOJSAcquireContext(), OOJSFreeValue, OOJSRelinquishContext(), OOJSUndefinedValue, OOJSValueFromNativeObject(), OOJSValueToBOOL(), OOLog, PLAYER, and OOShipRegistry::shipInfoForKey:.
Referenced by loadDemoShips.
| - (void) loadShipData |
Extends class OOShipRegistry.
Definition at line 271 of file OOShipRegistry.m.
References ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, DumpStringAddrs(), loadShipData, nil, OODeepCopy(), OOLog, OOCacheManager::setObject:forKey:inCache:, and OOCacheManager::sharedCache.
Referenced by loadShipData.
| - (BOOL) makeShipEntriesMutable: | (NSMutableDictionary*) | ioData |
Extends class OOShipRegistry.
Definition at line 698 of file OOShipRegistry.m.
| - (NSMutableDictionary *) mergeShip: | (NSDictionary*) | child | |
| withParent: | (NSDictionary*) | parent |
Extends class OOShipRegistry.
Definition at line 644 of file OOShipRegistry.m.
References nil.
| - (void) mergeShipRoles: | (NSString*) | roles | |
| forShipKey: | (NSString*) | shipKey | |
| intoProbabilityMap: | (NSMutableDictionary*) | probabilitySets |
Extends class OOShipRegistry.
Definition at line 1097 of file OOShipRegistry.m.
References foreachkey, nil, OOParseRolesFromString(), OOMutableProbabilitySet::probabilitySet, and OOMutableProbabilitySet::setWeight:forObject:.
| - (BOOL) removeUnusableEntries: | (NSMutableDictionary*) | ioData | |
| shipMode: | (BOOL) | shipMode |
Extends class OOShipRegistry.
Definition at line 908 of file OOShipRegistry.m.
References nil, OOLogERR, and OOStandardsError().
| - (BOOL) sanitizeConditions: | (NSMutableDictionary*) | ioData |
Extends class OOShipRegistry.
Definition at line 949 of file OOShipRegistry.m.
References nil, OOEnforceStandards(), OOLogWARN, OOSanitizeLegacyScriptConditions(), OOStandardsDeprecated(), OOCacheManager::setObject:forKey:inCache:, and OOCacheManager::sharedCache.
| - (BOOL) shipIsBallTurretForKey: | (NSString*) | shipKey | |
| inShipData: | (NSDictionary*) | shipData |
Extends class OOShipRegistry.
Definition at line 1486 of file OOShipRegistry.m.
References nil, and ScanTokensFromString().
| - (BOOL) stripPrivateKeys: | (NSMutableDictionary*) | ioData |
Extends class OOShipRegistry.
Definition at line 747 of file OOShipRegistry.m.
References foreachkey, and nil.
| - (NSDictionary *) translateOldStandardBasicSubentityDeclaration: | (NSArray*) | tokens | |
| forShip: | (NSString*) | shipKey | |
| shipData: | (NSDictionary*) | shipData | |
| fatalError: | (BOOL*) | outFatalError |
Extends class OOShipRegistry.
Definition at line 1251 of file OOShipRegistry.m.
References nil, OOLog, OOLogWARN, quaternion_normalize(), OOShipRegistry::shipIsBallTurretForKey:inShipData:, Quaternion::w, Quaternion::x, Vector::x, Quaternion::y, Vector::y, Quaternion::z, and Vector::z.
| - (NSDictionary *) translateOldStyleFlasherDeclaration: | (NSArray*) | tokens | |
| forShip: | (NSString*) | shipKey | |
| fatalError: | (BOOL*) | outFatalError |
Extends class OOShipRegistry.
Definition at line 1217 of file OOShipRegistry.m.
| - (NSDictionary *) translateOldStyleSubentityDeclaration: | (NSString*) | declaration | |
| forShip: | (NSString*) | shipKey | |
| shipData: | (NSDictionary*) | shipData | |
| fatalError: | (BOOL*) | outFatalError |
Extends class OOShipRegistry.
Definition at line 1180 of file OOShipRegistry.m.
References count, nil, OOLogERR, OOLogWARN, ScanTokensFromString(), OOShipRegistry::translateOldStandardBasicSubentityDeclaration:forShip:shipData:fatalError:, and OOShipRegistry::translateOldStyleFlasherDeclaration:forShip:fatalError:.
| - (NSDictionary *) validateNewStyleFlasherDeclaration: | (NSDictionary*) | declaration | |
| forShip: | (NSString*) | shipKey | |
| fatalError: | (BOOL*) | outFatalError |
Extends class OOShipRegistry.
Definition at line 1320 of file OOShipRegistry.m.
References OOColor::colorWithDescription:, count, kDefaultFlasherColor, kZeroVector, nil, OOColor::normalizedArray, and OOLogWARN.
| - (NSDictionary *) validateNewStyleStandardSubentityDeclaration: | (NSDictionary*) | declaration | |
| forShip: | (NSString*) | shipKey | |
| fatalError: | (BOOL*) | outFatalError |
Extends class OOShipRegistry.
Definition at line 1397 of file OOShipRegistry.m.
References COMBAT_WEAPON_RANGE_FACTOR, kIdentityQuaternion, kZeroVector, nil, OOLogERR, OOLogWARN, quaternion_normalize(), and TURRET_SHOT_RANGE.
| - (NSDictionary *) validateNewStyleSubentityDeclaration: | (NSDictionary*) | declaration | |
| forShip: | (NSString*) | shipKey | |
| fatalError: | (BOOL*) | outFatalError |
Extends class OOShipRegistry.
Definition at line 1299 of file OOShipRegistry.m.
References nil, OOLogERR, OOShipRegistry::validateNewStyleFlasherDeclaration:forShip:fatalError:, and OOShipRegistry::validateNewStyleStandardSubentityDeclaration:forShip:fatalError:.