Line data Source code
1 0 : /* 2 : 3 : OOShipLibraryDescriptions.h 4 : 5 : Default descriptions for ships 6 : 7 : Oolite 8 : Copyright (C) 2004-2013 Giles C Williams and contributors 9 : 10 : This program is free software; you can redistribute it and/or 11 : modify it under the terms of the GNU General Public License 12 : as published by the Free Software Foundation; either version 2 13 : of the License, or (at your option) any later version. 14 : 15 : This program is distributed in the hope that it will be useful, 16 : but WITHOUT ANY WARRANTY; without even the implied warranty of 17 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 : GNU General Public License for more details. 19 : 20 : You should have received a copy of the GNU General Public License 21 : along with this program; if not, write to the Free Software 22 : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 23 : MA 02110-1301, USA. 24 : 25 : */ 26 : 27 : #import "ShipEntity.h" 28 : 29 0 : static NSString * const kOODemoShipKey = @"ship"; 30 0 : static NSString * const kOODemoShipName = @"name"; // set internally only 31 0 : static NSString * const kOODemoShipClass = @"class"; 32 0 : static NSString * const kOODemoShipSummary = @"summary"; 33 0 : static NSString * const kOODemoShipDescription = @"description"; 34 0 : static NSString * const kOODemoShipShipData = @"ship_data"; 35 0 : static NSString * const kOODemoShipSpeed = @"speed"; 36 0 : static NSString * const kOODemoShipTurnRate = @"turn_rate"; 37 0 : static NSString * const kOODemoShipCargo = @"cargo"; 38 0 : static NSString * const kOODemoShipGenerator = @"generator"; 39 0 : static NSString * const kOODemoShipShields = @"shields"; 40 0 : static NSString * const kOODemoShipWitchspace = @"witchspace"; 41 0 : static NSString * const kOODemoShipWeapons = @"weapons"; 42 0 : static NSString * const kOODemoShipTurrets = @"turrets"; 43 0 : static NSString * const kOODemoShipSize = @"size"; 44 0 : static NSString * const kOODemoShipConditions = @"condition_script"; 45 : 46 0 : NSString *OOShipLibraryCategorySingular(NSString *category); 47 0 : NSString *OOShipLibraryCategoryPlural(NSString *category); 48 : 49 0 : NSString *OOShipLibrarySpeed (ShipEntity *demo_ship); 50 0 : NSString *OOShipLibraryTurnRate (ShipEntity *demo_ship); 51 0 : NSString *OOShipLibraryCargo (ShipEntity *demo_ship); 52 0 : NSString *OOShipLibraryGenerator (ShipEntity *demo_ship); 53 0 : NSString *OOShipLibraryShields (ShipEntity *demo_ship); 54 0 : NSString *OOShipLibraryWitchspace (ShipEntity *demo_ship); 55 0 : NSString *OOShipLibraryWeapons (ShipEntity *demo_ship); 56 0 : NSString *OOShipLibraryTurrets (ShipEntity *demo_ship); 57 0 : NSString *OOShipLibrarySize (ShipEntity *demo_ship);