Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
TestSelectableClientActiveObject Class Reference
+ Inheritance diagram for TestSelectableClientActiveObject:
+ Collaboration diagram for TestSelectableClientActiveObject:

Public Member Functions

 TestSelectableClientActiveObject (aabb3f _selection_box)
 
 ~TestSelectableClientActiveObject ()=default
 
ActiveObjectType getType () const override
 
void addToScene (ITextureSource *tsrc, scene::ISceneManager *smgr) override
 
bool getSelectionBox (aabb3f *toset) const override
 
const v3f getPosition () const override
 
- Public Member Functions inherited from ClientActiveObject
 ClientActiveObject (u16 id, Client *client, ClientEnvironment *env)
 
virtual ~ClientActiveObject ()
 
virtual void removeFromScene (bool permanent)
 
virtual void updateLight (u32 day_night_ratio)
 
virtual bool getCollisionBox (aabb3f *toset) const
 
virtual bool collideWithObjects () const
 
virtual const v3f getVelocity () const
 
virtual scene::ISceneNode * getSceneNode () const
 
virtual scene::IAnimatedMeshSceneNode * getAnimatedMeshSceneNode () const
 
virtual bool isLocalPlayer () const
 
virtual ClientActiveObjectgetParent () const
 
virtual const std::unordered_set< object_t > & getAttachmentChildIds () const
 
virtual void updateAttachments ()
 
virtual bool doShowSelectionBox ()
 
virtual void step (float dtime, ClientEnvironment *env)
 
virtual void processMessage (const std::string &data)
 
virtual std::string infoText ()
 
virtual std::string debugInfoText ()
 
virtual void initialize (const std::string &data)
 
virtual bool directReportPunch (v3f dir, const ItemStack *punchitem=nullptr, float time_from_last_punch=1000000)
 
- Public Member Functions inherited from ActiveObject
 ActiveObject (object_t id)
 
object_t getId () const
 
void setId (object_t id)
 
virtual void setAttachment (object_t parent_id, const std::string &bone, v3f position, v3f rotation, bool force_visible)
 
virtual void getAttachment (object_t *parent_id, std::string *bone, v3f *position, v3f *rotation, bool *force_visible) const
 
virtual void clearChildAttachments ()
 
virtual void clearParentAttachment ()
 
virtual void addAttachmentChild (object_t child_id)
 
virtual void removeAttachmentChild (object_t child_id)
 

Public Attributes

v3f position
 
aabb3f selection_box
 

Additional Inherited Members

- Public Types inherited from ActiveObject
typedef u16 object_t
 
- Static Public Member Functions inherited from ClientActiveObject
static std::unique_ptr< ClientActiveObjectcreate (ActiveObjectType type, Client *client, ClientEnvironment *env)
 
- Protected Types inherited from ClientActiveObject
typedef std::unique_ptr< ClientActiveObject >(* Factory) (Client *client, ClientEnvironment *env)
 
- Static Protected Member Functions inherited from ClientActiveObject
static void registerType (u16 type, Factory f)
 
- Protected Attributes inherited from ClientActiveObject
Clientm_client
 
ClientEnvironmentm_env
 
- Protected Attributes inherited from ActiveObject
object_t m_id
 

Constructor & Destructor Documentation

◆ TestSelectableClientActiveObject()

TestSelectableClientActiveObject::TestSelectableClientActiveObject ( aabb3f _selection_box)
inline

◆ ~TestSelectableClientActiveObject()

TestSelectableClientActiveObject::~TestSelectableClientActiveObject ( )
default

Member Function Documentation

◆ addToScene()

void TestSelectableClientActiveObject::addToScene ( ITextureSource * tsrc,
scene::ISceneManager * smgr )
inlineoverridevirtual

Implements ClientActiveObject.

◆ getPosition()

const v3f TestSelectableClientActiveObject::getPosition ( ) const
inlineoverridevirtual

Reimplemented from ClientActiveObject.

References position.

◆ getSelectionBox()

bool TestSelectableClientActiveObject::getSelectionBox ( aabb3f * toset) const
inlineoverridevirtual

Returns the selection box of the object. This box is not translated when the object moves. The box's coordinates are world coordinates.

Returns
true if the object has a selection box.

Reimplemented from ClientActiveObject.

References selection_box.

◆ getType()

ActiveObjectType TestSelectableClientActiveObject::getType ( ) const
inlineoverridevirtual

Implements ActiveObject.

References ACTIVEOBJECT_TYPE_TEST.

Member Data Documentation

◆ position

v3f TestSelectableClientActiveObject::position

Referenced by getPosition().

◆ selection_box

aabb3f TestSelectableClientActiveObject::selection_box

Referenced by getSelectionBox().


The documentation for this class was generated from the following file: