Oolite
Loading...
Searching...
No Matches
ProxyPlayerEntity.h
Go to the documentation of this file.
1/*
2
3ProxyPlayerEntity.h
4
5Ship entity which, in some respects, emulates a PlayerShip. In particular, at
6this time it implements the extra shader bindable methods of PlayerShip.
7
8
9Oolite
10Copyright (C) 2004-2013 Giles C Williams and contributors
11
12This program is free software; you can redistribute it and/or
13modify it under the terms of the GNU General Public License
14as published by the Free Software Foundation; either version 2
15of the License, or (at your option) any later version.
16
17This program is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU General Public License for more details.
21
22You should have received a copy of the GNU General Public License
23along with this program; if not, write to the Free Software
24Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
25MA 02110-1301, USA.
26
27*/
28
29#import "PlayerEntity.h"
30
32@private
40 NSUInteger _trumbleCount;
42 unsigned _massLocked : 1,
45}
46
47- (void)copyValuesFromPlayer:(PlayerEntity*)player;
48
49// Default: 0
50- (float)fuelLeakRate;
51- (void)setFuelLeakRate:(float)value;
52
53// Default: NO
54- (BOOL)massLocked;
55- (void)setMassLocked:(BOOL)value;
56
57// Default: NO
58- (BOOL)atHyperspeed;
59- (void)setAtHyperspeed:(BOOL)value;
60
61// Default: 1
62- (GLfloat)dialForwardShield;
63- (void)setDialForwardShield:(GLfloat)value;
64
65// Default: 1
66- (GLfloat)dialAftShield;
67- (void)setDialAftShield:(GLfloat)value;
68
69// Default: MISSILE_STATUS_SAFE
70- (OOMissileStatus)dialMissileStatus;
71- (void)setDialMissileStatus:(OOMissileStatus)value;
72
73// Default: SCOOP_STATUS_NOT_INSTALLED or SCOOP_STATUS_OKAY depending on equipment.
74- (OOFuelScoopStatus)dialFuelScoopStatus;
75- (void)setDialFuelScoopStatus:(OOFuelScoopStatus)value;
76
77// Default: COMPASS_MODE_BASIC or COMPASS_MODE_PLANET depending on equipment.
78- (OOCompassMode)compassMode;
79- (void)setCompassMode:(OOCompassMode)value;
80
81// Default: NO
82- (BOOL)dialIdentEngaged;
83- (void)setDialIdentEngaged:(BOOL)value;
84
85// Default: ALERT_CONDITION_DOCKED
86- (OOAlertCondition)alertCondition;
87- (void)setAlertCondition:(OOAlertCondition)condition;
88
89// Default: 0
90- (NSUInteger)trumbleCount;
91- (void)setTrumbleCount:(NSUInteger)value;
92
93- (void)setTradeInFactor:(int)tif;
94- (int)tradeInFactor;
95
96@end
97
98@interface Entity (ProxyPlayer)
99
100// True for PlayerEntity or ProxyPlayerEntity.
101- (BOOL)isPlayerLikeShip;
102
103@end
OOCompassMode
Definition OOTypes.h:129
OOFuelScoopStatus
OOMissileStatus
OOAlertCondition
Definition ShipEntity.h:166
OOCompassMode _compassMode
OOFuelScoopStatus _fuelScoopStatus
OOAlertCondition _alertCondition
OOMissileStatus _missileStatus
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque