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<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)
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 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.
SoundData * copy() const override
Copy this object.
std::int64_t attr_serialno
Serial number.
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 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.
DisappearanceData * copy() const override
Copy this object.
Character sees something.
std::string attr_parent
The object this inherits attributes from.
void reset() override
Resets the object as it's returned to the pool.
Character smells something.
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.
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.
void reset() override
Resets the object as it's returned to the pool.
std::int64_t attr_refno
Reference to serial number.
Character sees something appearing: it literally appears or has it come in visible range.
FeelData * copy() const override
Copy this object.
void free() override
Free an instance of this class, returning it to the memory pool.
Character hears something.
double attr_future_seconds
Time in seconds to add current time.
bool instanceOf(int classNo) const override
Is this instance of some class?
Character feels something (with fingers usually).
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 free() override
Free an instance of this class, returning it to the memory pool.
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.
SightData * copy() const override
Copy this object.
SmellData * copy() const override
Copy this object.