Minetest  5.4.0
TestAO Class Reference
+ Inheritance diagram for TestAO:
+ Collaboration diagram for TestAO:

Public Member Functions

 TestAO (u16 id)
 
virtual ActiveObjectType getType () const
 
virtual bool getCollisionBox (aabb3f *toset) const
 
virtual bool getSelectionBox (aabb3f *toset) const
 
virtual bool collideWithObjects () const
 
- Public Member Functions inherited from ActiveObject
 ActiveObject (u16 id)
 
u16 getId () const
 
void setId (u16 id)
 
virtual void setAttachment (int parent_id, const std::string &bone, v3f position, v3f rotation, bool force_visible)
 
virtual void getAttachment (int *parent_id, std::string *bone, v3f *position, v3f *rotation, bool *force_visible) const
 
virtual void clearChildAttachments ()
 
virtual void clearParentAttachment ()
 
virtual void addAttachmentChild (int child_id)
 
virtual void removeAttachmentChild (int child_id)
 

Additional Inherited Members

- Protected Attributes inherited from ActiveObject
u16 m_id
 

Constructor & Destructor Documentation

◆ TestAO()

TestAO::TestAO ( u16  id)
inline

Member Function Documentation

◆ collideWithObjects()

virtual bool TestAO::collideWithObjects ( ) const
inlinevirtual

Implements ActiveObject.

◆ getCollisionBox()

virtual bool TestAO::getCollisionBox ( aabb3f toset) const
inlinevirtual

Returns the collision box of the object. This box is translated by the object's location. The box's coordinates are world coordinates.

Returns
true if the object has a collision box.

Implements ActiveObject.

◆ getSelectionBox()

virtual bool TestAO::getSelectionBox ( aabb3f toset) const
inlinevirtual

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.

Implements ActiveObject.

◆ getType()

virtual ActiveObjectType TestAO::getType ( ) const
inlinevirtual

Implements ActiveObject.

References ACTIVEOBJECT_TYPE_TEST.


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