@@ -73,7 +73,7 @@ class LuaEntitySAO : public UnitSAO
73
73
ServerActiveObject *puncher=NULL ,
74
74
float time_from_last_punch=1000000 );
75
75
void rightClick (ServerActiveObject *clicker);
76
- void setPos (v3f pos);
76
+ void setPos (const v3f & pos);
77
77
void moveTo (v3f pos, bool continuous);
78
78
float getMinimumSavedMovement ();
79
79
std::string getDescription ();
@@ -204,8 +204,12 @@ class PlayerSAO : public UnitSAO
204
204
void setBasePosition (const v3f &position);
205
205
void setPos (const v3f &pos);
206
206
void moveTo (v3f pos, bool continuous);
207
- void setYaw (const float yaw, bool send_data = true );
208
- void setPitch (const float pitch, bool send_data = true );
207
+ void setYaw (const float yaw);
208
+ // Data should not be sent at player initialization
209
+ void setYawAndSend (const float yaw);
210
+ void setPitch (const float pitch);
211
+ // Data should not be sent at player initialization
212
+ void setPitchAndSend (const float pitch);
209
213
f32 getPitch () const { return m_pitch; }
210
214
f32 getRadPitch () const { return m_pitch * core::DEGTORAD; }
211
215
// Deprecated
@@ -220,7 +224,8 @@ class PlayerSAO : public UnitSAO
220
224
ServerActiveObject *puncher,
221
225
float time_from_last_punch);
222
226
void rightClick (ServerActiveObject *clicker);
223
- void setHP (s16 hp, bool direct = false );
227
+ void setHP (s16 hp);
228
+ void setHPRaw (s16 hp) { m_hp = hp; }
224
229
s16 readDamage ();
225
230
u16 getBreath () const { return m_breath; }
226
231
void setBreath (const u16 breath);
0 commit comments