EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PlanetMgrBound Class Reference
Inheritance diagram for PlanetMgrBound:
Collaboration diagram for PlanetMgrBound:

Public Member Functions

 PyCallable_Make_Dispatcher (PlanetMgrBound) PlanetMgrBound(PyServiceMgr *mgr
 
Client PlanetSE m_dispatch (new Dispatcher(this))
 
Client PlanetSE m_planet (pPlanet)
 
virtual ~PlanetMgrBound ()
 
virtual void Release ()
 
 PyCallable_DECL_CALL (GetPlanetInfo)
 
 PyCallable_DECL_CALL (GetPlanetResourceInfo)
 
 PyCallable_DECL_CALL (GetCommandPinsForPlanet)
 
 PyCallable_DECL_CALL (GetFullNetworkForOwner)
 
 PyCallable_DECL_CALL (GetExtractorsForPlanet)
 
 PyCallable_DECL_CALL (GetProgramResultInfo)
 
 PyCallable_DECL_CALL (GetResourceData)
 
 PyCallable_DECL_CALL (UserAbandonPlanet)
 
 PyCallable_DECL_CALL (UserLaunchCommodities)
 
 PyCallable_DECL_CALL (UserTransferCommodities)
 
 PyCallable_DECL_CALL (UserUpdateNetwork)
 
 PyCallable_DECL_CALL (GMAddCommodity)
 
 PyCallable_DECL_CALL (GMConvertCommandCenter)
 
 PyCallable_DECL_CALL (GMForceInstallProgram)
 
 PyCallable_DECL_CALL (GMGetLocalDistributionReport)
 
 PyCallable_DECL_CALL (GMGetSynchedServerState)
 
 PyCallable_DECL_CALL (GMRunDepletionSim)
 
- Public Member Functions inherited from PyBoundObject
 PyBoundObject (PyServiceMgr *mgr)
 
virtual ~PyBoundObject ()
 
uint32 nodeID () const
 
uint32 bindID () const
 
std::string GetBindStr () const
 
const char * GetName () const
 
virtual PyResult Call (const std::string &method, PyCallArgs &args)
 
- Public Member Functions inherited from PyCallable
 PyCallable ()
 
virtual ~PyCallable ()
 

Public Attributes

ClientpClient
 
Client PlanetSEpPlanet: PyBoundObject(mgr)
 

Protected Attributes

Colonym_colony
 
PlanetDBm_db
 
PlanetSEm_planet
 
PlanetMgrm_planetMgr
 
Dispatcher *const m_dispatch
 
- Protected Attributes inherited from PyBoundObject
PyServiceMgr *const m_manager
 
std::string m_strBoundObjectName
 

Additional Inherited Members

- Protected Member Functions inherited from PyBoundObject
void _SetNodeBindID (uint32 nodeID, uint32 bindID)
 
- Protected Member Functions inherited from PyCallable
void _SetCallDispatcher (CallDispatcher *d)
 

Detailed Description

Definition at line 56 of file PlanetMgrBound.cpp.

Constructor & Destructor Documentation

virtual PlanetMgrBound::~PlanetMgrBound ( )
inlinevirtual

Definition at line 97 of file PlanetMgrBound.cpp.

References m_dispatch, m_planetMgr, and SafeDelete().

97  {
98  delete m_dispatch;
100  }
void SafeDelete(T *&p)
Deletes and nullifies a pointer.
Definition: SafeMem.h:83
PlanetMgr * m_planetMgr
Dispatcher *const m_dispatch

Here is the call graph for this function:

Member Function Documentation

Client PlanetSE PlanetMgrBound::m_dispatch ( new   Dispatcherthis)
Client PlanetSE PlanetMgrBound::m_planet ( pPlanet  )
inline

Definition at line 65 of file PlanetMgrBound.cpp.

References PyCallable::_SetCallDispatcher(), Colony::GetColony(), Colony::Init(), m_colony, m_dispatch, m_planetMgr, PyBoundObject::m_strBoundObjectName, and PyCallable_REG_CALL.

66  {
68 
69  m_colony = pPlanet->GetColony(pClient);
70 
71  m_colony->Init();
72 
74 
75  m_strBoundObjectName = "PlanetMgrBound";
76 
77  PyCallable_REG_CALL(PlanetMgrBound, GetPlanetInfo);
78  PyCallable_REG_CALL(PlanetMgrBound, GetPlanetResourceInfo);
79  PyCallable_REG_CALL(PlanetMgrBound, GetCommandPinsForPlanet);
80  PyCallable_REG_CALL(PlanetMgrBound, GetFullNetworkForOwner);
81  PyCallable_REG_CALL(PlanetMgrBound, GetExtractorsForPlanet);
82  PyCallable_REG_CALL(PlanetMgrBound, GetProgramResultInfo);
83  PyCallable_REG_CALL(PlanetMgrBound, GetResourceData);
84  PyCallable_REG_CALL(PlanetMgrBound, UserAbandonPlanet);
85  PyCallable_REG_CALL(PlanetMgrBound, UserLaunchCommodities);
86  PyCallable_REG_CALL(PlanetMgrBound, UserTransferCommodities);
87  PyCallable_REG_CALL(PlanetMgrBound, UserUpdateNetwork);
88  /* not supported yet */
89  PyCallable_REG_CALL(PlanetMgrBound, GMAddCommodity);
90  PyCallable_REG_CALL(PlanetMgrBound, GMConvertCommandCenter);
91  PyCallable_REG_CALL(PlanetMgrBound, GMForceInstallProgram);
92  PyCallable_REG_CALL(PlanetMgrBound, GMGetLocalDistributionReport);
93  PyCallable_REG_CALL(PlanetMgrBound, GMGetSynchedServerState);
94  PyCallable_REG_CALL(PlanetMgrBound, GMRunDepletionSim);
95  }
Client PlanetSE * pPlanet
std::string m_strBoundObjectName
Definition: PyBoundObject.h:54
void _SetCallDispatcher(CallDispatcher *d)
Definition: PyCallable.h:87
void Init()
Definition: Colony.cpp:142
PlanetMgr * m_planetMgr
#define PyCallable_REG_CALL(c, m)
Definition: PyServiceCD.h:78
Dispatcher *const m_dispatch

Here is the call graph for this function:

PlanetMgrBound::PyCallable_DECL_CALL ( GetPlanetInfo  )
PlanetMgrBound::PyCallable_DECL_CALL ( GetPlanetResourceInfo  )
PlanetMgrBound::PyCallable_DECL_CALL ( GetCommandPinsForPlanet  )
PlanetMgrBound::PyCallable_DECL_CALL ( GetFullNetworkForOwner  )
PlanetMgrBound::PyCallable_DECL_CALL ( GetExtractorsForPlanet  )
PlanetMgrBound::PyCallable_DECL_CALL ( GetProgramResultInfo  )
PlanetMgrBound::PyCallable_DECL_CALL ( GetResourceData  )
PlanetMgrBound::PyCallable_DECL_CALL ( UserAbandonPlanet  )
PlanetMgrBound::PyCallable_DECL_CALL ( UserLaunchCommodities  )
PlanetMgrBound::PyCallable_DECL_CALL ( UserTransferCommodities  )
PlanetMgrBound::PyCallable_DECL_CALL ( UserUpdateNetwork  )
PlanetMgrBound::PyCallable_DECL_CALL ( GMAddCommodity  )
PlanetMgrBound::PyCallable_DECL_CALL ( GMConvertCommandCenter  )
PlanetMgrBound::PyCallable_DECL_CALL ( GMForceInstallProgram  )
PlanetMgrBound::PyCallable_DECL_CALL ( GMGetLocalDistributionReport  )
PlanetMgrBound::PyCallable_DECL_CALL ( GMGetSynchedServerState  )
PlanetMgrBound::PyCallable_DECL_CALL ( GMRunDepletionSim  )
PlanetMgrBound::PyCallable_Make_Dispatcher ( PlanetMgrBound  )
virtual void PlanetMgrBound::Release ( )
inlinevirtual

Implements PyBoundObject.

Definition at line 102 of file PlanetMgrBound.cpp.

102  {
103  delete this;
104  }

Member Data Documentation

Colony* PlanetMgrBound::m_colony
protected

Definition at line 134 of file PlanetMgrBound.cpp.

Referenced by m_planet().

PlanetDB* PlanetMgrBound::m_db
protected

Definition at line 135 of file PlanetMgrBound.cpp.

Dispatcher* const PlanetMgrBound::m_dispatch
protected

Definition at line 138 of file PlanetMgrBound.cpp.

Referenced by m_planet(), and ~PlanetMgrBound().

PlanetSE* PlanetMgrBound::m_planet
protected

Definition at line 136 of file PlanetMgrBound.cpp.

PlanetMgr* PlanetMgrBound::m_planetMgr
protected

Definition at line 137 of file PlanetMgrBound.cpp.

Referenced by m_planet(), and ~PlanetMgrBound().

Client* PlanetMgrBound::pClient

Definition at line 62 of file PlanetMgrBound.cpp.

Client PlanetSE* PlanetMgrBound::pPlanet

Definition at line 62 of file PlanetMgrBound.cpp.


The documentation for this class was generated from the following file: