1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

tweaking around, including mapgen, player speed in water, settings

This commit is contained in:
Perttu Ahola 2011-01-15 01:26:29 +02:00
parent 023876dafb
commit cfaa15895a
8 changed files with 295 additions and 185 deletions

View file

@ -97,6 +97,9 @@ public:
virtual void updateLight(u8 light_at_pos) {};
virtual bool isClientConnected() { return false; }
virtual void setClientConnected(bool) {}
bool touching_ground;
bool in_water;
@ -115,22 +118,35 @@ protected:
class ServerRemotePlayer : public Player
{
public:
ServerRemotePlayer()
ServerRemotePlayer(bool client_connected):
m_client_connected(client_connected)
{
}
virtual ~ServerRemotePlayer()
{
}
bool isLocal() const
virtual bool isLocal() const
{
return false;
}
void move(f32 dtime, Map &map)
virtual void move(f32 dtime, Map &map)
{
}
virtual bool isClientConnected()
{
return m_client_connected;
}
virtual void setClientConnected(bool client_connected)
{
m_client_connected = client_connected;
}
// This
bool m_client_connected;
private:
};