10#include <unordered_map>
11#include <unordered_set>
24 class IAnimatedMeshSceneNode;
53 {
static std::unordered_set<object_t> rv;
return rv; }
79 float time_from_last_punch = 1000000) {
return false; }
89 static std::unordered_map<u16, Factory>
m_types;
ActiveObjectType
Definition activeobject.h:14
static v2f dir(const v2f &pos_dist)
Definition camera.cpp:191
Definition activeobject.h:141
Definition clientobject.h:30
virtual const v3f getPosition() const
Definition clientobject.h:43
virtual std::string infoText()
Definition clientobject.h:64
std::unique_ptr< ClientActiveObject >(* Factory)(Client *client, ClientEnvironment *env)
Definition clientobject.h:83
virtual bool getCollisionBox(aabb3f *toset) const
Definition clientobject.h:40
virtual bool collideWithObjects() const
Definition clientobject.h:42
virtual void initialize(const std::string &data)
Definition clientobject.h:71
virtual void updateAttachments()
Definition clientobject.h:54
virtual scene::ISceneNode * getSceneNode() const
Definition clientobject.h:45
virtual bool isLocalPlayer() const
Definition clientobject.h:49
virtual std::string debugInfoText()
Definition clientobject.h:65
static void registerType(u16 type, Factory f)
Definition clientobject.cpp:43
virtual void processMessage(const std::string &data)
Definition clientobject.h:62
virtual ClientActiveObject * getParent() const
Definition clientobject.h:51
virtual bool directReportPunch(v3f dir, const ItemStack *punchitem=nullptr, float time_from_last_punch=1000000)
Definition clientobject.h:78
virtual void step(float dtime, ClientEnvironment *env)
Definition clientobject.h:59
virtual bool doShowSelectionBox()
Definition clientobject.h:56
virtual void updateLight(u32 day_night_ratio)
Definition clientobject.h:38
virtual const v3f getVelocity() const
Definition clientobject.h:44
ClientActiveObject(u16 id, Client *client, ClientEnvironment *env)
Definition clientobject.cpp:13
virtual bool getSelectionBox(aabb3f *toset) const
Definition clientobject.h:41
Client * m_client
Definition clientobject.h:85
virtual const std::unordered_set< object_t > & getAttachmentChildIds() const
Definition clientobject.h:52
static std::unique_ptr< ClientActiveObject > create(ActiveObjectType type, Client *client, ClientEnvironment *env)
Definition clientobject.cpp:26
static std::unordered_map< u16, Factory > m_types
Definition clientobject.h:89
virtual void removeFromScene(bool permanent)
Definition clientobject.h:36
virtual void addToScene(ITextureSource *tsrc, scene::ISceneManager *smgr)=0
virtual scene::IAnimatedMeshSceneNode * getAnimatedMeshSceneNode() const
Definition clientobject.h:47
virtual ~ClientActiveObject()
Definition clientobject.cpp:21
ClientEnvironment * m_env
Definition clientobject.h:86
Definition clientenvironment.h:54
Definition clientobject.h:93
ClientActiveObject * obj
Definition clientobject.h:95
DistanceSortedActiveObject(ClientActiveObject *a_obj, f32 a_d)
Definition clientobject.h:97
f32 d
Definition clientobject.h:109
bool operator<(const DistanceSortedActiveObject &other) const
Definition clientobject.h:103
Definition texturesource.h:36
Definition localplayer.h:49
Definition wieldmesh.h:90
core::aabbox3d< f32 > aabb3f
Definition irr_aabb3d.h:11
core::vector3df v3f
Definition irr_v3d.h:11
Definition activeobjectmgr.cpp:11
Definition clientmap.h:30
Definition inventory.h:19