32@implementation ShipEntity (ScriptMethods)
39 item = [[UNIVERSE newShipWithName:shipKey] autorelease];
52 item = [[UNIVERSE newShipWithRole:role] autorelease];
60- (NSArray*)spawnShipsWithRole:(NSString*)role count:(NSUInteger)count
64 NSMutableArray* result =
nil;
74 spawned = [UNIVERSE spawnShipWithRole:role near:ship];
77 if ([
self isMissileFlagSet] && [[spawned shipInfoDictionary] oo_boolForKey:
@"is_submunition"]) {
82 if ([spawned isMine]) {
85 [
result addObject:spawned];
#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)