26 #ifndef __STATION__H__INCL__
27 #define __STATION__H__INCL__
57 _log(ITEM__ERROR,
"Trying to load %s as StationType.",
sDataMgr.GetGroupName(data.
groupID));
124 virtual bool _Load();
141 if (!
sItemFactory.db()->GetCelestialObject(stationID, cData))
CargoContainerRef GetContainerFromInventory(uint32 contID)
#define sConfig
A macro for easier access to the singleton.
bool IsOfficeLoaded(uint32 officeID)
RefPtr< StationItem > StationItemRef
void AddGuest(Client *pClient)
#define _log(type, fmt,...)
std::map< uint32, bool > m_officeLoaded
static _Ty * _LoadType(uint16 stationTypeID, const Inv::TypeData &data)
void LoadStationOffice(uint32 corpID)
static StationItemRef Load(uint32 stationID)
StationSE(StationItemRef station, PyServiceMgr &services, SystemManager *system)
void GetRefineData(uint32 &stationCorpID, float &staEfficiency, float &tax)
std::map< uint32, OfficeData > m_officeMap
StationType m_stationType
static RefPtr< _Ty > _LoadItem(uint32 stationID, const ItemType &type, const ItemData &data)
int8 GetAvalibleOfficeCount()
void GetGuestList(std::vector< Client * > &cVec)
const ItemType & type() const
bool HasShip(Client *pClient)
static StationType * Load(uint16 stationTypeID)
void RemoveLoadedOffice(uint32 officeID)
StationType * GetStationType()
Generic class for buffers.
void ImpoundOffice(uint32 officeID)
std::map< uint32, Client * > m_guestList
virtual PyDict * MakeSlimItem()
#define maxRentableOffices
ShipItemRef GetShipFromInventory(uint32 shipID)
void RemoveGuest(Client *pClient)
static uint32 CreateItemID(ItemData &data)
virtual void EncodeDestiny(Buffer &into)
void AddLoadedOffice(uint32 officeID)
StationType(uint16 _id, const Inv::TypeData &_data)
virtual StationSE * GetStationSE()
void RentOffice(OfficeData &odata)
int32 GetOfficeRentalFee()
void RecoverOffice(uint32 officeID)
uint32 GetOfficeID(uint32 corpID)
StationItem(uint32 stationID, const StationType &type, const ItemData &data, const CelestialObjectData &cData)
virtual bool IsStationSE()