Oolite
Loading...
Searching...
No Matches
PlayerEntityLoadSave.h
Go to the documentation of this file.
1/*
2
3PlayerEntityLoadSave.h
4
5Created for the Oolite-Linux project (but is portable)
6
7LoadSave has been separated out into a separate category because
8PlayerEntity.m has gotten far too big and is in danger of becoming
9the whole general mish mash.
10
11Oolite
12Copyright (C) 2004-2013 Giles C Williams and contributors
13
14This program is free software; you can redistribute it and/or
15modify it under the terms of the GNU General Public License
16as published by the Free Software Foundation; either version 2
17of the License, or (at your option) any later version.
18
19This program is distributed in the hope that it will be useful,
20but WITHOUT ANY WARRANTY; without even the implied warranty of
21MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22GNU General Public License for more details.
23
24You should have received a copy of the GNU General Public License
25along with this program; if not, write to the Free Software
26Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
27MA 02110-1301, USA.
28
29*/
30
31#import "GuiDisplayGen.h"
32#import "MyOpenGLView.h"
33#import "PlayerEntity.h"
34#import "Universe.h"
35
36#define EXITROW 1
37#define LABELROW 2
38#define BACKROW 3
39#define STARTROW 4
40#define ENDROW 17
41#define MOREROW 17
42#define NUMROWS 13
43#define COLUMNS 2
44#define INPUTROW 21
45#define CDRDESCROW 19
46#define SAVE_OVERWRITE_WARN_ROW 5
47#define SAVE_OVERWRITE_YES_ROW 8
48#define SAVE_OVERWRITE_NO_ROW 9
49
50@interface PlayerEntity (LoadSave)
51
52- (BOOL)loadPlayer;
53- (void)savePlayer;
54- (void)quicksavePlayer;
55- (void)autosavePlayer;
56
57- (void)setGuiToScenarioScreen:(int)page;
58- (void)addScenarioModel:(NSString*)shipKey;
60- (BOOL)startScenario;
61// Interface for PlayerEntityControls
62- (NSString*)commanderSelector;
65
66- (BOOL)loadPlayerFromFile:(NSString*)fileToOpen asNew:(BOOL)asNew;
67
68@end
69
70OOCreditsQuantity OODeciCreditsFromDouble(double doubleDeciCredits);
71
72/* Object is either a floating-point NSNumber or something that can be duck-
73 typed to an integer using OOUnsignedLongLongFromObject().
74*/
uint64_t OOCreditsQuantity
Definition OOTypes.h:160
OOCreditsQuantity OODeciCreditsFromObject(id object)
OOCreditsQuantity OODeciCreditsFromDouble(double doubleDeciCredits)