109 _log(DUNG__TRACE,
"KeeperService bind request for:");
110 bind_args->
Dump(DUNG__TRACE,
" ");
118 _log(DUNG__CALL,
"KeeperService::Handle_GetLevelEditor size: %u", call.
tuple->
size());
119 call.
Dump(DUNG__CALL_DUMP);
138 _log(DUNG__CALL,
"KeeperService::Handle_CanWarpToPathPlex size: %u", call.
tuple->
size());
139 call.
Dump(DUNG__CALL_DUMP);
147 _log(DUNG__CALL,
"KeeperService::Handle_ActivateAccelerationGate size: %u", call.
tuple->
size());
148 call.
Dump(DUNG__CALL_DUMP);
150 Call_SingleIntegerArg
args;
151 if (!args.Decode(&call.
tuple)) {
152 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
162 GPoint currentPosition(pClient->GetShipSE()->GetPosition());
167 GPoint warpToPoint(currentPosition+deltaPosition);
168 GVector vectorToDestination(currentPosition, warpToPoint);
169 double distanceToDestination = vectorToDestination.length();
170 pClient->GetShipSE()->DestinyMgr()->WarpTo(warpToPoint, distanceToDestination);
181 _log(DUNG__CALL,
"KeeperBound::Handle_EditDungeon size: %u", call.
tuple->
size());
182 call.
Dump(DUNG__CALL_DUMP);
190 _log(DUNG__CALL,
"KeeperBound::Handle_PlayDungeon size: %u", call.
tuple->
size());
191 call.
Dump(DUNG__CALL_DUMP);
198 _log(DUNG__CALL,
"KeeperBound::Handle_Reset size: %u", call.
tuple->
size());
199 call.
Dump(DUNG__CALL_DUMP);
206 _log(DUNG__CALL,
"KeeperBound::Handle_GotoRoom size: %u", call.
tuple->
size());
207 call.
Dump(DUNG__CALL_DUMP);
215 _log(DUNG__CALL,
"KeeperBound::Handle_GetCurrentlyEditedRoomID size: %u", call.
tuple->
size());
216 call.
Dump(DUNG__CALL_DUMP);
Dispatcher *const m_dispatch
#define _log(type, fmt,...)
Dispatcher *const m_dispatch
Dispatcher *const m_dispatch
double MakeRandomFloat(double low, double high)
Generates random real from interval [low; high].
PyCallable_DECL_CALL(EditDungeon)
std::string m_strBoundObjectName
const char * GetName() const
void Dump(FILE *into, const char *pfx) const
Dumps object to file.
void _SetCallDispatcher(CallDispatcher *d)
#define codelog(type, fmt,...)
PyCallable_Make_InnerDispatcher(KeeperService) KeeperService
PyServiceMgr *const m_manager
#define PyCallable_REG_CALL(c, m)
PySubStruct * BindObject(Client *pClient, PyBoundObject *pObj, PyDict *dict=nullptr, PyDict *oid=nullptr)
void Dump(LogType type) const
PyCallable_Make_Dispatcher(KeeperBound) KeeperBound(PyServiceMgr *mgr
virtual PyBoundObject * CreateBoundObject(Client *pClient, const PyRep *bind_args)
static const int64 ONE_AU_IN_METERS