equal
deleted
inserted
replaced
37 |
37 |
38 // default constructor for use with virtual inheritance... it's not defined |
38 // default constructor for use with virtual inheritance... it's not defined |
39 Player (void); |
39 Player (void); |
40 Player (GameState &state, Vector position, bool visible); |
40 Player (GameState &state, Vector position, bool visible); |
41 |
41 |
42 // used by the network code to execute actions for players |
42 /* |
|
43 * Used by the network code to execute various actions |
|
44 */ |
43 virtual void handleDig (Vector position, float radius); |
45 virtual void handleDig (Vector position, float radius); |
44 virtual void handleCreateProjectile (Weapon *weapon, Vector position, Vector velocity); |
46 virtual void handleCreateProjectile (Weapon *weapon, Vector position, Vector velocity); |
45 virtual void handleChangeWeapon (unsigned int weaponIndex); |
47 virtual void handleChangeWeapon (unsigned int weaponIndex); |
|
48 |
|
49 // Called by rope to handle state changes, these don't do anything by default |
|
50 virtual void handleRopeState (RopeState state); |
|
51 virtual void handleRopeLength (float length); |
46 |
52 |
47 /* |
53 /* |
48 * The currently selected weapon |
54 * The currently selected weapon |
49 */ |
55 */ |
50 Weapon* getCurrentWeapon(); |
56 Weapon* getCurrentWeapon(); |