1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

ServerRemotePlayer implements ServerActiveObject

This commit is contained in:
Perttu Ahola 2011-11-12 15:41:29 +02:00
parent ddaff2d653
commit 0b97ad8384
5 changed files with 39 additions and 34 deletions

View file

@ -72,13 +72,14 @@ public:
Some more dynamic interface
*/
virtual void setPos(v3f pos)
{ setBasePosition(pos); }
{ setBasePosition(pos); }
// continuous: if true, object does not stop immediately at pos
virtual void moveTo(v3f pos, bool continuous)
{ setBasePosition(pos); }
{ setBasePosition(pos); }
// If object has moved less than this and data has not changed,
// saving to disk may be omitted
virtual float getMinimumSavedMovement(){ return 2.0*BS; }
virtual float getMinimumSavedMovement()
{ return 2.0*BS; }
/*
Step object in time.