![]() |
Oolite 1.91.0.7658-250404-b1488af
|
#include <OOShipGroup.h>
Instance Methods | |
(id) | - init |
(id) | - initWithName: |
(NSString *) | - name |
(void) | - setName: |
(ShipEntity *) | - leader |
(void) | - setLeader: |
(NSEnumerator *) | - objectEnumerator |
(NSEnumerator *) | - mutationSafeEnumerator |
(NSSet *) | - members |
(NSArray *) | - memberArray |
(NSSet *) | - membersExcludingLeader |
(NSArray *) | - memberArrayExcludingLeader |
(BOOL) | - containsShip: |
(BOOL) | - addShip: |
(BOOL) | - removeShip: |
(NSUInteger) | - count |
(BOOL) | - isEmpty |
(void) | - dealloc [implementation] |
(NSString *) | - descriptionComponents [implementation] |
(BOOL) | - resizeTo: [implementation] |
(void) | - cleanUp [implementation] |
(NSUInteger) | - updateCount [implementation] |
(NSUInteger) | - countByEnumeratingWithState:objects:count: [implementation] |
(BOOL) | - suppressClangStuff [implementation] |
(NSString *) | - inspDescription [implementation] |
(NSString *) | - inspBasicIdentityLine [implementation] |
(NSArray *) | - debugInspectorModules [implementation] |
(jsval) | - oo_jsValueInContext: [implementation] |
(void) | - oo_clearJSSelf: [implementation] |
![]() | |
(id) | - weakSelf |
(id) | - weakRetain [implementation] |
(void) | - weakRefDied: [implementation] |
![]() | |
(id) | - OO_RETURNS_RETAINED |
Class Methods | |
(instancetype) | + groupWithName: |
(instancetype) | + groupWithName:leader: |
(static id) | + ShipGroupIterate [implementation] |
Protected Attributes | |
< NSFastEnumeration > unsigned long | _updateCount |
OOWeakReference ** | _members |
OOWeakReference * | _leader |
NSString * | _name |
struct JSObject * | _jsSelf |
![]() | |
OOWeakReference * | weakSelf |
Definition at line 33 of file OOShipGroup.h.
- (BOOL) addShip: | (ShipEntity *) | ship |
Definition at line 342 of file OOShipGroup.m.
References _members, _updateCount, kMaxFreeSpace, and OOWeakRefObject::weakRetain.
Referenced by ShipEntity::acceptAsEscort:, ShipEntity::setGroup:, and setLeader:.
|
implementation |
Provided by category OOShipGroup(Private).
Definition at line 443 of file OOShipGroup.m.
References OOShipGroup(Private)::cleanUp, kMaxFreeSpace, kMinSize, and resizeTo:.
Referenced by OOShipGroup(Private)::cleanUp, countByEnumeratingWithState:objects:count:, removeShip:, and ShipGroupIterate.
- (BOOL) containsShip: | (ShipEntity *) | ship |
Definition at line 267 of file OOShipGroup.m.
References nil.
- (NSUInteger) count |
Definition at line 403 of file OOShipGroup.m.
References count, nil, and objectEnumerator.
Referenced by ShipEntity::acceptAsEscort:, ShipEntity(PureAI)::checkGroupOddsVersusTarget, count, ShipEntity::deployEscorts, ShipEntity::escortCount, ShipEntity::hasEscorts, OOShipGroup(OOInspectorExtensions)::inspDescription, memberArray, memberArrayExcludingLeader, ShipEntity::setUpEscorts, and ShipEntity(Private)::setUpMixedEscorts.
|
implementation |
Definition at line 515 of file OOShipGroup.m.
References _members, _updateCount, cleanUp, nil, and OOWeakReference::weakRefUnderlyingObject.
|
implementation |
Reimplemented from OOWeakRefObject.
Definition at line 119 of file OOShipGroup.m.
References _members, dealloc, and OOWeakRefObject::dealloc.
Referenced by dealloc.
|
implementation |
Provided by category OOShipGroup(OOInspectorExtensions).
Definition at line 130 of file OOShipGroupDebugInspectorModule.m.
|
implementation |
Definition at line 134 of file OOShipGroup.m.
References descriptionComponents, leader, name, and nil.
Referenced by descriptionComponents.
+ (instancetype) groupWithName: | (NSString *) | name |
Definition at line 105 of file OOShipGroup.m.
Referenced by Universe::addShipsAt:withRole:quantity:withinRadius:asGroup:, ShipEntity::fireMissileWithIdentifier:andTarget:, and groupWithName:leader:.
+ (instancetype) groupWithName: | (NSString *) | name | |
leader: | (ShipEntity *) | leader |
Definition at line 111 of file OOShipGroup.m.
References groupWithName:, and setLeader:.
- (id) init |
Definition at line 80 of file OOShipGroup.m.
References init, and initWithName:.
Referenced by init, and initWithName:.
- (id) initWithName: | (NSString *) | name |
Definition at line 86 of file OOShipGroup.m.
References _members, init, kMinSize, nil, and setName:.
Referenced by init.
|
implementation |
Provided by category OOShipGroup(OOInspectorExtensions).
Definition at line 122 of file OOShipGroupDebugInspectorModule.m.
|
implementation |
Provided by category OOShipGroup(OOInspectorExtensions).
Definition at line 112 of file OOShipGroupDebugInspectorModule.m.
Referenced by OOShipDebugInspectorModule::update.
- (BOOL) isEmpty |
Definition at line 420 of file OOShipGroup.m.
References isEmpty, nil, and objectEnumerator.
Referenced by isEmpty.
- (ShipEntity *) leader |
Definition at line 167 of file OOShipGroup.m.
References _leader, leader, nil, and OOWeakReference::weakRefUnderlyingObject.
Referenced by ShipEntity(PureAI)::checkForMotherStation, descriptionComponents, ShipEntity::fireMissileWithIdentifier:andTarget:, OOShipGroupDebugInspectorModule::inspectLeader:, leader, memberArrayExcludingLeader, ShipEntity(PureAI)::patrolReportIn, removeShip:, ShipEntity(PureAI)::requestNewTarget, ShipEntity::respondToAttackFrom:becauseOf:, ShipEntity::setGroup:, setLeader:, ShipEntity(PureAI)::setPlanetPatrolCoordinates, ShipEntity::setTargetToNearestStationIncludingHostiles:, ShipGroupAddShip(), ShipGroupGetProperty(), ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, WormholeEntity::suckInShip:, ShipEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity(PureAI)::thargonCheckMother, OOShipGroupDebugInspectorModule::update, and ShipEntity::update:.
- (NSArray *) memberArray |
Definition at line 220 of file OOShipGroup.m.
References count, memberArray, and nil.
Referenced by memberArray, members, mutationSafeEnumerator, and ShipGroupGetProperty().
- (NSArray *) memberArrayExcludingLeader |
Definition at line 241 of file OOShipGroup.m.
References count, leader, memberArrayExcludingLeader, and nil.
Referenced by memberArrayExcludingLeader, membersExcludingLeader, and ShipGetProperty().
- (NSSet *) members |
Definition at line 207 of file OOShipGroup.m.
References memberArray, and members.
Referenced by members.
- (NSSet *) membersExcludingLeader |
Definition at line 213 of file OOShipGroup.m.
References memberArrayExcludingLeader, and membersExcludingLeader.
Referenced by membersExcludingLeader.
- (NSEnumerator *) mutationSafeEnumerator |
Definition at line 201 of file OOShipGroup.m.
References memberArray, and mutationSafeEnumerator.
Referenced by ShipEntity::escortEnumerator, and mutationSafeEnumerator.
- (NSString *) name |
Definition at line 149 of file OOShipGroup.m.
Referenced by descriptionComponents, OOShipGroup(OOInspectorExtensions)::inspBasicIdentityLine, OOShipGroup(OOInspectorExtensions)::inspDescription, name, setName:, and ShipGroupGetProperty().
- (NSEnumerator *) objectEnumerator |
Definition at line 195 of file OOShipGroup.m.
References objectEnumerator.
Referenced by count, isEmpty, objectEnumerator, ShipEntity::realAlertCondition, and removeShip:.
|
implementation |
Provided by category OOShipGroup(OOJavaScriptExtensions).
Definition at line 246 of file OOJSShipGroup.m.
|
implementation |
Provided by category OOShipGroup(OOJavaScriptExtensions).
Definition at line 227 of file OOJSShipGroup.m.
- (BOOL) removeShip: | (ShipEntity *) | ship |
Definition at line 366 of file OOShipGroup.m.
References _members, _updateCount, cleanUp, OOShipGroupEnumerator::index, leader, nil, objectEnumerator, ShipEntity::setGroup:, setLeader:, ShipEntity::setOwner:, and OOShipGroupEnumerator::setPerformCleanup:.
Referenced by ShipEntity::dealloc, ShipEntity::respondToAttackFrom:becauseOf:, ShipEntity::setGroup:, and ShipEntity::update:.
|
implementation |
Provided by category OOShipGroup(Private).
Definition at line 428 of file OOShipGroup.m.
Referenced by OOShipGroup(Private)::cleanUp.
- (void) setLeader: | (ShipEntity *) | leader |
Definition at line 182 of file OOShipGroup.m.
References _leader, _updateCount, addShip:, leader, and OOWeakRefObject::weakRetain.
Referenced by ShipEntity::escortGroup, groupWithName:leader:, StationEntity::launchIndependentShip:, removeShip:, ShipEntity::setEscortGroup:, ShipEntity::setGroup:, ShipEntity::setUpEscorts, ShipEntity(Private)::setUpMixedEscorts, ShipGroupSetProperty(), ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, and ShipEntity::stationGroup.
- (void) setName: | (NSString *) | name |
Definition at line 155 of file OOShipGroup.m.
References _name, _updateCount, and name.
Referenced by initWithName:, ShipGroupSetProperty(), and ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:.
|
implementation |
Definition at line 473 of file OOShipGroup.m.
References OOShipGroupEnumerator::_cleanupNeeded, OOShipGroupEnumerator::_considerCleanup, OOShipGroupEnumerator::_group, OOShipGroupEnumerator::_index, _members, _updateCount, OOShipGroupEnumerator::_updateCount, cleanUp, and nil.
|
implementation |
Definition at line 553 of file OOShipGroup.m.
References _jsSelf, and suppressClangStuff.
Referenced by suppressClangStuff.
|
implementation |
Provided by category OOShipGroup(Private).
Definition at line 467 of file OOShipGroup.m.
References OOShipGroup(Private)::updateCount.
Referenced by OOShipGroupEnumerator::initWithShipGroup:, and OOShipGroup(Private)::updateCount.
|
protected |
Definition at line 45 of file OOShipGroup.h.
Referenced by suppressClangStuff.
|
protected |
Definition at line 42 of file OOShipGroup.h.
Referenced by leader, and setLeader:.
|
protected |
Definition at line 41 of file OOShipGroup.h.
Referenced by addShip:, countByEnumeratingWithState:objects:count:, dealloc, initWithName:, removeShip:, and ShipGroupIterate.
|
protected |
Definition at line 43 of file OOShipGroup.h.
|
protected |
Definition at line 40 of file OOShipGroup.h.
Referenced by addShip:, countByEnumeratingWithState:objects:count:, removeShip:, setLeader:, setName:, and ShipGroupIterate.