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)
Character sees something appearing: it literally appears or has it come in visible range.
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?
AppearanceData * copy() const override
Copy this object.
void reset() override
Resets the object as it's returned to the pool.
Character sees something disappearing: it literally disappears or has it gone too far to be visible.
void reset() override
Resets the object as it's returned to the pool.
DisappearanceData * 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.
Character feels something (with fingers usually).
void free() override
Free an instance of this class, returning it to the memory pool.
FeelData * copy() const override
Copy this object.
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?
void reset() override
Resets the object as it's returned to the pool.
double attr_future_seconds
Time in seconds to add current time.
double attr_seconds
Time in seconds.
std::int64_t attr_refno
Reference to serial number.
std::int64_t attr_serialno
Serial number.
Character sees something.
SightData * copy() const override
Copy this object.
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.
Character smells something.
SmellData * copy() const override
Copy this object.
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.
Character hears 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?
SoundData * copy() const override
Copy this object.
void free() override
Free an instance of this class, returning it to the memory pool.
std::string attr_objtype
What kind of object this is.
std::string attr_parent
The object this inherits attributes from.
double attr_stamp
Last time this object was modified.