Oolite
Loading...
Searching...
No Matches
OOShipRegistry(OOConveniences) Category Reference

#include <OOShipRegistry.h>

Instance Methods

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

Detailed Description

Definition at line 58 of file OOShipRegistry.h.

Method Documentation

◆ randomShipKeyForRole:

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

Extends class OOShipRegistry.

Definition at line 252 of file OOShipRegistry.m.

252 :(NSString*)role
253{
254 return [[self probabilitySetForRole:role] randomObject];
255}

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

Here is the call graph for this function:

◆ shipKeys

- (NSArray *) shipKeys

Extends class OOShipRegistry.

Definition at line 237 of file OOShipRegistry.m.

238{
239 return [_shipData allKeys];
240}

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 247 of file OOShipRegistry.m.

247 :(NSString*)role
248{
249 return [[self probabilitySetForRole:role] allObjects];
250}

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

Here is the call graph for this function:

◆ shipRoles

- (NSArray *) shipRoles

Extends class OOShipRegistry.

Definition at line 242 of file OOShipRegistry.m.

243{
244 return [_probabilitySets allKeys];
245}

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: