Atlas
0.7.0
Networking protocol for the Worldforge system.
|
8 #include <Atlas/Objects/Operation.h>
11 using Atlas::Message::MapType;
13 namespace Atlas {
namespace Objects {
namespace Operation {
15 Allocator<MoveData> MoveData::allocator;
33 return copyInstance<MoveData>(*
this);
38 if(MOVE_NO == classNo)
return true;
42 void MoveData::fillDefaultObjectInstance(
MoveData& data, std::map<std::string, uint32_t>& attr_data)
71 return copyInstance<WieldData>(*
this);
76 if(WIELD_NO == classNo)
return true;
80 void WieldData::fillDefaultObjectInstance(
WieldData& data, std::map<std::string, uint32_t>& attr_data)
109 return copyInstance<GetData>(*
this);
114 if(GET_NO == classNo)
return true;
118 void GetData::fillDefaultObjectInstance(
GetData& data, std::map<std::string, uint32_t>& attr_data)
135 allocator.free(
this);
147 return copyInstance<PerceiveData>(*
this);
152 if(PERCEIVE_NO == classNo)
return true;
156 void PerceiveData::fillDefaultObjectInstance(
PerceiveData& data, std::map<std::string, uint32_t>& attr_data)
173 allocator.free(
this);
185 return copyInstance<LookData>(*
this);
190 if(LOOK_NO == classNo)
return true;
194 void LookData::fillDefaultObjectInstance(
LookData& data, std::map<std::string, uint32_t>& attr_data)
211 allocator.free(
this);
223 return copyInstance<ListenData>(*
this);
228 if(LISTEN_NO == classNo)
return true;
232 void ListenData::fillDefaultObjectInstance(
ListenData& data, std::map<std::string, uint32_t>& attr_data)
bool instanceOf(int classNo) const override
Is this instance of some class?
void free() override
Free an instance of this class, returning it to the memory pool.
bool instanceOf(int classNo) const override
Is this instance of some class?
void reset() override
Resets the object as it's returned to the pool.
double attr_stamp
Last time this object was modified.
void free() override
Free an instance of this class, returning it to the memory pool.
double attr_seconds
Time in seconds.
Generic operation for getting info about things..
std::int64_t attr_serialno
Serial number.
void reset() override
Resets the object as it's returned to the pool.
WieldData * copy() const override
Copy this object.
bool instanceOf(int classNo) const override
Is this instance of some class?
std::string attr_parent
The object this inherits attributes from.
void free() override
Free an instance of this class, returning it to the memory pool.
void reset() override
Resets the object as it's returned to the pool.
Generic base operation for perceiving things by eyes, ears, etc....
MoveData * copy() const override
Copy this object.
Attach a tool to the character entity at a pre-defined location so that the character can use it....
void reset() override
Resets the object as it's returned to the pool.
std::int64_t attr_refno
Reference to serial number.
double attr_future_seconds
Time in seconds to add current time.
bool instanceOf(int classNo) const override
Is this instance of some class?
bool instanceOf(int classNo) const override
Is this instance of some class?
void free() override
Free an instance of this class, returning it to the memory pool.
ListenData * copy() const override
Copy this object.
void reset() override
Resets the object as it's returned to the pool.
bool instanceOf(int classNo) const override
Is this instance of some class?
std::string attr_objtype
What kind of object this is.
GetData * copy() const override
Copy this object.
void reset() override
Resets the object as it's returned to the pool.
void reset() override
Resets the object as it's returned to the pool.
void reset() override
Resets the object as it's returned to the pool.
LookData * copy() const override
Copy this object.
bool instanceOf(int classNo) const override
Is this instance of some class?
void free() override
Free an instance of this class, returning it to the memory pool.
bool instanceOf(int classNo) const override
Is this instance of some class?
PerceiveData * copy() const override
Copy this object.
void free() override
Free an instance of this class, returning it to the memory pool.