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<ImaginaryData> ImaginaryData::allocator;
33 return copyInstance<ImaginaryData>(*
this);
38 if(IMAGINARY_NO == classNo)
return true;
42 void ImaginaryData::fillDefaultObjectInstance(
ImaginaryData& data, std::map<std::string, uint32_t>& attr_data)
71 return copyInstance<UseData>(*
this);
76 if(USE_NO == classNo)
return true;
80 void UseData::fillDefaultObjectInstance(
UseData& data, std::map<std::string, uint32_t>& attr_data)
109 return copyInstance<ActivityData>(*
this);
114 if(ACTIVITY_NO == classNo)
return true;
118 void ActivityData::fillDefaultObjectInstance(
ActivityData& data, std::map<std::string, uint32_t>& attr_data)
135 allocator.free(
this);
147 return copyInstance<InfoData>(*
this);
152 if(INFO_NO == classNo)
return true;
156 void InfoData::fillDefaultObjectInstance(
InfoData& data, std::map<std::string, uint32_t>& attr_data)
173 allocator.free(
this);
185 return copyInstance<PerceptionData>(*
this);
190 if(PERCEPTION_NO == classNo)
return true;
194 void PerceptionData::fillDefaultObjectInstance(
PerceptionData& data, std::map<std::string, uint32_t>& attr_data)
211 allocator.free(
this);
223 return copyInstance<UnseenData>(*
this);
228 if(UNSEEN_NO == classNo)
return true;
232 void UnseenData::fillDefaultObjectInstance(
UnseenData& data, std::map<std::string, uint32_t>& attr_data)
UseData * copy() const override
Copy this object.
void reset() override
Resets the object as it's returned to the pool.
Use a currently wielded tool..
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.
bool instanceOf(int classNo) const override
Is this instance of some class?
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.
std::int64_t attr_serialno
Serial number.
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.
UnseenData * copy() const override
Copy this object.
bool instanceOf(int classNo) const override
Is this instance of some class?
PerceptionData * copy() const override
Copy this object.
std::string attr_parent
The object this inherits attributes from.
ImaginaryData * copy() const override
Copy this object.
This is base operator for operations that tell you info about objects or events..
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?
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.
Character perceives something..
void reset() override
Resets the object as it's returned to the pool.
std::int64_t attr_refno
Reference to serial number.
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.
double attr_future_seconds
Time in seconds to add current time.
Activities performed by entities. This is mainly meant for actions that should be communicated to oth...
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?
InfoData * copy() const override
Copy this object.
Character failed to interact with another entity because it does not exist..
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?
When something is not yet implemented in server, then character can pretend to do something ;-).
void reset() override
Resets the object as it's returned to the pool.
std::string attr_objtype
What kind of object this is.
void free() override
Free an instance of this class, returning it to the memory pool.
ActivityData * copy() const override
Copy this object.