34@implementation ShipEntity (ScriptMethods)
42 item = [[UNIVERSE newShipWithName:shipKey] autorelease];
56 item = [[UNIVERSE newShipWithRole:role] autorelease];
64- (NSArray *) spawnShipsWithRole:(NSString *)role count:(NSUInteger)count
68 NSMutableArray *result =
nil;
78 spawned = [UNIVERSE spawnShipWithRole:role near:ship];
82 if ([
self isMissileFlagSet] && [[spawned shipInfoDictionary] oo_boolForKey:
@"is_submunition"])
88 [
result addObject:spawned];
64- (NSArray *) spawnShipsWithRole:(NSString *)role count:(NSUInteger)count {
…}
#define OOLog(class, format,...)
static NSString *const kOOLogNoteAddShips
ShipEntity * rootShipEntity()
void addTarget:(Entity *targetEntity)
OOCargoType dumpItem:(ShipEntity *jetto)
float randomEjectaTemperature()
void setTemperature:(GLfloat value)
void setIsMissileFlag:(BOOL newValue)
void setOwner:(Entity *who_owns_entity)