|
| | MockServerActiveObject (ServerEnvironment *env=nullptr, v3f p=v3f()) |
| |
| virtual ActiveObjectType | getType () const |
| |
| virtual bool | getCollisionBox (aabb3f *toset) const |
| |
| virtual bool | getSelectionBox (aabb3f *toset) const |
| |
| virtual bool | collideWithObjects () const |
| |
| | ServerActiveObject (ServerEnvironment *env, v3f pos) |
| |
| virtual | ~ServerActiveObject ()=default |
| |
| virtual ActiveObjectType | getSendType () const |
| |
| virtual void | addedToEnvironment (u32 dtime_s) |
| |
| virtual void | removingFromEnvironment () |
| |
| void | markForRemoval () |
| |
| void | markForDeactivation () |
| |
| v3f | getBasePosition () const |
| |
| void | setBasePosition (v3f pos) |
| |
| ServerEnvironment * | getEnv () |
| |
| virtual void | setPos (const v3f &pos) |
| |
| virtual void | addPos (const v3f &added_pos) |
| |
| virtual void | moveTo (v3f pos, bool continuous) |
| |
| virtual float | getMinimumSavedMovement () |
| |
| virtual std::string | getDescription () |
| |
| virtual void | step (float dtime, bool send_recommended) |
| |
| virtual std::string | getClientInitializationData (u16 protocol_version) |
| |
| virtual void | getStaticData (std::string *result) const |
| |
| virtual bool | isStaticAllowed () const |
| |
| virtual bool | shouldUnload () const |
| |
| virtual u32 | punch (v3f dir, const ToolCapabilities *toolcap=nullptr, ServerActiveObject *puncher=nullptr, float time_from_last_punch=1000000.0f, u16 initial_wear=0) |
| |
| virtual void | rightClick (ServerActiveObject *clicker) |
| |
| virtual void | setHP (s32 hp, const PlayerHPChangeReason &reason) |
| |
| virtual u16 | getHP () const |
| |
| virtual void | setArmorGroups (const ItemGroupList &armor_groups) |
| |
| virtual const ItemGroupList & | getArmorGroups () const |
| |
| virtual void | setAnimation (v2f frames, float frame_speed, float frame_blend, bool frame_loop) |
| |
| virtual void | getAnimation (v2f *frames, float *frame_speed, float *frame_blend, bool *frame_loop) |
| |
| virtual void | setAnimationSpeed (float frame_speed) |
| |
| virtual void | setBoneOverride (const std::string &bone, const BoneOverride &props) |
| |
| virtual BoneOverride | getBoneOverride (const std::string &bone) |
| |
| virtual const BoneOverrideMap & | getBoneOverrides () const |
| |
| virtual const std::unordered_set< object_t > & | getAttachmentChildIds () const |
| |
| virtual ServerActiveObject * | getParent () const |
| |
| virtual ObjectProperties * | accessObjectProperties () |
| |
| virtual void | notifyObjectPropertiesModified () |
| |
| virtual Inventory * | getInventory () const |
| |
| virtual InventoryLocation | getInventoryLocation () const |
| |
| virtual void | setInventoryModified () |
| |
| virtual std::string | getWieldList () const |
| |
| virtual u16 | getWieldIndex () const |
| |
| virtual ItemStack | getWieldedItem (ItemStack *selected, ItemStack *hand=nullptr) const |
| |
| virtual bool | setWieldedItem (const ItemStack &item) |
| |
| void | attachParticleSpawner (u32 id) |
| |
| void | detachParticleSpawner (u32 id) |
| |
| std::string | generateUpdateInfantCommand (u16 infant_id, u16 protocol_version) |
| |
| void | dumpAOMessagesToQueue (std::queue< ActiveObjectMessage > &queue) |
| |
| bool | isGone () const |
| |
| bool | isPendingRemoval () const |
| |
| void | invalidateEffectiveObservers () |
| | Invalidate final observer cache.
|
| |
| const Observers & | getEffectiveObservers () |
| | Cache m_effective_observers with the names of all observers, also indirect observers (object attachment chain).
|
| |
| const Observers & | recalculateEffectiveObservers () |
| | Force a recalculation of final observers (including all parents).
|
| |
| bool | isEffectivelyObservedBy (const std::string &player_name) |
| | Whether the object is sent to player_name
|
| |
| | 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) |
| |