EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ShipService Class Reference

#include "ShipService.h"

Inheritance diagram for ShipService:
Collaboration diagram for ShipService:

Public Member Functions

 ShipService (PyServiceMgr *mgr)
 
virtual ~ShipService ()
 
- Public Member Functions inherited from PyService
 PyService (PyServiceMgr *mgr, const char *serviceName)
 
virtual ~PyService ()
 
virtual PyResult Call (const std::string &method, PyCallArgs &args)
 
const char * GetName () const
 
- Public Member Functions inherited from PyCallable
 PyCallable ()
 
virtual ~PyCallable ()
 

Protected Member Functions

virtual PyBoundObjectCreateBoundObject (Client *pClient, const PyRep *bind_args)
 
- Protected Member Functions inherited from PyService
PyObject_BuildCachedReturn (PySubStream **result, const char *sessionInfo, CacheCheckTime check)
 
virtual PyResult Handle_MachoResolveObject (PyCallArgs &call)
 
virtual PyResult Handle_MachoBindObject (PyCallArgs &call)
 
- Protected Member Functions inherited from PyCallable
void _SetCallDispatcher (CallDispatcher *d)
 

Protected Attributes

Dispatcher *const m_dispatch
 
ShipDB m_db
 
- Protected Attributes inherited from PyService
PyServiceMgr *const m_manager
 

Additional Inherited Members

- Protected Types inherited from PyService
enum  CacheCheckTime {
  check_Always = 0, check_Never, check_in_year, check_in_6_months,
  check_in_3_months, check_in_1_month, check_in_1_week, check_in_1_day,
  check_in_12_hours, check_in_6_hours, check_in_3_hours, check_in_2_hours,
  check_in_1_hour, check_in_30_minutes, check_in_15_minutes, check_in_5_minutes,
  check_in_1_minute, check_in_30_seconds, check_in_15_seconds, check_in_5_seconds,
  check_in_1_second, _checkCount
}
 
- Static Protected Attributes inherited from PyService
static const char *const s_checkTimeStrings [_checkCount]
 

Detailed Description

Definition at line 34 of file ShipService.h.

Constructor & Destructor Documentation

ShipService::ShipService ( PyServiceMgr mgr)
ShipService::~ShipService ( )
virtual

Definition at line 126 of file ShipService.cpp.

References m_dispatch.

126  {
127  delete m_dispatch;
128 }
Dispatcher *const m_dispatch
Definition: ShipService.h:42

Member Function Documentation

PyBoundObject * ShipService::CreateBoundObject ( Client pClient,
const PyRep bind_args 
)
protectedvirtual
Todo:
do we need more data here?

Reimplemented from PyService.

Definition at line 131 of file ShipService.cpp.

References _log, PyRep::Dump(), RefPtr< X >::get(), Client::GetShip(), and PyService::m_manager.

131  {
132  /*
133  * 23:08:44 [ClientMsg] ShipService bind request
134  * 23:08:44 [ClientMsg] Tuple: 2 elements
135  * 23:08:44 [ClientMsg] [ 0] Integer: 60014137 <<-- locationID
136  * 23:08:44 [ClientMsg] [ 1] Integer: 15 <<-- location's groupID
137  */
138  _log(CLIENT__MESSAGE, "ShipService bind request");
139  bind_args->Dump(CLIENT__MESSAGE, " ");
140  return new ShipBound(m_manager, m_db, pClient->GetShip().get());
141 }
#define _log(type, fmt,...)
Definition: logsys.h:124
void Dump(FILE *into, const char *pfx) const
Dumps object to file.
Definition: PyRep.cpp:84
PyServiceMgr *const m_manager
Definition: PyService.h:91
X * get() const
Definition: RefPtr.h:213
ShipItemRef GetShip() const
Definition: Client.h:167
ShipDB m_db
Definition: ShipService.h:45

Here is the call graph for this function:

Member Data Documentation

ShipDB ShipService::m_db
protected

Definition at line 45 of file ShipService.h.

Dispatcher* const ShipService::m_dispatch
protected

Definition at line 42 of file ShipService.h.

Referenced by ~ShipService().


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