/* * server/zone/objects/player/PlayerObject.cpp generated by engine3 IDL compiler 0.60 */ #include "PlayerObject.h" #include "server/chat/room/ChatRoom.h" #include "server/zone/managers/objectcontroller/ObjectController.h" #include "server/zone/objects/building/BuildingObject.h" #include "server/zone/objects/creature/commands/QueueCommand.h" #include "server/zone/objects/creature/CreatureObject.h" #include "server/zone/objects/player/events/PlayerDisconnectEvent.h" #include "server/zone/objects/player/events/PlayerRecoveryEvent.h" #include "server/zone/objects/scene/SceneObject.h" #include "server/zone/objects/structure/StructureObject.h" #include "server/zone/objects/tangible/tool/CraftingTool.h" #include "server/zone/objects/tangible/tool/SurveyTool.h" #include "server/zone/objects/waypoint/WaypointObject.h" #include "server/zone/templates/SharedObjectTemplate.h" #include "server/zone/Zone.h" #include "server/zone/ZoneClientSession.h" /* * PlayerObjectStub */ enum {RPC_FINALIZE__ = 6,RPC_NOTIFYLOADFROMDATABASE__,RPC_UNLOAD__,RPC_INITIALIZETRANSIENTMEMBERS__,RPC_SENDBASELINESTO__SCENEOBJECT_,RPC_SENDMESSAGE__BASEPACKET_,RPC_ADDOWNEDSTRUCTURE__STRUCTUREOBJECT_,RPC_REMOVEOWNEDSTRUCTURE__STRUCTUREOBJECT_,RPC_GETTOTALOWNEDSTRUCTURECOUNT__,RPC_ISOWNEDSTRUCTURE__STRUCTUREOBJECT_,RPC_GETOWNEDSTRUCTURE__INT_,RPC_GETLOTSREMAINING__,RPC_HASLOTSREMAINING__INT_,RPC_NOTIFYSCENEREADY__,RPC_ADDEXPERIENCE__STRING_INT_BOOL_,RPC_REMOVEEXPERIENCE__STRING_BOOL_,RPC_HASCAPPEDEXPERIENCE__STRING_,RPC_ADDWAYPOINT__WAYPOINTOBJECT_BOOL_BOOL_,RPC_SETWAYPOINT__WAYPOINTOBJECT_BOOL_,RPC_REMOVEWAYPOINT__LONG_BOOL_,RPC_SETLANGUAGEID__BYTE_BOOL_,RPC_ADDFRIEND__STRING_BOOL_,RPC_REMOVEFRIEND__STRING_BOOL_,RPC_ADDIGNORE__STRING_BOOL_,RPC_REMOVEIGNORE__STRING_BOOL_,RPC_SETTITLE__STRING_BOOL_,RPC_SETFOODFILLING__INT_BOOL_,RPC_SETDRINKFILLING__INT_BOOL_,RPC_INCREASEFACTIONSTANDING__STRING_FLOAT_,RPC_DECREASEFACTIONSTANDING__STRING_FLOAT_,RPC_GETFACTIONSTANDING__STRING_,RPC_GETSURVEYWAYPOINT__,RPC_SETSCREENPLAYDATA__STRING_STRING_STRING_,RPC_GETSCREENPLAYDATA__STRING_STRING_,RPC_CLEARSCREENPLAYDATA__STRING_,RPC_ACTIVATERECOVERY__,RPC_DORECOVERY__,RPC_DISCONNECT__BOOL_BOOL_,RPC_RELOAD__ZONECLIENTSESSION_,RPC_SETOFFLINE__,RPC_SETLINKDEAD__,RPC_SETONLINE__,RPC_SETLOGGINGOUT__,RPC_SENDBADGESRESPONSETO__CREATUREOBJECT_,RPC_LOGOUT__BOOL_,RPC_SETLASTNPCCONVSTR__STRING_,RPC_SETLASTNPCCONVMESSSTR__STRING_,RPC_GETLASTNPCCONVSTR__,RPC_GETLASTNPCCONVMESSSTR__,RPC_GETLASTNPCCONVOPTION__INT_,RPC_ADDLASTNPCCONVOPTIONS__STRING_,RPC_COUNTLASTNPCCONVOPTIONS__,RPC_CLEARLASTNPCCONVOPTIONS__,RPC_SETCONVERSATINGCREATURE__CREATUREOBJECT_,RPC_GETCONVERSATINGCREATURE__,RPC_SETTRAINERZONENAME__STRING_,RPC_GETTRAINERZONENAME__,RPC_ADDPERSISTENTMESSAGE__LONG_,RPC_DROPPERSISTENTMESSAGE__LONG_,RPC_UNLOADSPAWNEDCHILDREN__,RPC_ADDTOCONSENTLIST__STRING_,RPC_HASINCONSENTLIST__STRING_,RPC_REMOVEFROMCONSENTLIST__STRING_,RPC_GETCONSENTNAME__INT_,RPC_GETCONSENTLISTSIZE__,RPC_SETCOMMANDMESSAGESTRING__INT_STRING_,RPC_REMOVECOMMANDMESSAGESTRING__INT_,RPC_GETDECLAREDRESIDENCE__,RPC_SETDECLAREDRESIDENCE__BUILDINGOBJECT_,RPC_SETCLONINGFACILITY__BUILDINGOBJECT_,RPC_GETCLONINGFACILITY__,RPC_NOTIFYONLINE__,RPC_DODIGEST__,RPC_ISDIGESTING__,RPC_GETSAVEDTERRAINNAME__,RPC_SETSAVEDPARENTID__LONG_,RPC_SETSAVEDTERRAINNAME__STRING_,RPC_SETFORCEPOWER__INT_BOOL_,RPC_SETFORCEPOWERMAX__INT_BOOL_,RPC_ACTIVATEFORCEREGEN__,RPC_SETFORCEPOWERREGEN__INT_,RPC_GETFORCEPOWERREGEN__,RPC_GETSAVEDPARENTID__,RPC_GETNEWSUIBOXID__INT_,RPC_HASSUIBOX__INT_,RPC_GETSUIBOX__INT_,RPC_REMOVESUIBOX__INT_BOOL_,RPC_REMOVESUIBOXTYPE__INT_,RPC_HASSUIBOXWINDOWTYPE__INT_,RPC_CLOSESUIWINDOWTYPE__INT_,RPC_GETSUIBOXFROMWINDOWTYPE__INT_,RPC_ADDSUIBOX__SUIBOX_,RPC_ADDPERMISSIONGROUP__STRING_BOOL_,RPC_REMOVEPERMISSIONGROUP__STRING_BOOL_,RPC_HASPERMISSIONGROUP__STRING_,RPC_ISFIRSTINCAPACITATIONEXPIRED__,RPC_RESETINCAPACITATIONCOUNTER__,RPC_RESETFIRSTINCAPACITATIONTIME__,RPC_UPDATEINCAPACITATIONCOUNTER__,RPC_ISFIRSTINCAPACITATION__,RPC_GETINCAPACITATIONCOUNTER__,RPC_ADDTODUELLIST__CREATUREOBJECT_,RPC_REMOVEFROMDUELLIST__CREATUREOBJECT_,RPC_GETDUELLISTOBJECT__INT_,RPC_REQUESTEDDUELTO__CREATUREOBJECT_,RPC_ISDUELLISTEMPTY__,RPC_GETDUELLISTSIZE__,RPC_GETBIOGRAPHY__,RPC_NOTIFYOFFLINE__,RPC_SETBADGE__INT_,RPC_AWARDBADGE__INT_,RPC_SETTELEPORTING__BOOL_,RPC_GETNUMBADGES__,RPC_GETBADGETYPECOUNT__BYTE_,RPC_HASFRIEND__STRING_,RPC_ISIGNORING__STRING_,RPC_ADDREVERSEFRIEND__STRING_,RPC_REMOVEREVERSEFRIEND__STRING_,RPC_SENDFRIENDLISTS__,RPC_HASWAYPOINT__LONG_,RPC_HASCOMMANDMESSAGESTRING__INT_,RPC_GETCHARACTERBITMASK__,RPC_GETTITLE__,RPC_GETADMINLEVEL__,RPC_SETADMINLEVEL__INT_,RPC_SETBIOGRAPHY__UNICODESTRING_,RPC_ISDEVELOPER__,RPC_ISCSR__,RPC_ISPRIVILEGED__,RPC_SETCHARACTERBITMASK__INT_,RPC_SETCHARACTERBIT__INT_BOOL_,RPC_CLEARCHARACTERBIT__INT_BOOL_,RPC_TOGGLECHARACTERBIT__INT_,RPC_GETFORCEPOWER__,RPC_GETFORCEPOWERMAX__,RPC_GETSCHEMATIC__INT_,RPC_GETFOODFILLING__,RPC_GETFOODFILLINGMAX__,RPC_GETDRINKFILLING__,RPC_GETDRINKFILLINGMAX__,RPC_GETJEDISTATE__,RPC_SETJEDISTATE__INT_,RPC_GETLANGUAGEID__,RPC_ISTELEPORTING__,RPC_ADDCHATROOM__CHATROOM_,RPC_REMOVECHATROOM__CHATROOM_,RPC_SETBANKLOCATION__STRING_,RPC_GETBANKLOCATION__,RPC_GETEXPERIENCE__STRING_,RPC_MAXIMIZEEXPERIENCE__,RPC_ACTIVATEMISSIONS__,RPC_GETCOMMANDMESSAGESTRING__INT_,RPC_HASBADGE__INT_,RPC_CLEARDISCONNECTEVENT__,RPC_CLEARRECOVERYEVENT__,RPC_ISONLINE__,RPC_ISOFFLINE__,RPC_ISLOADING__,RPC_ISLINKDEAD__,RPC_ISLOGGINGIN__,RPC_ISLOGGINGOUT__,RPC_SETSKILLPOINTS__INT_,RPC_ADDSKILLPOINTS__INT_,RPC_GETSKILLPOINTS__,RPC_UPDATELASTVALIDATEDPOSITION__,RPC_SETSPAWNEDBLUEFROG__,RPC_HASSPAWNEDBLUEFROG__,RPC_GETACCOUNTID__,RPC_GETSERVERMOVEMENTTIMEDELTA__,RPC_SETCLIENTLASTMOVEMENTSTAMP__INT_,RPC_UPDATESERVERLASTMOVEMENTSTAMP__,RPC_SETACCOUNTID__INT_,RPC_GETFACTIONSTATUS__,RPC_SETFACTIONSTATUS__INT_,RPC_GETCLIENTLASTMOVEMENTSTAMP__,RPC_ADDHOLOGRINDPROFESSION__BYTE_,RPC_GETRACEID__,RPC_SETRACEID__BYTE_,RPC_SETMAXIMUMLOTS__BYTE_,RPC_GETMAXIMUMLOTS__,RPC_GETSTARTERPROFESSION__,RPC_SETSTARTERPROFESSION__STRING_,RPC_ADDTOBOUNTYLOCKLIST__LONG_,RPC_ISINBOUNTYLOCKLIST__LONG_,RPC_REMOVEFROMBOUNTYLOCKLIST__LONG_BOOL_,RPC_REMOVEFROMBOUNTYLOCKLISTDIRECTLY__LONG_,RPC_ISBOUNTYLOCKED__,RPC_GETPERFORMANCEBUFFTARGET__,RPC_SETPERFORMANCEBUFFTARGET__LONG_,RPC_SETDEBUG__BOOL_,RPC_GETDEBUG__,RPC_GETVISIBILITY__,RPC_SETVISIBILITY__FLOAT_,RPC_ADDVENDOR__SCENEOBJECT_,RPC_REMOVEVENDOR__SCENEOBJECT_,RPC_GETVENDORCOUNT__,RPC_DESTROYOBJECTFROMDATABASE__BOOL_,RPC_ISJEDI__}; PlayerObject::PlayerObject() : IntangibleObject(DummyConstructorParameter::instance()) { PlayerObjectImplementation* _implementation = new PlayerObjectImplementation(); _impl = _implementation; _impl->_setStub(this); _setClassName("PlayerObject"); } PlayerObject::PlayerObject(DummyConstructorParameter* param) : IntangibleObject(param) { _setClassName("PlayerObject"); } PlayerObject::~PlayerObject() { } void PlayerObject::notifyLoadFromDatabase() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_NOTIFYLOADFROMDATABASE__); method.executeWithVoidReturn(); } else _implementation->notifyLoadFromDatabase(); } void PlayerObject::unload() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_UNLOAD__); method.executeWithVoidReturn(); } else _implementation->unload(); } void PlayerObject::loadTemplateData(SharedObjectTemplate* templateData) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else _implementation->loadTemplateData(templateData); } void PlayerObject::initializeTransientMembers() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_INITIALIZETRANSIENTMEMBERS__); method.executeWithVoidReturn(); } else _implementation->initializeTransientMembers(); } void PlayerObject::sendBaselinesTo(SceneObject* player) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SENDBASELINESTO__SCENEOBJECT_); method.addObjectParameter(player); method.executeWithVoidReturn(); } else _implementation->sendBaselinesTo(player); } void PlayerObject::sendMessage(BasePacket* msg) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SENDMESSAGE__BASEPACKET_); method.addObjectParameter(msg); method.executeWithVoidReturn(); } else _implementation->sendMessage(msg); } void PlayerObject::addOwnedStructure(StructureObject* obj) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDOWNEDSTRUCTURE__STRUCTUREOBJECT_); method.addObjectParameter(obj); method.executeWithVoidReturn(); } else _implementation->addOwnedStructure(obj); } void PlayerObject::removeOwnedStructure(StructureObject* obj) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEOWNEDSTRUCTURE__STRUCTUREOBJECT_); method.addObjectParameter(obj); method.executeWithVoidReturn(); } else _implementation->removeOwnedStructure(obj); } int PlayerObject::getTotalOwnedStructureCount() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETTOTALOWNEDSTRUCTURECOUNT__); return method.executeWithSignedIntReturn(); } else return _implementation->getTotalOwnedStructureCount(); } bool PlayerObject::isOwnedStructure(StructureObject* obj) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISOWNEDSTRUCTURE__STRUCTUREOBJECT_); method.addObjectParameter(obj); return method.executeWithBooleanReturn(); } else return _implementation->isOwnedStructure(obj); } unsigned long long PlayerObject::getOwnedStructure(int i) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETOWNEDSTRUCTURE__INT_); method.addSignedIntParameter(i); return method.executeWithUnsignedLongReturn(); } else return _implementation->getOwnedStructure(i); } int PlayerObject::getLotsRemaining() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETLOTSREMAINING__); return method.executeWithSignedIntReturn(); } else return _implementation->getLotsRemaining(); } bool PlayerObject::hasLotsRemaining(int lots) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASLOTSREMAINING__INT_); method.addSignedIntParameter(lots); return method.executeWithBooleanReturn(); } else return _implementation->hasLotsRemaining(lots); } void PlayerObject::notifySceneReady() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_NOTIFYSCENEREADY__); method.executeWithVoidReturn(); } else _implementation->notifySceneReady(); } int PlayerObject::addExperience(const String& xpType, int xp, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDEXPERIENCE__STRING_INT_BOOL_); method.addAsciiParameter(xpType); method.addSignedIntParameter(xp); method.addBooleanParameter(notifyClient); return method.executeWithSignedIntReturn(); } else return _implementation->addExperience(xpType, xp, notifyClient); } void PlayerObject::removeExperience(const String& xpType, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEEXPERIENCE__STRING_BOOL_); method.addAsciiParameter(xpType); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->removeExperience(xpType, notifyClient); } bool PlayerObject::hasCappedExperience(const String& xpType) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASCAPPEDEXPERIENCE__STRING_); method.addAsciiParameter(xpType); return method.executeWithBooleanReturn(); } else return _implementation->hasCappedExperience(xpType); } void PlayerObject::addWaypoint(WaypointObject* waypoint, bool checkName, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDWAYPOINT__WAYPOINTOBJECT_BOOL_BOOL_); method.addObjectParameter(waypoint); method.addBooleanParameter(checkName); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->addWaypoint(waypoint, checkName, notifyClient); } void PlayerObject::setWaypoint(WaypointObject* waypoint, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETWAYPOINT__WAYPOINTOBJECT_BOOL_); method.addObjectParameter(waypoint); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->setWaypoint(waypoint, notifyClient); } WaypointObject* PlayerObject::addWaypoint(const String& planet, float positionX, float positionY, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->addWaypoint(planet, positionX, positionY, notifyClient); } void PlayerObject::removeWaypoint(unsigned long long waypointID, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEWAYPOINT__LONG_BOOL_); method.addUnsignedLongParameter(waypointID); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->removeWaypoint(waypointID, notifyClient); } void PlayerObject::addAbilities(Vector& abilities, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else _implementation->addAbilities(abilities, notifyClient); } void PlayerObject::addAbility(Ability* ability, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else _implementation->addAbility(ability, notifyClient); } void PlayerObject::removeAbilities(Vector& abilities, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else _implementation->removeAbilities(abilities, notifyClient); } void PlayerObject::removeAbility(Ability* ability, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else _implementation->removeAbility(ability, notifyClient); } bool PlayerObject::addSchematics(Vector >& schematics, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->addSchematics(schematics, notifyClient); } void PlayerObject::removeSchematics(Vector >& schematics, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else _implementation->removeSchematics(schematics, notifyClient); } bool PlayerObject::addRewardedSchematic(DraftSchematic* schematic, int quantity, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->addRewardedSchematic(schematic, quantity, notifyClient); } void PlayerObject::removeRewardedSchematic(DraftSchematic* schematic, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else _implementation->removeRewardedSchematic(schematic, notifyClient); } void PlayerObject::decreaseSchematicUseCount(DraftSchematic* schematic) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else _implementation->decreaseSchematicUseCount(schematic); } void PlayerObject::setLanguageID(byte language, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETLANGUAGEID__BYTE_BOOL_); method.addByteParameter(language); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->setLanguageID(language, notifyClient); } void PlayerObject::addFriend(const String& name, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDFRIEND__STRING_BOOL_); method.addAsciiParameter(name); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->addFriend(name, notifyClient); } void PlayerObject::removeFriend(const String& name, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEFRIEND__STRING_BOOL_); method.addAsciiParameter(name); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->removeFriend(name, notifyClient); } void PlayerObject::addIgnore(const String& name, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDIGNORE__STRING_BOOL_); method.addAsciiParameter(name); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->addIgnore(name, notifyClient); } void PlayerObject::removeIgnore(const String& name, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEIGNORE__STRING_BOOL_); method.addAsciiParameter(name); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->removeIgnore(name, notifyClient); } void PlayerObject::setTitle(const String& characterTitle, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETTITLE__STRING_BOOL_); method.addAsciiParameter(characterTitle); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->setTitle(characterTitle, notifyClient); } void PlayerObject::setFoodFilling(int newValue, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETFOODFILLING__INT_BOOL_); method.addSignedIntParameter(newValue); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->setFoodFilling(newValue, notifyClient); } void PlayerObject::setDrinkFilling(int newValue, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETDRINKFILLING__INT_BOOL_); method.addSignedIntParameter(newValue); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->setDrinkFilling(newValue, notifyClient); } void PlayerObject::increaseFactionStanding(const String& factionName, float amount) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_INCREASEFACTIONSTANDING__STRING_FLOAT_); method.addAsciiParameter(factionName); method.addFloatParameter(amount); method.executeWithVoidReturn(); } else _implementation->increaseFactionStanding(factionName, amount); } void PlayerObject::decreaseFactionStanding(const String& factionName, float amount) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_DECREASEFACTIONSTANDING__STRING_FLOAT_); method.addAsciiParameter(factionName); method.addFloatParameter(amount); method.executeWithVoidReturn(); } else _implementation->decreaseFactionStanding(factionName, amount); } float PlayerObject::getFactionStanding(const String& factionName) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETFACTIONSTANDING__STRING_); method.addAsciiParameter(factionName); return method.executeWithFloatReturn(); } else return _implementation->getFactionStanding(factionName); } WaypointObject* PlayerObject::getSurveyWaypoint() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETSURVEYWAYPOINT__); return static_cast(method.executeWithObjectReturn()); } else return _implementation->getSurveyWaypoint(); } void PlayerObject::setScreenPlayData(const String& screenPlay, const String& variable, const String& data) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETSCREENPLAYDATA__STRING_STRING_STRING_); method.addAsciiParameter(screenPlay); method.addAsciiParameter(variable); method.addAsciiParameter(data); method.executeWithVoidReturn(); } else _implementation->setScreenPlayData(screenPlay, variable, data); } String PlayerObject::getScreenPlayData(const String& screenPlay, const String& variable) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETSCREENPLAYDATA__STRING_STRING_); method.addAsciiParameter(screenPlay); method.addAsciiParameter(variable); String _return_getScreenPlayData; method.executeWithAsciiReturn(_return_getScreenPlayData); return _return_getScreenPlayData; } else return _implementation->getScreenPlayData(screenPlay, variable); } void PlayerObject::clearScreenPlayData(const String& screenPlay) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_CLEARSCREENPLAYDATA__STRING_); method.addAsciiParameter(screenPlay); method.executeWithVoidReturn(); } else _implementation->clearScreenPlayData(screenPlay); } void PlayerObject::activateRecovery() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ACTIVATERECOVERY__); method.executeWithVoidReturn(); } else _implementation->activateRecovery(); } void PlayerObject::doRecovery() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_DORECOVERY__); method.executeWithVoidReturn(); } else _implementation->doRecovery(); } void PlayerObject::disconnect(bool closeClient, bool doLock) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_DISCONNECT__BOOL_BOOL_); method.addBooleanParameter(closeClient); method.addBooleanParameter(doLock); method.executeWithVoidReturn(); } else _implementation->disconnect(closeClient, doLock); } void PlayerObject::reload(ZoneClientSession* client) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_RELOAD__ZONECLIENTSESSION_); method.addObjectParameter(client); method.executeWithVoidReturn(); } else _implementation->reload(client); } void PlayerObject::setOffline() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETOFFLINE__); method.executeWithVoidReturn(); } else _implementation->setOffline(); } void PlayerObject::setLinkDead() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETLINKDEAD__); method.executeWithVoidReturn(); } else _implementation->setLinkDead(); } void PlayerObject::setOnline() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETONLINE__); method.executeWithVoidReturn(); } else _implementation->setOnline(); } void PlayerObject::setLoggingOut() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETLOGGINGOUT__); method.executeWithVoidReturn(); } else _implementation->setLoggingOut(); } void PlayerObject::sendBadgesResponseTo(CreatureObject* player) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SENDBADGESRESPONSETO__CREATUREOBJECT_); method.addObjectParameter(player); method.executeWithVoidReturn(); } else _implementation->sendBadgesResponseTo(player); } void PlayerObject::logout(bool doLock) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_LOGOUT__BOOL_); method.addBooleanParameter(doLock); method.executeWithVoidReturn(); } else _implementation->logout(doLock); } FactionStandingList* PlayerObject::getFactionStandingList() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getFactionStandingList(); } void PlayerObject::setLastNpcConvStr(const String& conv) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETLASTNPCCONVSTR__STRING_); method.addAsciiParameter(conv); method.executeWithVoidReturn(); } else _implementation->setLastNpcConvStr(conv); } void PlayerObject::setLastNpcConvMessStr(const String& mess) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETLASTNPCCONVMESSSTR__STRING_); method.addAsciiParameter(mess); method.executeWithVoidReturn(); } else _implementation->setLastNpcConvMessStr(mess); } String PlayerObject::getLastNpcConvStr() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETLASTNPCCONVSTR__); String _return_getLastNpcConvStr; method.executeWithAsciiReturn(_return_getLastNpcConvStr); return _return_getLastNpcConvStr; } else return _implementation->getLastNpcConvStr(); } String PlayerObject::getLastNpcConvMessStr() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETLASTNPCCONVMESSSTR__); String _return_getLastNpcConvMessStr; method.executeWithAsciiReturn(_return_getLastNpcConvMessStr); return _return_getLastNpcConvMessStr; } else return _implementation->getLastNpcConvMessStr(); } String PlayerObject::getLastNpcConvOption(int idx) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETLASTNPCCONVOPTION__INT_); method.addSignedIntParameter(idx); String _return_getLastNpcConvOption; method.executeWithAsciiReturn(_return_getLastNpcConvOption); return _return_getLastNpcConvOption; } else return _implementation->getLastNpcConvOption(idx); } void PlayerObject::addLastNpcConvOptions(const String& option) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDLASTNPCCONVOPTIONS__STRING_); method.addAsciiParameter(option); method.executeWithVoidReturn(); } else _implementation->addLastNpcConvOptions(option); } int PlayerObject::countLastNpcConvOptions() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_COUNTLASTNPCCONVOPTIONS__); return method.executeWithSignedIntReturn(); } else return _implementation->countLastNpcConvOptions(); } void PlayerObject::clearLastNpcConvOptions() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_CLEARLASTNPCCONVOPTIONS__); method.executeWithVoidReturn(); } else _implementation->clearLastNpcConvOptions(); } void PlayerObject::setConversatingCreature(CreatureObject* creature) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETCONVERSATINGCREATURE__CREATUREOBJECT_); method.addObjectParameter(creature); method.executeWithVoidReturn(); } else _implementation->setConversatingCreature(creature); } unsigned long long PlayerObject::getConversatingCreature() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETCONVERSATINGCREATURE__); return method.executeWithUnsignedLongReturn(); } else return _implementation->getConversatingCreature(); } void PlayerObject::setTrainerCoordinates(const Vector3& trainer) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else _implementation->setTrainerCoordinates(trainer); } Vector3 PlayerObject::getTrainerCoordinates() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getTrainerCoordinates(); } void PlayerObject::setTrainerZoneName(String& zoneName) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETTRAINERZONENAME__STRING_); method.addAsciiParameter(zoneName); method.executeWithVoidReturn(); } else _implementation->setTrainerZoneName(zoneName); } String PlayerObject::getTrainerZoneName() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETTRAINERZONENAME__); String _return_getTrainerZoneName; method.executeWithAsciiReturn(_return_getTrainerZoneName); return _return_getTrainerZoneName; } else return _implementation->getTrainerZoneName(); } SortedVector* PlayerObject::getPersistentMessages() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getPersistentMessages(); } void PlayerObject::addPersistentMessage(unsigned long long id) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDPERSISTENTMESSAGE__LONG_); method.addUnsignedLongParameter(id); method.executeWithVoidReturn(); } else _implementation->addPersistentMessage(id); } void PlayerObject::dropPersistentMessage(unsigned long long id) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_DROPPERSISTENTMESSAGE__LONG_); method.addUnsignedLongParameter(id); method.executeWithVoidReturn(); } else _implementation->dropPersistentMessage(id); } void PlayerObject::unloadSpawnedChildren() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_UNLOADSPAWNEDCHILDREN__); method.executeWithVoidReturn(); } else _implementation->unloadSpawnedChildren(); } void PlayerObject::addToConsentList(const String& name) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDTOCONSENTLIST__STRING_); method.addAsciiParameter(name); method.executeWithVoidReturn(); } else _implementation->addToConsentList(name); } bool PlayerObject::hasInConsentList(const String& name) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASINCONSENTLIST__STRING_); method.addAsciiParameter(name); return method.executeWithBooleanReturn(); } else return _implementation->hasInConsentList(name); } void PlayerObject::removeFromConsentList(const String& name) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEFROMCONSENTLIST__STRING_); method.addAsciiParameter(name); method.executeWithVoidReturn(); } else _implementation->removeFromConsentList(name); } String PlayerObject::getConsentName(int i) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETCONSENTNAME__INT_); method.addSignedIntParameter(i); String _return_getConsentName; method.executeWithAsciiReturn(_return_getConsentName); return _return_getConsentName; } else return _implementation->getConsentName(i); } int PlayerObject::getConsentListSize() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETCONSENTLISTSIZE__); return method.executeWithSignedIntReturn(); } else return _implementation->getConsentListSize(); } String PlayerObject::getFactionRank() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getFactionRank(); } void PlayerObject::setFactionRank(const String& rank) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else _implementation->setFactionRank(rank); } void PlayerObject::setCommandMessageString(unsigned int actionCRC, String& message) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETCOMMANDMESSAGESTRING__INT_STRING_); method.addUnsignedIntParameter(actionCRC); method.addAsciiParameter(message); method.executeWithVoidReturn(); } else _implementation->setCommandMessageString(actionCRC, message); } void PlayerObject::removeCommandMessageString(unsigned int actionCRC) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVECOMMANDMESSAGESTRING__INT_); method.addUnsignedIntParameter(actionCRC); method.executeWithVoidReturn(); } else _implementation->removeCommandMessageString(actionCRC); } unsigned long long PlayerObject::getDeclaredResidence() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETDECLAREDRESIDENCE__); return method.executeWithUnsignedLongReturn(); } else return _implementation->getDeclaredResidence(); } void PlayerObject::setDeclaredResidence(BuildingObject* residence) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETDECLAREDRESIDENCE__BUILDINGOBJECT_); method.addObjectParameter(residence); method.executeWithVoidReturn(); } else _implementation->setDeclaredResidence(residence); } void PlayerObject::setCloningFacility(BuildingObject* cloningfac) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETCLONINGFACILITY__BUILDINGOBJECT_); method.addObjectParameter(cloningfac); method.executeWithVoidReturn(); } else _implementation->setCloningFacility(cloningfac); } unsigned long long PlayerObject::getCloningFacility() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETCLONINGFACILITY__); return method.executeWithUnsignedLongReturn(); } else return _implementation->getCloningFacility(); } void PlayerObject::notifyOnline() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_NOTIFYONLINE__); method.executeWithVoidReturn(); } else _implementation->notifyOnline(); } void PlayerObject::doDigest() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_DODIGEST__); method.executeWithVoidReturn(); } else _implementation->doDigest(); } bool PlayerObject::isDigesting() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISDIGESTING__); return method.executeWithBooleanReturn(); } else return _implementation->isDigesting(); } String PlayerObject::getSavedTerrainName() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETSAVEDTERRAINNAME__); String _return_getSavedTerrainName; method.executeWithAsciiReturn(_return_getSavedTerrainName); return _return_getSavedTerrainName; } else return _implementation->getSavedTerrainName(); } void PlayerObject::setSavedParentID(unsigned long long id) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETSAVEDPARENTID__LONG_); method.addUnsignedLongParameter(id); method.executeWithVoidReturn(); } else _implementation->setSavedParentID(id); } void PlayerObject::setSavedTerrainName(const String& name) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETSAVEDTERRAINNAME__STRING_); method.addAsciiParameter(name); method.executeWithVoidReturn(); } else _implementation->setSavedTerrainName(name); } void PlayerObject::setForcePower(int fp, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETFORCEPOWER__INT_BOOL_); method.addSignedIntParameter(fp); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->setForcePower(fp, notifyClient); } void PlayerObject::setForcePowerMax(int newValue, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETFORCEPOWERMAX__INT_BOOL_); method.addSignedIntParameter(newValue); method.addBooleanParameter(notifyClient); method.executeWithVoidReturn(); } else _implementation->setForcePowerMax(newValue, notifyClient); } void PlayerObject::activateForceRegen() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ACTIVATEFORCEREGEN__); method.executeWithVoidReturn(); } else _implementation->activateForceRegen(); } void PlayerObject::setForcePowerRegen(int val) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETFORCEPOWERREGEN__INT_); method.addSignedIntParameter(val); method.executeWithVoidReturn(); } else _implementation->setForcePowerRegen(val); } int PlayerObject::getForcePowerRegen() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETFORCEPOWERREGEN__); return method.executeWithSignedIntReturn(); } else return _implementation->getForcePowerRegen(); } unsigned long long PlayerObject::getSavedParentID() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETSAVEDPARENTID__); return method.executeWithUnsignedLongReturn(); } else return _implementation->getSavedParentID(); } unsigned int PlayerObject::getNewSuiBoxID(unsigned int type) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETNEWSUIBOXID__INT_); method.addUnsignedIntParameter(type); return method.executeWithUnsignedIntReturn(); } else return _implementation->getNewSuiBoxID(type); } bool PlayerObject::hasSuiBox(unsigned int boxID) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASSUIBOX__INT_); method.addUnsignedIntParameter(boxID); return method.executeWithBooleanReturn(); } else return _implementation->hasSuiBox(boxID); } SuiBox* PlayerObject::getSuiBox(unsigned int boxID) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETSUIBOX__INT_); method.addUnsignedIntParameter(boxID); return static_cast(method.executeWithObjectReturn()); } else return _implementation->getSuiBox(boxID); } void PlayerObject::removeSuiBox(unsigned int boxID, bool closeWindowToClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVESUIBOX__INT_BOOL_); method.addUnsignedIntParameter(boxID); method.addBooleanParameter(closeWindowToClient); method.executeWithVoidReturn(); } else _implementation->removeSuiBox(boxID, closeWindowToClient); } void PlayerObject::removeSuiBoxType(unsigned int windowType) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVESUIBOXTYPE__INT_); method.addUnsignedIntParameter(windowType); method.executeWithVoidReturn(); } else _implementation->removeSuiBoxType(windowType); } bool PlayerObject::hasSuiBoxWindowType(unsigned int windowType) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASSUIBOXWINDOWTYPE__INT_); method.addUnsignedIntParameter(windowType); return method.executeWithBooleanReturn(); } else return _implementation->hasSuiBoxWindowType(windowType); } void PlayerObject::closeSuiWindowType(unsigned int windowType) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_CLOSESUIWINDOWTYPE__INT_); method.addUnsignedIntParameter(windowType); method.executeWithVoidReturn(); } else _implementation->closeSuiWindowType(windowType); } SuiBox* PlayerObject::getSuiBoxFromWindowType(unsigned int windowType) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETSUIBOXFROMWINDOWTYPE__INT_); method.addUnsignedIntParameter(windowType); return static_cast(method.executeWithObjectReturn()); } else return _implementation->getSuiBoxFromWindowType(windowType); } void PlayerObject::addSuiBox(SuiBox* sui) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDSUIBOX__SUIBOX_); method.addObjectParameter(sui); method.executeWithVoidReturn(); } else _implementation->addSuiBox(sui); } void PlayerObject::addPermissionGroup(const String& group, bool updateInRangeBuildingPermissions) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDPERMISSIONGROUP__STRING_BOOL_); method.addAsciiParameter(group); method.addBooleanParameter(updateInRangeBuildingPermissions); method.executeWithVoidReturn(); } else _implementation->addPermissionGroup(group, updateInRangeBuildingPermissions); } void PlayerObject::removePermissionGroup(const String& group, bool updateInRangeBuildingPermissions) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEPERMISSIONGROUP__STRING_BOOL_); method.addAsciiParameter(group); method.addBooleanParameter(updateInRangeBuildingPermissions); method.executeWithVoidReturn(); } else _implementation->removePermissionGroup(group, updateInRangeBuildingPermissions); } bool PlayerObject::hasPermissionGroup(const String& group) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASPERMISSIONGROUP__STRING_); method.addAsciiParameter(group); return method.executeWithBooleanReturn(); } else return _implementation->hasPermissionGroup(group); } SortedVector* PlayerObject::getPermissionGroups() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getPermissionGroups(); } bool PlayerObject::isFirstIncapacitationExpired() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISFIRSTINCAPACITATIONEXPIRED__); return method.executeWithBooleanReturn(); } else return _implementation->isFirstIncapacitationExpired(); } void PlayerObject::resetIncapacitationCounter() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_RESETINCAPACITATIONCOUNTER__); method.executeWithVoidReturn(); } else _implementation->resetIncapacitationCounter(); } void PlayerObject::resetFirstIncapacitationTime() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_RESETFIRSTINCAPACITATIONTIME__); method.executeWithVoidReturn(); } else _implementation->resetFirstIncapacitationTime(); } void PlayerObject::updateIncapacitationCounter() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_UPDATEINCAPACITATIONCOUNTER__); method.executeWithVoidReturn(); } else _implementation->updateIncapacitationCounter(); } bool PlayerObject::isFirstIncapacitation() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISFIRSTINCAPACITATION__); return method.executeWithBooleanReturn(); } else return _implementation->isFirstIncapacitation(); } byte PlayerObject::getIncapacitationCounter() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETINCAPACITATIONCOUNTER__); return method.executeWithByteReturn(); } else return _implementation->getIncapacitationCounter(); } void PlayerObject::addToDuelList(CreatureObject* targetPlayer) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDTODUELLIST__CREATUREOBJECT_); method.addObjectParameter(targetPlayer); method.executeWithVoidReturn(); } else _implementation->addToDuelList(targetPlayer); } void PlayerObject::removeFromDuelList(CreatureObject* targetPlayer) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEFROMDUELLIST__CREATUREOBJECT_); method.addObjectParameter(targetPlayer); method.executeWithVoidReturn(); } else _implementation->removeFromDuelList(targetPlayer); } CreatureObject* PlayerObject::getDuelListObject(int index) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETDUELLISTOBJECT__INT_); method.addSignedIntParameter(index); return static_cast(method.executeWithObjectReturn()); } else return _implementation->getDuelListObject(index); } bool PlayerObject::requestedDuelTo(CreatureObject* targetPlayer) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REQUESTEDDUELTO__CREATUREOBJECT_); method.addObjectParameter(targetPlayer); return method.executeWithBooleanReturn(); } else return _implementation->requestedDuelTo(targetPlayer); } bool PlayerObject::isDuelListEmpty() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISDUELLISTEMPTY__); return method.executeWithBooleanReturn(); } else return _implementation->isDuelListEmpty(); } int PlayerObject::getDuelListSize() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETDUELLISTSIZE__); return method.executeWithSignedIntReturn(); } else return _implementation->getDuelListSize(); } UnicodeString PlayerObject::getBiography() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETBIOGRAPHY__); UnicodeString _return_getBiography; method.executeWithUnicodeReturn(_return_getBiography); return _return_getBiography; } else return _implementation->getBiography(); } void PlayerObject::notifyOffline() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_NOTIFYOFFLINE__); method.executeWithVoidReturn(); } else _implementation->notifyOffline(); } void PlayerObject::setBadge(unsigned int badge) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETBADGE__INT_); method.addUnsignedIntParameter(badge); method.executeWithVoidReturn(); } else _implementation->setBadge(badge); } void PlayerObject::awardBadge(unsigned int badge) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_AWARDBADGE__INT_); method.addUnsignedIntParameter(badge); method.executeWithVoidReturn(); } else _implementation->awardBadge(badge); } void PlayerObject::setTeleporting(bool val) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETTELEPORTING__BOOL_); method.addBooleanParameter(val); method.executeWithVoidReturn(); } else _implementation->setTeleporting(val); } int PlayerObject::getNumBadges() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETNUMBADGES__); return method.executeWithSignedIntReturn(); } else return _implementation->getNumBadges(); } int PlayerObject::getBadgeTypeCount(byte type) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETBADGETYPECOUNT__BYTE_); method.addByteParameter(type); return method.executeWithSignedIntReturn(); } else return _implementation->getBadgeTypeCount(type); } bool PlayerObject::hasFriend(const String& name) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASFRIEND__STRING_); method.addAsciiParameter(name); return method.executeWithBooleanReturn(); } else return _implementation->hasFriend(name); } bool PlayerObject::isIgnoring(const String& name) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISIGNORING__STRING_); method.addAsciiParameter(name); return method.executeWithBooleanReturn(); } else return _implementation->isIgnoring(name); } void PlayerObject::addReverseFriend(const String& name) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDREVERSEFRIEND__STRING_); method.addAsciiParameter(name); method.executeWithVoidReturn(); } else _implementation->addReverseFriend(name); } void PlayerObject::removeReverseFriend(const String& name) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEREVERSEFRIEND__STRING_); method.addAsciiParameter(name); method.executeWithVoidReturn(); } else _implementation->removeReverseFriend(name); } void PlayerObject::sendFriendLists() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SENDFRIENDLISTS__); method.executeWithVoidReturn(); } else _implementation->sendFriendLists(); } bool PlayerObject::hasWaypoint(unsigned long long objectID) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASWAYPOINT__LONG_); method.addUnsignedLongParameter(objectID); return method.executeWithBooleanReturn(); } else return _implementation->hasWaypoint(objectID); } bool PlayerObject::hasAbility(const String& ability) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->hasAbility(ability); } bool PlayerObject::hasCommandMessageString(unsigned int actionCRC) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASCOMMANDMESSAGESTRING__INT_); method.addUnsignedIntParameter(actionCRC); return method.executeWithBooleanReturn(); } else return _implementation->hasCommandMessageString(actionCRC); } unsigned int PlayerObject::getCharacterBitmask() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETCHARACTERBITMASK__); return method.executeWithUnsignedIntReturn(); } else return _implementation->getCharacterBitmask(); } String PlayerObject::getTitle() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETTITLE__); String _return_getTitle; method.executeWithAsciiReturn(_return_getTitle); return _return_getTitle; } else return _implementation->getTitle(); } unsigned int PlayerObject::getAdminLevel() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETADMINLEVEL__); return method.executeWithUnsignedIntReturn(); } else return _implementation->getAdminLevel(); } void PlayerObject::setAdminLevel(unsigned int adminlvl) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETADMINLEVEL__INT_); method.addUnsignedIntParameter(adminlvl); method.executeWithVoidReturn(); } else _implementation->setAdminLevel(adminlvl); } void PlayerObject::setBiography(const UnicodeString& bio) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETBIOGRAPHY__UNICODESTRING_); method.addUnicodeParameter(bio); method.executeWithVoidReturn(); } else _implementation->setBiography(bio); } bool PlayerObject::isDeveloper() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISDEVELOPER__); return method.executeWithBooleanReturn(); } else return _implementation->isDeveloper(); } bool PlayerObject::isCSR() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISCSR__); return method.executeWithBooleanReturn(); } else return _implementation->isCSR(); } bool PlayerObject::isPrivileged() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISPRIVILEGED__); return method.executeWithBooleanReturn(); } else return _implementation->isPrivileged(); } void PlayerObject::setCharacterBitmask(unsigned int bitmask) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETCHARACTERBITMASK__INT_); method.addUnsignedIntParameter(bitmask); method.executeWithVoidReturn(); } else _implementation->setCharacterBitmask(bitmask); } bool PlayerObject::setCharacterBit(unsigned int bit, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETCHARACTERBIT__INT_BOOL_); method.addUnsignedIntParameter(bit); method.addBooleanParameter(notifyClient); return method.executeWithBooleanReturn(); } else return _implementation->setCharacterBit(bit, notifyClient); } bool PlayerObject::clearCharacterBit(unsigned int bit, bool notifyClient) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_CLEARCHARACTERBIT__INT_BOOL_); method.addUnsignedIntParameter(bit); method.addBooleanParameter(notifyClient); return method.executeWithBooleanReturn(); } else return _implementation->clearCharacterBit(bit, notifyClient); } void PlayerObject::toggleCharacterBit(unsigned int bit) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_TOGGLECHARACTERBIT__INT_); method.addUnsignedIntParameter(bit); method.executeWithVoidReturn(); } else _implementation->toggleCharacterBit(bit); } VectorMap* PlayerObject::getXpTypeCapList() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getXpTypeCapList(); } DeltaVectorMap* PlayerObject::getExperienceList() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getExperienceList(); } int PlayerObject::getForcePower() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETFORCEPOWER__); return method.executeWithSignedIntReturn(); } else return _implementation->getForcePower(); } int PlayerObject::getForcePowerMax() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETFORCEPOWERMAX__); return method.executeWithSignedIntReturn(); } else return _implementation->getForcePowerMax(); } WaypointList* PlayerObject::getWaypointList() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getWaypointList(); } AbilityList* PlayerObject::getAbilityList() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getAbilityList(); } SchematicList* PlayerObject::getSchematics() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getSchematics(); } DraftSchematic* PlayerObject::getSchematic(int i) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETSCHEMATIC__INT_); method.addSignedIntParameter(i); return static_cast(method.executeWithObjectReturn()); } else return _implementation->getSchematic(i); } Vector > PlayerObject::filterSchematicList(CreatureObject* player, Vector* enabledTabs, int complexityLevel) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->filterSchematicList(player, enabledTabs, complexityLevel); } int PlayerObject::getFoodFilling() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETFOODFILLING__); return method.executeWithSignedIntReturn(); } else return _implementation->getFoodFilling(); } int PlayerObject::getFoodFillingMax() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETFOODFILLINGMAX__); return method.executeWithSignedIntReturn(); } else return _implementation->getFoodFillingMax(); } int PlayerObject::getDrinkFilling() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETDRINKFILLING__); return method.executeWithSignedIntReturn(); } else return _implementation->getDrinkFilling(); } int PlayerObject::getDrinkFillingMax() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETDRINKFILLINGMAX__); return method.executeWithSignedIntReturn(); } else return _implementation->getDrinkFillingMax(); } int PlayerObject::getJediState() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETJEDISTATE__); return method.executeWithSignedIntReturn(); } else return _implementation->getJediState(); } void PlayerObject::setJediState(int state) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETJEDISTATE__INT_); method.addSignedIntParameter(state); method.executeWithVoidReturn(); } else _implementation->setJediState(state); } byte PlayerObject::getLanguageID() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETLANGUAGEID__); return method.executeWithByteReturn(); } else return _implementation->getLanguageID(); } DeltaVector* PlayerObject::getFriendList() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getFriendList(); } bool PlayerObject::isTeleporting() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISTELEPORTING__); return method.executeWithBooleanReturn(); } else return _implementation->isTeleporting(); } void PlayerObject::addChatRoom(ChatRoom* room) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDCHATROOM__CHATROOM_); method.addObjectParameter(room); method.executeWithVoidReturn(); } else _implementation->addChatRoom(room); } void PlayerObject::removeChatRoom(ChatRoom* room) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVECHATROOM__CHATROOM_); method.addObjectParameter(room); method.executeWithVoidReturn(); } else _implementation->removeChatRoom(room); } void PlayerObject::setBankLocation(const String& location) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETBANKLOCATION__STRING_); method.addAsciiParameter(location); method.executeWithVoidReturn(); } else _implementation->setBankLocation(location); } String PlayerObject::getBankLocation() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETBANKLOCATION__); String _return_getBankLocation; method.executeWithAsciiReturn(_return_getBankLocation); return _return_getBankLocation; } else return _implementation->getBankLocation(); } DeltaVector* PlayerObject::getIgnoreList() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getIgnoreList(); } int PlayerObject::getExperience(const String& xp) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETEXPERIENCE__STRING_); method.addAsciiParameter(xp); return method.executeWithSignedIntReturn(); } else return _implementation->getExperience(xp); } void PlayerObject::maximizeExperience() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_MAXIMIZEEXPERIENCE__); method.executeWithVoidReturn(); } else _implementation->maximizeExperience(); } void PlayerObject::activateMissions() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ACTIVATEMISSIONS__); method.executeWithVoidReturn(); } else _implementation->activateMissions(); } String PlayerObject::getCommandMessageString(unsigned int actionCRC) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETCOMMANDMESSAGESTRING__INT_); method.addUnsignedIntParameter(actionCRC); String _return_getCommandMessageString; method.executeWithAsciiReturn(_return_getCommandMessageString); return _return_getCommandMessageString; } else return _implementation->getCommandMessageString(actionCRC); } bool PlayerObject::hasBadge(unsigned int badge) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASBADGE__INT_); method.addUnsignedIntParameter(badge); return method.executeWithBooleanReturn(); } else return _implementation->hasBadge(badge); } void PlayerObject::clearDisconnectEvent() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_CLEARDISCONNECTEVENT__); method.executeWithVoidReturn(); } else _implementation->clearDisconnectEvent(); } void PlayerObject::clearRecoveryEvent() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_CLEARRECOVERYEVENT__); method.executeWithVoidReturn(); } else _implementation->clearRecoveryEvent(); } bool PlayerObject::isOnline() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISONLINE__); return method.executeWithBooleanReturn(); } else return _implementation->isOnline(); } bool PlayerObject::isOffline() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISOFFLINE__); return method.executeWithBooleanReturn(); } else return _implementation->isOffline(); } bool PlayerObject::isLoading() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISLOADING__); return method.executeWithBooleanReturn(); } else return _implementation->isLoading(); } bool PlayerObject::isLinkDead() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISLINKDEAD__); return method.executeWithBooleanReturn(); } else return _implementation->isLinkDead(); } bool PlayerObject::isLoggingIn() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISLOGGINGIN__); return method.executeWithBooleanReturn(); } else return _implementation->isLoggingIn(); } bool PlayerObject::isLoggingOut() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISLOGGINGOUT__); return method.executeWithBooleanReturn(); } else return _implementation->isLoggingOut(); } void PlayerObject::setSkillPoints(int points) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETSKILLPOINTS__INT_); method.addSignedIntParameter(points); method.executeWithVoidReturn(); } else _implementation->setSkillPoints(points); } void PlayerObject::addSkillPoints(int points) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDSKILLPOINTS__INT_); method.addSignedIntParameter(points); method.executeWithVoidReturn(); } else _implementation->addSkillPoints(points); } int PlayerObject::getSkillPoints() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETSKILLPOINTS__); return method.executeWithSignedIntReturn(); } else return _implementation->getSkillPoints(); } ValidatedPosition* PlayerObject::getLastValidatedPosition() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getLastValidatedPosition(); } void PlayerObject::updateLastValidatedPosition() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_UPDATELASTVALIDATEDPOSITION__); method.executeWithVoidReturn(); } else _implementation->updateLastValidatedPosition(); } void PlayerObject::setSpawnedBlueFrog() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETSPAWNEDBLUEFROG__); method.executeWithVoidReturn(); } else _implementation->setSpawnedBlueFrog(); } bool PlayerObject::hasSpawnedBlueFrog() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_HASSPAWNEDBLUEFROG__); return method.executeWithBooleanReturn(); } else return _implementation->hasSpawnedBlueFrog(); } unsigned int PlayerObject::getAccountID() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETACCOUNTID__); return method.executeWithUnsignedIntReturn(); } else return _implementation->getAccountID(); } unsigned long long PlayerObject::getServerMovementTimeDelta() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETSERVERMOVEMENTTIMEDELTA__); return method.executeWithUnsignedLongReturn(); } else return _implementation->getServerMovementTimeDelta(); } Time* PlayerObject::getServerMovementTimeStamp() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getServerMovementTimeStamp(); } void PlayerObject::setClientLastMovementStamp(unsigned int stamp) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETCLIENTLASTMOVEMENTSTAMP__INT_); method.addUnsignedIntParameter(stamp); method.executeWithVoidReturn(); } else _implementation->setClientLastMovementStamp(stamp); } void PlayerObject::updateServerLastMovementStamp() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_UPDATESERVERLASTMOVEMENTSTAMP__); method.executeWithVoidReturn(); } else _implementation->updateServerLastMovementStamp(); } void PlayerObject::setAccountID(unsigned int id) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETACCOUNTID__INT_); method.addUnsignedIntParameter(id); method.executeWithVoidReturn(); } else _implementation->setAccountID(id); } int PlayerObject::getFactionStatus() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETFACTIONSTATUS__); return method.executeWithSignedIntReturn(); } else return _implementation->getFactionStatus(); } void PlayerObject::setFactionStatus(int status) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETFACTIONSTATUS__INT_); method.addSignedIntParameter(status); method.executeWithVoidReturn(); } else _implementation->setFactionStatus(status); } unsigned int PlayerObject::getClientLastMovementStamp() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETCLIENTLASTMOVEMENTSTAMP__); return method.executeWithUnsignedIntReturn(); } else return _implementation->getClientLastMovementStamp(); } void PlayerObject::addHologrindProfession(byte prof) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDHOLOGRINDPROFESSION__BYTE_); method.addByteParameter(prof); method.executeWithVoidReturn(); } else _implementation->addHologrindProfession(prof); } Vector* PlayerObject::getHologrindProfessions() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getHologrindProfessions(); } byte PlayerObject::getRaceID() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETRACEID__); return method.executeWithByteReturn(); } else return _implementation->getRaceID(); } void PlayerObject::setRaceID(byte race) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETRACEID__BYTE_); method.addByteParameter(race); method.executeWithVoidReturn(); } else _implementation->setRaceID(race); } void PlayerObject::setMaximumLots(byte lots) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETMAXIMUMLOTS__BYTE_); method.addByteParameter(lots); method.executeWithVoidReturn(); } else _implementation->setMaximumLots(lots); } byte PlayerObject::getMaximumLots() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETMAXIMUMLOTS__); return method.executeWithByteReturn(); } else return _implementation->getMaximumLots(); } String PlayerObject::getStarterProfession() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETSTARTERPROFESSION__); String _return_getStarterProfession; method.executeWithAsciiReturn(_return_getStarterProfession); return _return_getStarterProfession; } else return _implementation->getStarterProfession(); } void PlayerObject::setStarterProfession(String& profession) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETSTARTERPROFESSION__STRING_); method.addAsciiParameter(profession); method.executeWithVoidReturn(); } else _implementation->setStarterProfession(profession); } void PlayerObject::addToBountyLockList(unsigned long long playerId) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDTOBOUNTYLOCKLIST__LONG_); method.addUnsignedLongParameter(playerId); method.executeWithVoidReturn(); } else _implementation->addToBountyLockList(playerId); } bool PlayerObject::isInBountyLockList(unsigned long long playerId) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISINBOUNTYLOCKLIST__LONG_); method.addUnsignedLongParameter(playerId); return method.executeWithBooleanReturn(); } else return _implementation->isInBountyLockList(playerId); } void PlayerObject::removeFromBountyLockList(unsigned long long playerId, bool immediately) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEFROMBOUNTYLOCKLIST__LONG_BOOL_); method.addUnsignedLongParameter(playerId); method.addBooleanParameter(immediately); method.executeWithVoidReturn(); } else _implementation->removeFromBountyLockList(playerId, immediately); } void PlayerObject::removeFromBountyLockListDirectly(unsigned long long playerId) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEFROMBOUNTYLOCKLISTDIRECTLY__LONG_); method.addUnsignedLongParameter(playerId); method.executeWithVoidReturn(); } else _implementation->removeFromBountyLockListDirectly(playerId); } bool PlayerObject::isBountyLocked() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISBOUNTYLOCKED__); return method.executeWithBooleanReturn(); } else return _implementation->isBountyLocked(); } unsigned long long PlayerObject::getPerformanceBuffTarget() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETPERFORMANCEBUFFTARGET__); return method.executeWithUnsignedLongReturn(); } else return _implementation->getPerformanceBuffTarget(); } void PlayerObject::setPerformanceBuffTarget(unsigned long long target) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETPERFORMANCEBUFFTARGET__LONG_); method.addUnsignedLongParameter(target); method.executeWithVoidReturn(); } else _implementation->setPerformanceBuffTarget(target); } void PlayerObject::setDebug(bool value) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETDEBUG__BOOL_); method.addBooleanParameter(value); method.executeWithVoidReturn(); } else _implementation->setDebug(value); } bool PlayerObject::getDebug() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETDEBUG__); return method.executeWithBooleanReturn(); } else return _implementation->getDebug(); } float PlayerObject::getVisibility() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETVISIBILITY__); return method.executeWithFloatReturn(); } else return _implementation->getVisibility(); } void PlayerObject::setVisibility(float value) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_SETVISIBILITY__FLOAT_); method.addFloatParameter(value); method.executeWithVoidReturn(); } else _implementation->setVisibility(value); } Time PlayerObject::getLastVisibilityUpdateTimestamp() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { throw ObjectNotLocalException(this); } else return _implementation->getLastVisibilityUpdateTimestamp(); } void PlayerObject::addVendor(SceneObject* vendor) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ADDVENDOR__SCENEOBJECT_); method.addObjectParameter(vendor); method.executeWithVoidReturn(); } else _implementation->addVendor(vendor); } void PlayerObject::removeVendor(SceneObject* vendor) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_REMOVEVENDOR__SCENEOBJECT_); method.addObjectParameter(vendor); method.executeWithVoidReturn(); } else _implementation->removeVendor(vendor); } int PlayerObject::getVendorCount() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_GETVENDORCOUNT__); return method.executeWithSignedIntReturn(); } else return _implementation->getVendorCount(); } void PlayerObject::destroyObjectFromDatabase(bool destroyContainedObjects) { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_DESTROYOBJECTFROMDATABASE__BOOL_); method.addBooleanParameter(destroyContainedObjects); method.executeWithVoidReturn(); } else _implementation->destroyObjectFromDatabase(destroyContainedObjects); } bool PlayerObject::isJedi() { PlayerObjectImplementation* _implementation = static_cast(_getImplementation()); if (_implementation == NULL) { if (!deployed) throw ObjectNotDeployedException(this); DistributedMethod method(this, RPC_ISJEDI__); return method.executeWithBooleanReturn(); } else return _implementation->isJedi(); } DistributedObjectServant* PlayerObject::_getImplementation() { if (!_updated) _updated = true; return _impl; } void PlayerObject::_setImplementation(DistributedObjectServant* servant) { _impl = servant; } /* * PlayerObjectImplementation */ PlayerObjectImplementation::PlayerObjectImplementation(DummyConstructorParameter* param) : IntangibleObjectImplementation(param) { _initializeImplementation(); } PlayerObjectImplementation::~PlayerObjectImplementation() { PlayerObjectImplementation::finalize(); } void PlayerObjectImplementation::_initializeImplementation() { _setClassHelper(PlayerObjectHelper::instance()); _this = NULL; _serializationHelperMethod(); } void PlayerObjectImplementation::_setStub(DistributedObjectStub* stub) { _this = static_cast(stub); IntangibleObjectImplementation::_setStub(stub); } DistributedObjectStub* PlayerObjectImplementation::_getStub() { return _this.get(); } PlayerObjectImplementation::operator const PlayerObject*() { return _this.get(); } void PlayerObjectImplementation::lock(bool doLock) { _this.getReferenceUnsafeStaticCast()->lock(doLock); } void PlayerObjectImplementation::lock(ManagedObject* obj) { _this.getReferenceUnsafeStaticCast()->lock(obj); } void PlayerObjectImplementation::rlock(bool doLock) { _this.getReferenceUnsafeStaticCast()->rlock(doLock); } void PlayerObjectImplementation::wlock(bool doLock) { _this.getReferenceUnsafeStaticCast()->wlock(doLock); } void PlayerObjectImplementation::wlock(ManagedObject* obj) { _this.getReferenceUnsafeStaticCast()->wlock(obj); } void PlayerObjectImplementation::unlock(bool doLock) { _this.getReferenceUnsafeStaticCast()->unlock(doLock); } void PlayerObjectImplementation::runlock(bool doLock) { _this.getReferenceUnsafeStaticCast()->runlock(doLock); } void PlayerObjectImplementation::_serializationHelperMethod() { IntangibleObjectImplementation::_serializationHelperMethod(); _setClassName("PlayerObject"); } void PlayerObjectImplementation::readObject(ObjectInputStream* stream) { uint16 _varCount = stream->readShort(); for (int i = 0; i < _varCount; ++i) { String _name; _name.parseFromBinaryStream(stream); uint32 _varSize = stream->readInt(); int _currentOffset = stream->getOffset(); if(PlayerObjectImplementation::readObjectMember(stream, _name)) { } stream->setOffset(_currentOffset + _varSize); } initializeTransientMembers(); } bool PlayerObjectImplementation::readObjectMember(ObjectInputStream* stream, const String& _name) { if (IntangibleObjectImplementation::readObjectMember(stream, _name)) return true; if (_name == "PlayerObject.characterBitmask") { TypeInfo::parseFromBinaryStream(&characterBitmask, stream); return true; } if (_name == "PlayerObject.title") { TypeInfo::parseFromBinaryStream(&title, stream); return true; } if (_name == "PlayerObject.savedTerrainName") { TypeInfo::parseFromBinaryStream(&savedTerrainName, stream); return true; } if (_name == "PlayerObject.savedParentID") { TypeInfo::parseFromBinaryStream(&savedParentID, stream); return true; } if (_name == "PlayerObject.badges") { TypeInfo::parseFromBinaryStream(&badges, stream); return true; } if (_name == "PlayerObject.forcePower") { TypeInfo::parseFromBinaryStream(&forcePower, stream); return true; } if (_name == "PlayerObject.forcePowerMax") { TypeInfo::parseFromBinaryStream(&forcePowerMax, stream); return true; } if (_name == "PlayerObject.forcePowerRegen") { TypeInfo::parseFromBinaryStream(&forcePowerRegen, stream); return true; } if (_name == "PlayerObject.foodFilling") { TypeInfo::parseFromBinaryStream(&foodFilling, stream); return true; } if (_name == "PlayerObject.foodFillingMax") { TypeInfo::parseFromBinaryStream(&foodFillingMax, stream); return true; } if (_name == "PlayerObject.drinkFilling") { TypeInfo::parseFromBinaryStream(&drinkFilling, stream); return true; } if (_name == "PlayerObject.drinkFillingMax") { TypeInfo::parseFromBinaryStream(&drinkFillingMax, stream); return true; } if (_name == "PlayerObject.starterProfession") { TypeInfo::parseFromBinaryStream(&starterProfession, stream); return true; } if (_name == "PlayerObject.bankLocation") { TypeInfo::parseFromBinaryStream(&bankLocation, stream); return true; } if (_name == "PlayerObject.teleporting") { TypeInfo::parseFromBinaryStream(&teleporting, stream); return true; } if (_name == "PlayerObject.ownedStructures") { TypeInfo >::parseFromBinaryStream(&ownedStructures, stream); return true; } if (_name == "PlayerObject.ownedVendors") { TypeInfo >::parseFromBinaryStream(&ownedVendors, stream); return true; } if (_name == "PlayerObject.maximumLots") { TypeInfo::parseFromBinaryStream(&maximumLots, stream); return true; } if (_name == "PlayerObject.jediState") { TypeInfo::parseFromBinaryStream(&jediState, stream); return true; } if (_name == "PlayerObject.adminLevel") { TypeInfo::parseFromBinaryStream(&adminLevel, stream); return true; } if (_name == "PlayerObject.languageID") { TypeInfo::parseFromBinaryStream(&languageID, stream); return true; } if (_name == "PlayerObject.xpTypeCapList") { TypeInfo >::parseFromBinaryStream(&xpTypeCapList, stream); return true; } if (_name == "PlayerObject.commandMessageStrings") { TypeInfo >::parseFromBinaryStream(&commandMessageStrings, stream); return true; } if (_name == "PlayerObject.experienceList") { TypeInfo >::parseFromBinaryStream(&experienceList, stream); return true; } if (_name == "PlayerObject.waypointList") { TypeInfo::parseFromBinaryStream(&waypointList, stream); return true; } if (_name == "PlayerObject.abilityList") { TypeInfo::parseFromBinaryStream(&abilityList, stream); return true; } if (_name == "PlayerObject.friendList") { TypeInfo::parseFromBinaryStream(&friendList, stream); return true; } if (_name == "PlayerObject.ignoreList") { TypeInfo::parseFromBinaryStream(&ignoreList, stream); return true; } if (_name == "PlayerObject.factionStandingList") { TypeInfo::parseFromBinaryStream(&factionStandingList, stream); return true; } if (_name == "PlayerObject.schematicList") { TypeInfo::parseFromBinaryStream(&schematicList, stream); return true; } if (_name == "PlayerObject.incapacitationCounter") { TypeInfo::parseFromBinaryStream(&incapacitationCounter, stream); return true; } if (_name == "PlayerObject.suiBoxNextID") { TypeInfo::parseFromBinaryStream(&suiBoxNextID, stream); return true; } if (_name == "PlayerObject.suiBoxes") { TypeInfo > >::parseFromBinaryStream(&suiBoxes, stream); return true; } if (_name == "PlayerObject.chatRooms") { TypeInfo > >::parseFromBinaryStream(&chatRooms, stream); return true; } if (_name == "PlayerObject.bountyLockList") { TypeInfo::parseFromBinaryStream(&bountyLockList, stream); return true; } if (_name == "PlayerObject.declaredResidence") { TypeInfo::parseFromBinaryStream(&declaredResidence, stream); return true; } if (_name == "PlayerObject.cloningFacility") { TypeInfo::parseFromBinaryStream(&cloningFacility, stream); return true; } if (_name == "PlayerObject.persistentMessages") { TypeInfo >::parseFromBinaryStream(&persistentMessages, stream); return true; } if (_name == "PlayerObject.biography") { TypeInfo::parseFromBinaryStream(&biography, stream); return true; } if (_name == "PlayerObject.consentList") { TypeInfo >::parseFromBinaryStream(&consentList, stream); return true; } if (_name == "PlayerObject.lastNpcConvoMessage") { TypeInfo::parseFromBinaryStream(&lastNpcConvoMessage, stream); return true; } if (_name == "PlayerObject.lastNpcConvo") { TypeInfo::parseFromBinaryStream(&lastNpcConvo, stream); return true; } if (_name == "PlayerObject.lastNpcConvoOptions") { TypeInfo >::parseFromBinaryStream(&lastNpcConvoOptions, stream); return true; } if (_name == "PlayerObject.conversatingCreature") { TypeInfo::parseFromBinaryStream(&conversatingCreature, stream); return true; } if (_name == "PlayerObject.trainerCoordinates") { TypeInfo::parseFromBinaryStream(&trainerCoordinates, stream); return true; } if (_name == "PlayerObject.trainerZoneName") { TypeInfo::parseFromBinaryStream(&trainerZoneName, stream); return true; } if (_name == "PlayerObject.logoutTimeStamp") { TypeInfo