- virtual void updateName(const char *name)
- {
- snprintf(m_name, PLAYERNAME_SIZE, "%s", name);
- }
-
- const char * getName()
- {
- return m_name;
- }
-
- virtual bool isLocal() const = 0;
-
- virtual void updateLight(u8 light_at_pos) {};
-
- // NOTE: Use peer_id == 0 for disconnected
- /*virtual bool isClientConnected() { return false; }
- virtual void setClientConnected(bool) {}*/
-
- bool touching_ground;
- bool in_water;
-
- Inventory inventory;
-
- u16 peer_id;
-
-protected:
- char m_name[PLAYERNAME_SIZE];
- f32 m_pitch;
- f32 m_yaw;
- v3f m_speed;
- v3f m_position;
-};
-
-class ServerRemotePlayer : public Player
-{
-public:
- /*ServerRemotePlayer(bool client_connected):
- m_client_connected(client_connected)*/
- ServerRemotePlayer()
- {
- }
- virtual ~ServerRemotePlayer()