|
| | Game () |
| |
| void | init () |
| |
| void | terminate () |
| |
| void | loginWorld (const std::string &account, const std::string &password, const std::string &worldName, const std::string &worldHost, int worldPort, const std::string &characterName, const std::string &authenticatorToken, const std::string &sessionKey) |
| |
| void | cancelLogin () |
| |
| void | forceLogout () |
| |
| void | safeLogout () |
| |
| bool | walk (Otc::Direction direction) |
| |
| void | autoWalk (std::vector< Otc::Direction > dirs) |
| |
| void | forceWalk (Otc::Direction direction) |
| |
| void | turn (Otc::Direction direction) |
| |
| void | stop () |
| |
| void | look (const ThingPtr &thing, bool isBattleList=false) |
| |
| void | move (const ThingPtr &thing, const Position &toPos, int count) |
| |
| void | moveToParentContainer (const ThingPtr &thing, int count) |
| |
| void | rotate (const ThingPtr &thing) |
| |
| void | use (const ThingPtr &thing) |
| |
| void | useWith (const ItemPtr &item, const ThingPtr &toThing) |
| |
| void | useInventoryItem (int itemId) |
| |
| void | useInventoryItemWith (int itemId, const ThingPtr &toThing) |
| |
| ItemPtr | findItemInContainers (uint itemId, int subType) |
| |
| int | open (const ItemPtr &item, const ContainerPtr &previousContainer) |
| |
| void | openParent (const ContainerPtr &container) |
| |
| void | close (const ContainerPtr &container) |
| |
| void | refreshContainer (const ContainerPtr &container) |
| |
| void | attack (CreaturePtr creature) |
| |
| void | cancelAttack () |
| |
| void | follow (CreaturePtr creature) |
| |
| void | cancelFollow () |
| |
| void | cancelAttackAndFollow () |
| |
| void | talk (const std::string &message) |
| |
| void | talkChannel (Otc::MessageMode mode, int channelId, const std::string &message) |
| |
| void | talkPrivate (Otc::MessageMode mode, const std::string &receiver, const std::string &message) |
| |
| void | openPrivateChannel (const std::string &receiver) |
| |
| void | requestChannels () |
| |
| void | joinChannel (int channelId) |
| |
| void | leaveChannel (int channelId) |
| |
| void | closeNpcChannel () |
| |
| void | openOwnChannel () |
| |
| void | inviteToOwnChannel (const std::string &name) |
| |
| void | excludeFromOwnChannel (const std::string &name) |
| |
| void | partyInvite (int creatureId) |
| |
| void | partyJoin (int creatureId) |
| |
| void | partyRevokeInvitation (int creatureId) |
| |
| void | partyPassLeadership (int creatureId) |
| |
| void | partyLeave () |
| |
| void | partyShareExperience (bool active) |
| |
| void | requestOutfit () |
| |
| void | changeOutfit (const Outfit &outfit) |
| |
| void | addVip (const std::string &name) |
| |
| void | removeVip (int playerId) |
| |
| void | editVip (int playerId, const std::string &description, int iconId, bool notifyLogin) |
| |
| void | setChaseMode (Otc::ChaseModes chaseMode) |
| |
| void | setFightMode (Otc::FightModes fightMode) |
| |
| void | setSafeFight (bool on) |
| |
| void | setPVPMode (Otc::PVPModes pvpMode) |
| |
| Otc::ChaseModes | getChaseMode () |
| |
| Otc::FightModes | getFightMode () |
| |
| bool | isSafeFight () |
| |
| Otc::PVPModes | getPVPMode () |
| |
| void | setUnjustifiedPoints (UnjustifiedPoints unjustifiedPoints) |
| |
| UnjustifiedPoints | getUnjustifiedPoints () |
| |
| void | setOpenPvpSituations (int openPvpSituations) |
| |
| int | getOpenPvpSituations () |
| |
| void | inspectNpcTrade (const ItemPtr &item) |
| |
| void | buyItem (const ItemPtr &item, int amount, bool ignoreCapacity, bool buyWithBackpack) |
| |
| void | sellItem (const ItemPtr &item, int amount, bool ignoreEquipped) |
| |
| void | closeNpcTrade () |
| |
| void | requestTrade (const ItemPtr &item, const CreaturePtr &creature) |
| |
| void | inspectTrade (bool counterOffer, int index) |
| |
| void | acceptTrade () |
| |
| void | rejectTrade () |
| |
| void | editText (uint id, const std::string &text) |
| |
| void | editList (uint id, int doorId, const std::string &text) |
| |
| void | openRuleViolation (const std::string &reporter) |
| |
| void | closeRuleViolation (const std::string &reporter) |
| |
| void | cancelRuleViolation () |
| |
| void | reportBug (const std::string &comment) |
| |
| void | reportRuleViolation (const std::string &target, int reason, int action, const std::string &comment, const std::string &statement, int statementId, bool ipBanishment) |
| |
| void | debugReport (const std::string &a, const std::string &b, const std::string &c, const std::string &d) |
| |
| void | requestQuestLog () |
| |
| void | requestQuestLine (int questId) |
| |
| void | equipItem (const ItemPtr &item) |
| |
| void | mount (bool mount) |
| |
| void | requestItemInfo (const ItemPtr &item, int index) |
| |
| void | answerModalDialog (uint32 dialog, int button, int choice) |
| |
| void | browseField (const Position &position) |
| |
| void | seekInContainer (int cid, int index) |
| |
| void | buyStoreOffer (int offerId, int productType, const std::string &name="") |
| |
| void | requestTransactionHistory (int page, int entriesPerPage) |
| |
| void | requestStoreOffers (const std::string &categoryName, int serviceType=0) |
| |
| void | openStore (int serviceType=0, const std::string &category="") |
| |
| void | transferCoins (const std::string &recipient, int amount) |
| |
| void | openTransactionHistory (int entriesPerPage) |
| |
| void | ping () |
| |
| void | setPingDelay (int delay) |
| |
| void | changeMapAwareRange (int xrange, int yrange) |
| |
| void | enableFeature (Otc::GameFeature feature) |
| |
| void | disableFeature (Otc::GameFeature feature) |
| |
| void | setFeature (Otc::GameFeature feature, bool enabled) |
| |
| bool | getFeature (Otc::GameFeature feature) |
| |
| void | setProtocolVersion (int version) |
| |
| int | getProtocolVersion () |
| |
| void | setClientVersion (int version) |
| |
| int | getClientVersion () |
| |
| void | setCustomOs (int os) |
| |
| int | getOs () |
| |
| bool | canPerformGameAction () |
| |
| bool | checkBotProtection () |
| |
| bool | isOnline () |
| |
| bool | isLogging () |
| |
| bool | isDead () |
| |
| bool | isAttacking () |
| |
| bool | isFollowing () |
| |
| bool | isConnectionOk () |
| |
| int | getPing () |
| |
| ContainerPtr | getContainer (int index) |
| |
| std::map< int, ContainerPtr > | getContainers () |
| |
| std::map< int, Vip > | getVips () |
| |
| CreaturePtr | getAttackingCreature () |
| |
| CreaturePtr | getFollowingCreature () |
| |
| void | setServerBeat (int beat) |
| |
| int | getServerBeat () |
| |
| void | setCanReportBugs (bool enable) |
| |
| bool | canReportBugs () |
| |
| void | setExpertPvpMode (bool enable) |
| |
| bool | getExpertPvpMode () |
| |
| LocalPlayerPtr | getLocalPlayer () |
| |
| ProtocolGamePtr | getProtocolGame () |
| |
| std::string | getCharacterName () |
| |
| std::string | getWorldName () |
| |
| std::vector< uint8 > | getGMActions () |
| |
| bool | isGM () |
| |
| Otc::Direction | getLastWalkDir () |
| |
| std::string | formatCreatureName (const std::string &name) |
| |
| int | findEmptyContainerId () |
| |
|
| void | processConnectionError (const boost::system::error_code &ec) |
| |
| void | processDisconnect () |
| |
| void | processPing () |
| |
| void | processPingBack () |
| |
| void | processPendingGame () |
| |
| void | processEnterGame () |
| |
| void | processGameStart () |
| |
| void | processGameEnd () |
| |
| void | processDeath (int deathType, int penality) |
| |
| void | processGMActions (const std::vector< uint8 > &actions) |
| |
| void | processInventoryChange (int slot, const ItemPtr &item) |
| |
| void | processAttackCancel (uint seq) |
| |
| void | processWalkCancel (Otc::Direction direction) |
| |
| void | processPlayerModes (Otc::FightModes fightMode, Otc::ChaseModes chaseMode, bool safeMode, Otc::PVPModes pvpMode) |
| |
| void | processOpenContainer (int containerId, const ItemPtr &containerItem, const std::string &name, int capacity, bool hasParent, const std::vector< ItemPtr > &items, bool isUnlocked, bool hasPages, int containerSize, int firstIndex) |
| |
| void | processCloseContainer (int containerId) |
| |
| void | processContainerAddItem (int containerId, const ItemPtr &item, int slot) |
| |
| void | processContainerUpdateItem (int containerId, int slot, const ItemPtr &item) |
| |
| void | processContainerRemoveItem (int containerId, int slot, const ItemPtr &lastItem) |
| |
| void | processVipAdd (uint id, const std::string &name, uint status, const std::string &description, int iconId, bool notifyLogin) |
| |
| void | processVipStateChange (uint id, uint status) |
| |
| void | processOpenOutfitWindow (const Outfit ¤tOutfit, const std::vector< std::tuple< int, std::string, int > > &outfitList, const std::vector< std::tuple< int, std::string > > &mountList) |
| |
| void | enableBotCall () |
| |
| void | disableBotCall () |
| |
|
| static void | processUpdateNeeded (const std::string &signature) |
| |
| static void | processLoginError (const std::string &error) |
| |
| static void | processLoginAdvice (const std::string &message) |
| |
| static void | processLoginWait (const std::string &message, int time) |
| |
| static void | processLoginToken (bool unknown) |
| |
| static void | processLogin () |
| |
| static void | processPlayerHelpers (int helpers) |
| |
| static void | processTextMessage (Otc::MessageMode mode, const std::string &text) |
| |
| static void | processTalk (const std::string &name, int level, Otc::MessageMode mode, const std::string &text, int channelId, const Position &pos) |
| |
| static void | processChannelList (const std::vector< std::tuple< int, std::string > > &channelList) |
| |
| static void | processOpenChannel (int channelId, const std::string &name) |
| |
| static void | processOpenPrivateChannel (const std::string &name) |
| |
| static void | processOpenOwnPrivateChannel (int channelId, const std::string &name) |
| |
| static void | processCloseChannel (int channelId) |
| |
| static void | processRuleViolationChannel (int channelId) |
| |
| static void | processRuleViolationRemove (const std::string &name) |
| |
| static void | processRuleViolationCancel (const std::string &name) |
| |
| static void | processRuleViolationLock () |
| |
| static void | processTutorialHint (int id) |
| |
| static void | processAddAutomapFlag (const Position &pos, int icon, const std::string &message) |
| |
| static void | processRemoveAutomapFlag (const Position &pos, int icon, const std::string &message) |
| |
| static void | processOpenNpcTrade (const std::vector< std::tuple< ItemPtr, std::string, int, int, int > > &items) |
| |
| static void | processPlayerGoods (int money, const std::vector< std::tuple< ItemPtr, int > > &goods) |
| |
| static void | processCloseNpcTrade () |
| |
| static void | processOwnTrade (const std::string &name, const std::vector< ItemPtr > &items) |
| |
| static void | processCounterTrade (const std::string &name, const std::vector< ItemPtr > &items) |
| |
| static void | processCloseTrade () |
| |
| static void | processEditText (uint id, int itemId, int maxLength, const std::string &text, const std::string &writer, const std::string &date) |
| |
| static void | processEditList (uint id, int doorId, const std::string &text) |
| |
| static void | processQuestLog (const std::vector< std::tuple< int, std::string, bool > > &questList) |
| |
| static void | processQuestLine (int questId, const std::vector< std::tuple< std::string, std::string > > &questMissions) |
| |
| static void | processModalDialog (uint32 id, const std::string &title, const std::string &message, const std::vector< std::tuple< int, std::string > > &buttonList, int enterButton, int escapeButton, const std::vector< std::tuple< int, std::string > > &choiceList, bool priority) |
| |
Definition at line 62 of file game.h.