- virtual void updateLight(u8 light_at_pos)
- {
- light = 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 is_climbing;
- bool swimming_up;
-
- u8 light;