equal
deleted
inserted
replaced
42 |
42 |
43 CL_SlotContainer slots; |
43 CL_SlotContainer slots; |
44 |
44 |
45 public: |
45 public: |
46 NetworkServerPlayer (NetworkServer &server, NetworkNode *node); |
46 NetworkServerPlayer (NetworkServer &server, NetworkNode *node); |
47 |
47 |
|
48 protected: |
48 // override from Player to replicate side effects of events to clients |
49 // override from Player to replicate side effects of events to clients |
49 virtual void handleDig (Vector position, float radius); |
50 virtual void handleDig (Vector position, float radius); |
50 virtual void handleCreateProjectile (Weapon &weapon, Vector position, Vector velocity); |
51 virtual void handleCreateProjectile (Weapon *weapon, Vector position, Vector velocity); |
|
52 virtual void handleChangeWeapon (unsigned int weaponIndex); |
51 |
53 |
52 private: |
54 private: |
53 void on_disconnected (void); |
55 void on_disconnected (void); |
54 void on_input (NetworkNode *node, NetworkPacketInput &pkt); |
56 void on_input (NetworkNode *node, NetworkPacketInput &pkt); |
55 |
57 |