ManaPlus
playerhandler.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2004-2009 The Mana World Development Team
4  * Copyright (C) 2009-2010 The Mana Developers
5  * Copyright (C) 2011-2019 The ManaPlus Developers
6  * Copyright (C) 2019-2021 Andrei Karas
7  *
8  * This file is part of The ManaPlus Client.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef NET_TMWA_PLAYERHANDLER_H
25 #define NET_TMWA_PLAYERHANDLER_H
26 
27 #include "net/ea/playerhandler.h"
28 
29 namespace TmwAthena
30 {
31 
33 {
34  public:
35  PlayerHandler();
36 
38 
39  ~PlayerHandler() override final;
40 
41  void attack(const BeingId id,
42  const Keep keep) const override final;
43  void stopAttack() const override final;
44  void emote(const uint8_t emoteId) const override final;
45 
46  void increaseAttribute(const AttributesT attr,
47  const int amount) const override final;
48  void increaseSkill(const uint16_t skillId) const override final;
49 
50  void pickUp(const FloorItem *const floorItem) const override final;
51  void setDirection(const unsigned char direction) const override final;
52  void setDestination(const int x, const int y,
53  const int direction) const override final;
54  void changeAction(const BeingActionT &action)
55  const override final;
56  void requestOnlineList() const override final;
57  void updateStatus(const uint8_t status) const override final;
58 
59  void respawn() const override final;
60 
61  void setShortcut(const int idx,
62  const int tab,
63  const uint8_t type,
64  const int id,
65  const int level) const override final;
66 
67  void shortcutShiftRow(const int row,
68  const int tab) const override final;
69 
70  void removeOption() const override final;
71 
72  void changeCart(const int type) const override final;
73 
74  void setMemo() const override final;
75 
76  void doriDori() const override final;
77 
78  void explosionSpirits() const override final;
79 
80  void requestPvpInfo() const override final;
81 
82  void revive() const override final;
83 
84  void setConfigOption(const int id A_UNUSED,
85  const int data A_UNUSED) const override final;
86 
87  void selectStyle(const int headColor,
88  const int headStyle,
89  const int bodyColor,
90  const int topStyle,
91  const int middleStyle,
92  const int bottomStyle,
93  const int bodyStyle) const override final;
94 
96  const int type,
97  const int64_t base,
98  const int mod,
99  const Notify notify) const override final;
100 
101  void setTitle(const int titleId) const override final;
102 
103  void closeStyleWindow() const override final;
104 };
105 
106 } // namespace TmwAthena
107 
108 #endif // NET_TMWA_PLAYERHANDLER_H
Attributes ::T AttributesT
Definition: attributes.h:118
BeingAction ::T BeingActionT
Definition: beingaction.h:41
int BeingId
Definition: beingid.h:30
void attack(const BeingId id, const Keep keep) const
void setDestination(const int x, const int y, const int direction) const
void setDirection(const unsigned char direction) const
void setTitle(const int titleId) const
void increaseSkill(const uint16_t skillId) const
void setShortcut(const int idx, const int tab, const uint8_t type, const int id, const int level) const
void shortcutShiftRow(const int row, const int tab) const
void emote(const uint8_t emoteId) const
void changeAction(const BeingActionT &action) const
void updateStatus(const uint8_t status) const
void setStat(Net::MessageIn &msg, const int type, const int64_t base, const int mod, const Notify notify) const
void selectStyle(const int headColor, const int headStyle, const int bodyColor, const int topStyle, const int middleStyle, const int bottomStyle, const int bodyStyle) const
void changeCart(const int type) const
void setConfigOption(const int id, const int data) const
void increaseAttribute(const AttributesT attr, const int amount) const
void pickUp(const FloorItem *const floorItem) const
bool Keep
Definition: keep.h:30
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53
#define A_UNUSED
Definition: localconsts.h:160
uint32_t data
bool msg(InputEvent &event)
Definition: chat.cpp:39
void notify(const unsigned int message)
bool Notify
Definition: notify.h:30