Oolite 1.91.0.7668-250429-8542c40
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOShipRegistry(OOConveniences) Category Reference

#include <OOShipRegistry.h>

Instance Methods

(NSArray *) - shipKeys
 
(NSArray *) - shipRoles
 
(NSArray *) - shipKeysWithRole:
 
(NSString *) - randomShipKeyForRole:
 

Detailed Description

Definition at line 61 of file OOShipRegistry.h.

Method Documentation

◆ randomShipKeyForRole:

- (NSString *) randomShipKeyForRole: (NSString *) role

Extends class OOShipRegistry.

Definition at line 276 of file OOShipRegistry.m.

276 :(NSString *)role
277{
278 return [[self probabilitySetForRole:role] randomObject];
279}

References OOShipRegistry::probabilitySetForRole:, and OOProbabilitySet::randomObject.

+ Here is the call graph for this function:

◆ shipKeys

- (NSArray *) shipKeys

Extends class OOShipRegistry.

Definition at line 260 of file OOShipRegistry.m.

261{
262 return [_shipData allKeys];
263}

References shipKeys.

Referenced by shipKeys.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shipKeysWithRole:

- (NSArray *) shipKeysWithRole: (NSString *) role

Extends class OOShipRegistry.

Definition at line 270 of file OOShipRegistry.m.

270 :(NSString *)role
271{
272 return [[self probabilitySetForRole:role] allObjects];
273}

References OOProbabilitySet::allObjects, and OOShipRegistry::probabilitySetForRole:.

+ Here is the call graph for this function:

◆ shipRoles

- (NSArray *) shipRoles

Extends class OOShipRegistry.

Definition at line 265 of file OOShipRegistry.m.

266{
267 return [_probabilitySets allKeys];
268}

References shipRoles.

Referenced by shipRoles.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this category was generated from the following files: