Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
MockActiveObject Class Reference

#include <mock_activeobject.h>

+ Inheritance diagram for MockActiveObject:
+ Collaboration diagram for MockActiveObject:

Public Member Functions

 MockActiveObject (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 (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)
 

Additional Inherited Members

- Public Types inherited from ActiveObject
typedef u16 object_t
 
- Protected Attributes inherited from ActiveObject
object_t m_id
 

Constructor & Destructor Documentation

◆ MockActiveObject()

MockActiveObject::MockActiveObject ( u16 id)
inline

Member Function Documentation

◆ collideWithObjects()

virtual bool MockActiveObject::collideWithObjects ( ) const
inlinevirtual

Implements ActiveObject.

◆ getCollisionBox()

virtual bool MockActiveObject::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 MockActiveObject::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 MockActiveObject::getType ( ) const
inlinevirtual

Implements ActiveObject.

References ACTIVEOBJECT_TYPE_TEST.


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