49 return InventoryItem::Load<ProbeItem>(
itemID );
66 if (iRef.
get() !=
nullptr) {
69 _log(ITEM__ERROR,
"ProbeItem::Delete() - Cant find location %u containing %s.",
locationID(),
name());
72 _log(ITEM__ERROR,
"ProbeItem::Delete() - Location %u containing %s is invalid.",
locationID(),
name());
117 m_client(shipRef->GetPilot()),
119 m_moduleRef(moduleRef),
174 switch (shipRef->
typeID()) {
214 _log(SCAN__INFO,
"Created ProbeSE for %u. timeNow: %.0f, expiry: %li, scan Str: %.4f, deviation: %.5f, ship: %s", \
260 _log(SCAN__INFO,
"ProbeSE::Process() return timer hit for probeID %u",
m_self->
itemID());
272 _log(SCAN__INFO,
"ProbeSE::Process() state timer hit for probeID %u state: %s", \
320 _log(SCAN__TRACE,
"ProbeSE::UpdateProbe() id:%u, state: %s, scanRange: %.2f, step: %u, dist:%.2f, time: %.2f", \
344 _log(SCAN__TRACE,
"ProbeSE::RecoverProbe() Probe %u returning. Return time is %.2fs", \
350 ScanResultPos ssr_oed;
357 oed_tuple->
SetItem(1, ssr_oed.Encode());
374 _log(SCAN__TRACE,
"ProbeSE::SendStateChange() Probe %u changing state to %s.",
GetID(),
GetStateName(state));
411 ScanResultPos posFrom;
421 from->
SetItem(1, posFrom.Encode());
424 to->
SetItem(1, posTo.Encode());
499 slim->SetItemString(
"numLaunchers",
PyStatic.NewOne());
507 into.recharge = 1000000;
532 updates->
SetItem(1, probeData);
void SendNotification(const PyAddress &dest, EVENotificationStream ¬i, bool seq=true)
#define _log(type, fmt,...)
DestinyManager * m_destiny
void UpdateProbe(ProbeData &data)
float GetSecurityRating() const
bool HasAttribute(const uint16 attrID) const
ModuleManager * GetModuleManager()
const GPoint & position() const
Python floating point number.
int32 GetCharacterID() const
int32 GetWarFactionID() const
RefPtr< ProbeItem > ProbeItemRef
int32 GetCorporationID() const
float GetRangeModifier(float dist)
void RemoveProbe(ProbeSE *pProbe)
void RemoveItem(InventoryItemRef iRef)
void SetPosition(const GPoint &pos)
CharacterRef GetChar() const
int32 GetAllianceID() const
const GPoint & GetPosition() const
virtual bool ProcessTic()
PyTuple * MakeDamageState()
void SetItem(size_t index, PyRep *object)
Stores Python object.
static const GPoint NULL_ORIGIN(0, 0, 0)
void RemoveEntity(SystemEntity *pSE)
uint32 locationID() const
virtual PyDict * MakeSlimItem()
bool Check(bool reset=true)
ProbeSE(ProbeItemRef self, PyServiceMgr &services, SystemManager *system)
void SendStateChange(uint8 state)
const char * GetName() const
static ProbeItemRef Spawn(ItemData &data)
void SendSingleDestinyUpdate(PyTuple **up, bool self_only=false) const
Python token (eg. class name).
RefPtr< InventoryItem > InventoryItemRef
bool HasSkillTrainedToLevel(uint16 skillTypeID, uint8 skillLevel) const
InventoryItemRef m_moduleRef
int64 max(int64 x, int64 y=0)
void Remove(SystemEntity *pSE)
static uint32 CreateItemID(ItemData &data)
static bool DeleteItem(uint32 itemID)
EvilNumber GetAttribute(const uint16 attrID) const
typeID Spawn an NPC with the specified type text Search for items matching the specified query() type()() itemID() copy() materialLevel()() itemID(attributeID)-Retrieves attribute value." ) COMMAND( setattr
#define IsFaction(itemID)
const char * GetStateName(uint8 state)
int8 GetSkillLevel(uint16 skillTypeID, bool zeroForNotInjected=true) const
void RecoverProbe(PyList *list)
#define IsAlliance(itemID)
void SendWarpStart(float travelTime)
GaExpInl GaFloat distance(const GaVec3 &oth) const
static uint32 CreateItemID(ItemData &data)
Inventory * GetMyInventory()
entityID heal the character with the entityID note giving you detailed ship status information gives a list of all dynamic entities and players and their destinyState in this bubble shows some current destiny variables save all kick all and halt server immediate command list all items in current location s gives list of cargo contents and volumes in all holds list current session values show current ship DNA show current objects in their destiny state
void MergeTypesInCargo(ShipItem *pShip, EVEItemFlags flag=flagNone)
static ProbeItemRef Load(uint32 itemID)
void SetItemString(const char *key, PyRep *value)
SetItemString adds or sets a database entry.
static const int64 ONE_AU_IN_METERS
#define IsValidLocation(itemID)
ProbeItem(uint32 itemID, const ItemType &_type, const ItemData &_data)
Reference-counting-based smart pointer.
void Start(uint32 setTimerTime=0, bool changeResetTimer=true)
static const float BUBBLE_RADIUS_METERS