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:
parent
023876dafb
commit
cfaa15895a
8 changed files with 295 additions and 185 deletions
22
src/player.h
22
src/player.h
|
@ -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:
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue