ServerActiveObject(ServerEnvironment *env, v3f pos);
virtual ~ServerActiveObject();
- virtual u8 getSendType() const
+ virtual ActiveObjectType getSendType() const
{ return getType(); }
// Called after id has been set and has been inserted in environment
{ return true; }
// Create a certain type of ServerActiveObject
- static ServerActiveObject* create(u8 type,
+ static ServerActiveObject* create(ActiveObjectType type,
ServerEnvironment *env, u16 id, v3f pos,
const std::string &data);
virtual void setArmorGroups(const ItemGroupList &armor_groups)
{}
+ virtual ItemGroupList getArmorGroups()
+ { return ItemGroupList(); }
virtual void setPhysicsOverride(float physics_override_speed, float physics_override_jump, float physics_override_gravity)
{}
virtual void setAnimation(v2f frames, float frame_speed, float frame_blend)
{}
- virtual void setBonePosition(std::string bone, v3f position, v3f rotation)
+ virtual void getAnimation(v2f *frames, float *frame_speed, float *frame_blend)
{}
- virtual void setAttachment(int parent_id, std::string bone, v3f position, v3f rotation)
+ virtual void setBonePosition(const std::string &bone, v3f position, v3f rotation)
+ {}
+ virtual void getBonePosition(const std::string &bone, v3f *position, v3f *lotation)
+ {}
+ virtual void setAttachment(int parent_id, const std::string &bone, v3f position, v3f rotation)
+ {}
+ virtual void getAttachment(int *parent_id, std::string *bone, v3f *position, v3f *rotation)
{}
virtual ObjectProperties* accessObjectProperties()
{ return NULL; }
/*
Queue of messages to be sent to the client
*/
- Queue<ActiveObjectMessage> m_messages_out;
+ std::queue<ActiveObjectMessage> m_messages_out;
protected:
// Used for creating objects based on type