- 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) {}*/
-
- /*
- serialize() writes a bunch of text that can contain
- any characters except a '\0', and such an ending that
- deSerialize stops reading exactly at the right point.
- */
- void serialize(std::ostream &os);
- void deSerialize(std::istream &is);
-
- bool touching_ground;
- // This oscillates so that the player jumps a bit above the surface
- bool in_water;
- // This is more stable and defines the maximum speed of the player
- bool in_water_stable;
- bool swimming_up;
-
- Inventory inventory;
-
- bool craftresult_is_preview;
-
- u16 hp;
-
- // Player's privileges - a bitmaps of PRIV_xxxx.
- u64 privs;
-
- u16 peer_id;
-
-protected:
- char m_name[PLAYERNAME_SIZE];
- f32 m_pitch;
- f32 m_yaw;
- v3f m_speed;
- v3f m_position;
-
-public:
-
- // Converst a prvileges value into a human-readable string,
- // with each component separated by a comma.
- static std::wstring privsToString(u64 privs)