18 const std::string &state) :
28 void step(
float dtime,
bool send_recommended);
37 float time_from_last_punch = 1000000.0f,
38 u16 initial_wear = 0);
61 bool select_horiz_by_yawpitch);
80 void sendPosition(
bool do_interpolate,
bool is_movement_end);
83 f32 framelength,
bool select_horiz_by_yawpitch);
ActiveObjectType
Definition activeobject.h:14
@ ACTIVEOBJECT_TYPE_GENERIC
Definition activeobject.h:28
@ ACTIVEOBJECT_TYPE_LUAENTITY
Definition activeobject.h:24
static v2f dir(const v2f &pos_dist)
Definition camera.cpp:191
Definition luaentity_sao.h:11
v3f m_last_sent_rotation
Definition luaentity_sao.h:94
std::string m_init_state
Definition luaentity_sao.h:86
void setSprite(v2s16 p, int num_frames, float framelength, bool select_horiz_by_yawpitch)
Definition luaentity_sao.cpp:474
v3f m_acceleration
Definition luaentity_sao.h:90
void dispatchScriptDeactivate(bool removal)
Definition luaentity_sao.cpp:111
std::string getName()
Definition luaentity_sao.cpp:487
void setPos(const v3f &pos)
Definition luaentity_sao.cpp:364
u32 punch(v3f dir, const ToolCapabilities *toolcap=nullptr, ServerActiveObject *puncher=nullptr, float time_from_last_punch=1000000.0f, u16 initial_wear=0)
Definition luaentity_sao.cpp:307
std::string generateSetTextureModCommand() const
Definition luaentity_sao.cpp:450
static std::string generateSetSpriteCommand(v2s16 p, u16 num_frames, f32 framelength, bool select_horiz_by_yawpitch)
Definition luaentity_sao.cpp:460
std::string getClientInitializationData(u16 protocol_version)
Definition luaentity_sao.cpp:230
v3f m_velocity
Definition luaentity_sao.h:89
void setAcceleration(v3f acceleration)
Definition luaentity_sao.cpp:427
float getMinimumSavedMovement()
Definition luaentity_sao.cpp:381
v3f m_last_sent_position
Definition luaentity_sao.h:92
std::string getDescription()
Definition luaentity_sao.cpp:386
bool collideWithObjects() const
Definition luaentity_sao.cpp:558
v3f m_last_sent_velocity
Definition luaentity_sao.h:93
float m_last_sent_position_timer
Definition luaentity_sao.h:95
bool shouldUnload() const
Definition luaentity_sao.h:32
virtual void onMarkedForRemoval()
Definition luaentity_sao.h:73
~LuaEntitySAO()
Definition luaentity_sao.cpp:73
void sendPosition(bool do_interpolate, bool is_movement_end)
Definition luaentity_sao.cpp:497
ActiveObjectType getSendType() const
Definition luaentity_sao.h:26
void getStaticData(std::string *result) const
Definition luaentity_sao.cpp:274
bool isStaticAllowed() const
Definition luaentity_sao.h:31
std::string getTextureMod() const
Definition luaentity_sao.cpp:445
std::string m_init_name
Definition luaentity_sao.h:85
bool getCollisionBox(aabb3f *toset) const
Definition luaentity_sao.cpp:529
void moveTo(v3f pos, bool continuous)
Definition luaentity_sao.cpp:372
bool m_registered
Definition luaentity_sao.h:87
void setTextureMod(const std::string &mod)
Definition luaentity_sao.cpp:437
bool m_texture_modifier_sent
Definition luaentity_sao.h:99
void setHP(s32 hp, const PlayerHPChangeReason &reason)
Definition luaentity_sao.cpp:395
std::string getPropertyPacket()
Definition luaentity_sao.cpp:492
v3f getVelocity()
Definition luaentity_sao.cpp:422
bool getSelectionBox(aabb3f *toset) const
Definition luaentity_sao.cpp:546
std::string m_texture_modifier
Definition luaentity_sao.h:98
LuaEntitySAO(ServerEnvironment *env, v3f pos, const std::string &name, const std::string &state)
Definition luaentity_sao.h:17
void setVelocity(v3f velocity)
Definition luaentity_sao.cpp:417
void step(float dtime, bool send_recommended)
Definition luaentity_sao.cpp:120
ActiveObjectType getType() const
Definition luaentity_sao.h:25
virtual void onMarkedForDeactivation()
Definition luaentity_sao.h:69
float m_last_sent_move_precision
Definition luaentity_sao.h:96
virtual void addedToEnvironment(u32 dtime_s)
Definition luaentity_sao.cpp:84
void addVelocity(v3f velocity)
Definition luaentity_sao.h:53
u16 getHP() const
Definition luaentity_sao.cpp:412
void rightClick(ServerActiveObject *clicker)
Definition luaentity_sao.cpp:356
v3f getAcceleration()
Definition luaentity_sao.cpp:432
Definition serveractiveobject.h:41
Definition serverenvironment.h:219
virtual void onMarkedForRemoval() override
Definition unit_sao.h:117
ObjectProperties m_prop
Definition unit_sao.h:105
virtual void onMarkedForDeactivation() override
Definition unit_sao.h:113
core::aabbox3d< f32 > aabb3f
Definition irr_aabb3d.h:11
core::vector2d< s16 > v2s16
Definition irr_v2d.h:12
core::vector3df v3f
Definition irr_v3d.h:11
bool static_save
Definition object_properties.h:54
Definition player_sao.h:227
static std::string p(std::string path)
Definition test_filesys.cpp:53