Oolite 1.91.0.7604-240417-a536cbe
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
31
33{
34@private
42 NSUInteger _trumbleCount;
44 unsigned _massLocked: 1,
47}
48
49- (void) copyValuesFromPlayer:(PlayerEntity *)player;
50
51
52// Default: 0
53- (float) fuelLeakRate;
54- (void) setFuelLeakRate:(float)value;
55
56// Default: NO
57- (BOOL) massLocked;
58- (void) setMassLocked:(BOOL)value;
59
60// Default: NO
61- (BOOL) atHyperspeed;
62- (void) setAtHyperspeed:(BOOL)value;
63
64// Default: 1
65- (GLfloat) dialForwardShield;
66- (void) setDialForwardShield:(GLfloat)value;
67
68// Default: 1
69- (GLfloat) dialAftShield;
70- (void) setDialAftShield:(GLfloat)value;
71
72// Default: MISSILE_STATUS_SAFE
73- (OOMissileStatus) dialMissileStatus;
74- (void) setDialMissileStatus:(OOMissileStatus)value;
75
76// Default: SCOOP_STATUS_NOT_INSTALLED or SCOOP_STATUS_OKAY depending on equipment.
77- (OOFuelScoopStatus) dialFuelScoopStatus;
78- (void) setDialFuelScoopStatus:(OOFuelScoopStatus)value;
79
80// Default: COMPASS_MODE_BASIC or COMPASS_MODE_PLANET depending on equipment.
81- (OOCompassMode) compassMode;
82- (void) setCompassMode:(OOCompassMode)value;
83
84// Default: NO
85- (BOOL) dialIdentEngaged;
86- (void) setDialIdentEngaged:(BOOL)value;
87
88// Default: ALERT_CONDITION_DOCKED
89- (OOAlertCondition) alertCondition;
90- (void) setAlertCondition:(OOAlertCondition)condition;
91
92// Default: 0
93- (NSUInteger) trumbleCount;
94- (void) setTrumbleCount:(NSUInteger)value;
95
96- (void) setTradeInFactor:(int)tif;
97- (int) tradeInFactor;
98
99@end
100
101
102@interface Entity (ProxyPlayer)
103
104// True for PlayerEntity or ProxyPlayerEntity.
105- (BOOL) isPlayerLikeShip;
106
107@end
OOCompassMode
Definition OOTypes.h:145
OOFuelScoopStatus
OOMissileStatus
OOAlertCondition
Definition ShipEntity.h:172
OOCompassMode _compassMode
OOFuelScoopStatus _fuelScoopStatus
OOAlertCondition _alertCondition
OOMissileStatus _missileStatus
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque