8 #include <Atlas/Objects/Operation.h> 11 using Atlas::Message::MapType;
13 namespace Atlas {
namespace Objects {
namespace Operation {
15 Allocator<SightData> SightData::allocator;
33 return copyInstance<SightData>(*this);
38 if(SIGHT_NO == classNo)
return true;
42 void SightData::fillDefaultObjectInstance(
SightData& data, std::map<std::string, uint32_t>& attr_data)
71 return copyInstance<AppearanceData>(*this);
76 if(APPEARANCE_NO == classNo)
return true;
80 void AppearanceData::fillDefaultObjectInstance(
AppearanceData& data, std::map<std::string, uint32_t>& attr_data)
109 return copyInstance<DisappearanceData>(*this);
114 if(DISAPPEARANCE_NO == classNo)
return true;
118 void DisappearanceData::fillDefaultObjectInstance(
DisappearanceData& data, std::map<std::string, uint32_t>& attr_data)
135 allocator.free(
this);
147 return copyInstance<SoundData>(*this);
152 if(SOUND_NO == classNo)
return true;
156 void SoundData::fillDefaultObjectInstance(
SoundData& data, std::map<std::string, uint32_t>& attr_data)
173 allocator.free(
this);
185 return copyInstance<SmellData>(*this);
190 if(SMELL_NO == classNo)
return true;
194 void SmellData::fillDefaultObjectInstance(
SmellData& data, std::map<std::string, uint32_t>& attr_data)
211 allocator.free(
this);
223 return copyInstance<FeelData>(*this);
228 if(FEEL_NO == classNo)
return true;
232 void FeelData::fillDefaultObjectInstance(
FeelData& data, std::map<std::string, uint32_t>& attr_data)
std::int64_t attr_serialno
Serial number.
SmellData * copy() const override
Copy this object.
Character sees something appearing: it literally appears or has it come in visible range...
std::string attr_parent
The object this inherits attributes from.
Character smells something.
Character hears something.
std::string attr_objtype
What kind of object this is.
DisappearanceData * 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.
SoundData * copy() const override
Copy this object.
Character sees something.
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?
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?
double attr_seconds
Time in seconds.
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.
SightData * copy() const override
Copy this object.
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?
bool instanceOf(int classNo) const override
Is this instance of some class?
double attr_future_seconds
Time in seconds to add current time.
FeelData * 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?
void reset() override
Resets the object as it's returned to the pool.
void free() override
Free an instance of this class, returning it to the memory pool.
AppearanceData * copy() const override
Copy this object.
Character feels something (with fingers usually).
void free() override
Free an instance of this class, returning it to the memory pool.
double attr_stamp
Last time this object was modified.
Character sees something disappearing: it literally disappears or has it gone too far to be visible...
std::int64_t attr_refno
Reference to serial number.
void free() override
Free an instance of this class, returning it to the memory pool.