39 celestialIndex(_celestialIndex),
40 orbitIndex(_orbitIndex)
51 m_celestialIndex( 0 ),
54 _log(ITEM__TRACE,
"Created Default CelestialObject %p for item %s (%u).",
this,
name(),
itemID());
59 m_radius(_cData.radius),
60 m_security(_cData.security),
61 m_celestialIndex(_cData.celestialIndex),
62 m_orbitIndex(_cData.orbitIndex)
64 _log(ITEM__TRACE,
"Created CelestialObject %p for %s (%u) with radius of %.1f.",
this,
name(),
itemID(),
m_radius);
69 return InventoryItem::Load<CelestialObject>(celestialID );
74 if (celestialID == 0 )
98 _log(SE__DEBUG,
"Created CSE for item %s (%u) with radius of %.1f.", self->name(),
self->itemID(),
m_radius);
103 double shield = 1.0, armor = 1.0, structure = 1.0, recharge = 1000000;
114 into.shield = shield;
115 into.recharge = recharge;
116 into.structure = structure;
140 mass.
mass = 10000000000;
159 slim->SetItemString(
"dungeonDataID",
new PyInt(0));
191 mass.
mass = 10000000000;
void Append(const T &value)
Appends a single value to buffer.
virtual void EncodeDestiny(Buffer &into)
AnomalySE(CelestialObjectRef self, PyServiceMgr &services, SystemManager *system)
static CelestialObjectRef Load(uint32 celestialID)
#define _log(type, fmt,...)
static uint32 CreateItemID(ItemData &data)
bool HasAttribute(const uint16 attrID) const
CelestialObjectData(double _radius=0.0, double _security=0.0, uint8 _celestialIndex=0, uint8 _orbitIndex=0)
Python floating point number.
static CelestialObjectRef Spawn(ItemData &data)
RefPtr< CelestialObject > CelestialObjectRef
CelestialObject(uint32 _celestialID, const ItemType &_type, const ItemData &_data)
Generic class for buffers.
PyTuple * MakeDamageState()
const char * GetName() const
virtual PyDict * MakeSlimItem()
WormholeSE(CelestialObjectRef self, PyServiceMgr &services, SystemManager *system)
int main(int argc, char *argv[])
CelestialSE(InventoryItemRef self, PyServiceMgr &services, SystemManager *system)
static uint32 CreateItemID(ItemData &data)
EvilNumber GetAttribute(const uint16 attrID) const
virtual void EncodeDestiny(Buffer &into)
virtual PyDict * MakeSlimItem()
Reference-counting-based smart pointer.