#include <clientobject.h>
|
| ClientActiveObject (u16 id, Client *client, ClientEnvironment *env) |
|
virtual | ~ClientActiveObject () |
|
virtual void | addToScene (ITextureSource *tsrc, scene::ISceneManager *smgr)=0 |
|
virtual void | removeFromScene (bool permanent) |
|
virtual void | updateLight (u32 day_night_ratio) |
|
virtual bool | getCollisionBox (aabb3f *toset) const |
|
virtual bool | getSelectionBox (aabb3f *toset) const |
|
virtual bool | collideWithObjects () const |
|
virtual const v3f | getPosition () const |
|
virtual const v3f | getVelocity () const |
|
virtual scene::ISceneNode * | getSceneNode () const |
|
virtual scene::IAnimatedMeshSceneNode * | getAnimatedMeshSceneNode () const |
|
virtual bool | isLocalPlayer () const |
|
virtual ClientActiveObject * | getParent () 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) |
|
| ActiveObject (object_t id) |
|
object_t | getId () const |
|
void | setId (object_t id) |
|
virtual ActiveObjectType | getType () const =0 |
|
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) |
|
◆ Factory
◆ ClientActiveObject()
◆ ~ClientActiveObject()
ClientActiveObject::~ClientActiveObject |
( |
| ) |
|
|
virtual |
◆ addToScene()
virtual void ClientActiveObject::addToScene |
( |
ITextureSource * | tsrc, |
|
|
scene::ISceneManager * | smgr ) |
|
pure virtual |
◆ collideWithObjects()
virtual bool ClientActiveObject::collideWithObjects |
( |
| ) |
const |
|
inlinevirtual |
◆ create()
◆ debugInfoText()
virtual std::string ClientActiveObject::debugInfoText |
( |
| ) |
|
|
inlinevirtual |
◆ directReportPunch()
virtual bool ClientActiveObject::directReportPunch |
( |
v3f | dir, |
|
|
const ItemStack * | punchitem = nullptr, |
|
|
float | time_from_last_punch = 1000000 ) |
|
inlinevirtual |
◆ doShowSelectionBox()
virtual bool ClientActiveObject::doShowSelectionBox |
( |
| ) |
|
|
inlinevirtual |
◆ getAnimatedMeshSceneNode()
virtual scene::IAnimatedMeshSceneNode * ClientActiveObject::getAnimatedMeshSceneNode |
( |
| ) |
const |
|
inlinevirtual |
◆ getAttachmentChildIds()
virtual const std::unordered_set< object_t > & ClientActiveObject::getAttachmentChildIds |
( |
| ) |
const |
|
inlinevirtual |
◆ getCollisionBox()
virtual bool ClientActiveObject::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.
Reimplemented in GenericCAO, and TestCAO.
◆ getParent()
◆ getPosition()
virtual const v3f ClientActiveObject::getPosition |
( |
| ) |
const |
|
inlinevirtual |
◆ getSceneNode()
virtual scene::ISceneNode * ClientActiveObject::getSceneNode |
( |
| ) |
const |
|
inlinevirtual |
◆ getSelectionBox()
virtual bool ClientActiveObject::getSelectionBox |
( |
aabb3f * | toset | ) |
const |
|
inlinevirtual |
◆ getVelocity()
virtual const v3f ClientActiveObject::getVelocity |
( |
| ) |
const |
|
inlinevirtual |
◆ infoText()
virtual std::string ClientActiveObject::infoText |
( |
| ) |
|
|
inlinevirtual |
◆ initialize()
virtual void ClientActiveObject::initialize |
( |
const std::string & | data | ) |
|
|
inlinevirtual |
◆ isLocalPlayer()
virtual bool ClientActiveObject::isLocalPlayer |
( |
| ) |
const |
|
inlinevirtual |
◆ processMessage()
virtual void ClientActiveObject::processMessage |
( |
const std::string & | data | ) |
|
|
inlinevirtual |
◆ registerType()
void ClientActiveObject::registerType |
( |
u16 | type, |
|
|
Factory | f ) |
|
staticprotected |
◆ removeFromScene()
virtual void ClientActiveObject::removeFromScene |
( |
bool | permanent | ) |
|
|
inlinevirtual |
◆ step()
◆ updateAttachments()
virtual void ClientActiveObject::updateAttachments |
( |
| ) |
|
|
inlinevirtual |
◆ updateLight()
virtual void ClientActiveObject::updateLight |
( |
u32 | day_night_ratio | ) |
|
|
inlinevirtual |
◆ m_client
Client* ClientActiveObject::m_client |
|
protected |
◆ m_env
Referenced by GenericCAO::clearChildAttachments(), GenericCAO::directReportPunch(), GenericCAO::getParent(), GenericCAO::getPosition(), GenericCAO::processInitData(), GenericCAO::processMessage(), GenericCAO::removeFromScene(), GenericCAO::setAttachment(), GenericCAO::setChildrenVisible(), GenericCAO::step(), GenericCAO::updateAttachments(), GenericCAO::updateLight(), and GenericCAO::updateNodePos().
◆ m_types
The documentation for this class was generated from the following files: