equal
deleted
inserted
replaced
10 #include "GameState.hh" |
10 #include "GameState.hh" |
11 #include "PhysicsObject.hh" |
11 #include "PhysicsObject.hh" |
12 #include "Input.hh" |
12 #include "Input.hh" |
13 #include "Rope.hh" |
13 #include "Rope.hh" |
14 #include "Types.hh" |
14 #include "Types.hh" |
|
15 |
15 #include "Graphics/Drawable.hh" |
16 #include "Graphics/Drawable.hh" |
16 |
17 |
17 #include <vector> |
18 #include <vector> |
18 |
19 |
19 /** |
20 /** |
158 static CL_Surface skin_surface; |
159 static CL_Surface skin_surface; |
159 |
160 |
160 /** |
161 /** |
161 * Draw this player |
162 * Draw this player |
162 */ |
163 */ |
163 virtual void draw (Display *display, PixelCoordinate camera); |
164 virtual void draw (graphics::Display &display, PixelCoordinate camera); |
164 |
165 |
|
166 /** |
|
167 * Returns statistics on the number of kills for this player |
|
168 */ |
165 uint16_t getKills() { return kills; } |
169 uint16_t getKills() { return kills; } |
|
170 |
|
171 /** |
|
172 * Returns statistics on the number of deaths for this player |
|
173 */ |
166 uint16_t getDeaths() { return deaths; } |
174 uint16_t getDeaths() { return deaths; } |
167 }; |
175 }; |
168 |
176 |
169 /** |
177 /** |
170 * A LocalPlayer is a Player that we handle input for - so this is our own player on the client/singleplayer, or all |
178 * A LocalPlayer is a Player that we handle input for - so this is our own player on the client/singleplayer, or all |
193 virtual void handleInput (PlayerInput input, TimeMS dt); |
201 virtual void handleInput (PlayerInput input, TimeMS dt); |
194 |
202 |
195 /** |
203 /** |
196 * As Player, but also draws the current weapon name if displayWeapon |
204 * As Player, but also draws the current weapon name if displayWeapon |
197 */ |
205 */ |
198 virtual void draw (Display *display, bool displayWeapon, PixelCoordinate camera); |
206 virtual void draw (graphics::Display &display, bool displayWeapon, PixelCoordinate camera); |
199 }; |
207 }; |
200 |
208 |
201 /** |
209 /** |
202 * A RemotePlayer is a Player that we don't handle input for - they are a remote client connected to a remote server. |
210 * A RemotePlayer is a Player that we don't handle input for - they are a remote client connected to a remote server. |
203 * |
211 * |