44 NSString *result =
nil;
47 result =
DESC(
@"oolite-ship-library-speed-stationary");
49 else if (param <= 150)
51 result =
DESC(
@"oolite-ship-library-speed-veryslow");
53 else if (param <= 250)
55 result =
DESC(
@"oolite-ship-library-speed-slow");
57 else if (param <= 325)
59 result =
DESC(
@"oolite-ship-library-speed-average");
61 else if (param <= 425)
63 result =
DESC(
@"oolite-ship-library-speed-fast");
67 result =
DESC(
@"oolite-ship-library-speed-veryfast");
76 NSString *result =
nil;
79 result =
DESC(
@"oolite-ship-library-turn-veryslow");
81 else if (param <= 2.75)
83 result =
DESC(
@"oolite-ship-library-turn-slow");
85 else if (param <= 4.5)
87 result =
DESC(
@"oolite-ship-library-turn-average");
91 result =
DESC(
@"oolite-ship-library-turn-fast");
95 result =
DESC(
@"oolite-ship-library-turn-veryfast");
104 NSString *result =
nil;
107 result =
DESC(
@"oolite-ship-library-cargo-none");
111 result = [NSString stringWithFormat:DESC(@"oolite-ship-library-cargo-carried-u"),param];
120 NSString *result =
nil;
123 result =
DESC(
@"oolite-ship-library-generator-weak");
125 else if (rate < 3.75)
127 result =
DESC(
@"oolite-ship-library-generator-average");
131 result =
DESC(
@"oolite-ship-library-generator-strong");
141 NSString *result =
nil;
144 result =
DESC(
@"oolite-ship-library-shields-veryweak");
146 else if (shields < 192)
148 result =
DESC(
@"oolite-ship-library-shields-weak");
150 else if (shields < 256)
152 result =
DESC(
@"oolite-ship-library-shields-average");
154 else if (shields < 320)
156 result =
DESC(
@"oolite-ship-library-shields-strong");
160 result =
DESC(
@"oolite-ship-library-shields-verystrong");
168 if ([demo_ship hasHyperspaceMotor])
170 return DESC(
@"oolite-ship-library-witchspace-yes");
174 return DESC(
@"oolite-ship-library-witchspace-no");
182 NSUInteger fixed = (facings&1)+(facings&2)/2+(facings&4)/4+(facings&8)/8;
184 if (fixed == 0 && pylons == 0)
186 return DESC(
@"oolite-ship-library-weapons-none");
188 return [NSString stringWithFormat:DESC(@"oolite-ship-library-weapons-u-u"),fixed,pylons];
197 return [NSString stringWithFormat:DESC(@"oolite-ship-library-turrets-u"), turretCount];
209 return [NSString stringWithFormat:DESC(@"oolite-ship-library-size-u-u-u"),(unsigned)(bb.max.x-bb.min.x),(unsigned)(bb.max.y-bb.min.y),(unsigned)(bb.max.z-bb.min.z)];
NSString * OOShipLibraryCategorySingular(NSString *category)
NSString * OOShipLibraryWitchspace(ShipEntity *demo_ship)
NSString * OOShipLibraryTurrets(ShipEntity *demo_ship)
NSString * OOShipLibraryShields(ShipEntity *demo_ship)
NSString * OOShipLibraryCargo(ShipEntity *demo_ship)
NSString * OOShipLibraryCategoryPlural(NSString *category)
NSString * OOShipLibraryGenerator(ShipEntity *demo_ship)
NSString * OOShipLibrarySize(ShipEntity *demo_ship)
NSString * OOShipLibrarySpeed(ShipEntity *demo_ship)
NSString * OOShipLibraryWeapons(ShipEntity *demo_ship)
NSString * OOShipLibraryTurnRate(ShipEntity *demo_ship)
#define OOExpandKey(key,...)
#define OOExpand(string,...)
uint8_t OOWeaponFacingSet
BoundingBox totalBoundingBox
NSUInteger missileCapacity()
float energyRechargeRate()
OOWeaponFacingSet weaponFacings()
OOCargoQuantity maxAvailableCargoSpace()