ManaPlus
actions.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2011-2019 The ManaPlus Developers
4  * Copyright (C) 2019-2021 Andrei Karas
5  *
6  * This file is part of The ManaPlus Client.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef ACTIONS_ACTIONS_H
23 #define ACTIONS_ACTIONS_H
24 
25 #include "localconsts.h"
26 
27 #define decHandler(name) bool name(InputEvent &event)
28 
29 struct InputEvent;
30 
31 namespace Actions
32 {
36  decHandler(ok);
52  decHandler(sit);
56  decHandler(buy);
69  decHandler(who);
85 #ifndef BAD_CILKPLUS
86  __attribute__ ((noreturn))
87 #endif // BAD_CILKPLUS
88  ;
95 #if defined USE_OPENGL && defined DEBUG_SDLFONT
96  decHandler(testSdlFont);
97 #endif // defined USE_OPENGL && defined DEBUG_SDLFONT
98 
115  decHandler(kick);
121  decHandler(seen);
124 } // namespace Actions
125 
126 #undef decHandler
127 
128 #endif // ACTIONS_ACTIONS_H
#define decHandler(name)
Definition: actions.h:27
bool kick(InputEvent &event)
Definition: actions.cpp:111
bool dumpGL(InputEvent &event)
Definition: actions.cpp:90
bool uploadConfig(InputEvent &event)
Definition: actions.cpp:97
bool where(InputEvent &event)
Definition: actions.cpp:67
bool serverUnIgnoreAll(InputEvent &event)
Definition: actions.cpp:81
bool quit(InputEvent &event)
Definition: actions.cpp:36
bool cleanFonts(InputEvent &event)
Definition: actions.cpp:70
bool cacheInfo(InputEvent &event)
Definition: actions.cpp:74
bool undress(InputEvent &event)
Definition: actions.cpp:76
bool craftKey(InputEvent &event)
Definition: actions.cpp:114
bool dumpMods(InputEvent &event)
Definition: actions.cpp:91
bool dropItemIdAll(InputEvent &event)
Definition: actions.cpp:41
bool dumpMemoryUsage(InputEvent &event)
Definition: actions.cpp:118
bool dumpOGL(InputEvent &event)
Definition: actions.cpp:89
bool serverIgnoreAll(InputEvent &event)
Definition: actions.cpp:80
bool untarget(InputEvent &event)
Definition: actions.cpp:57
bool heal(InputEvent &event)
Definition: actions.cpp:43
bool shortcut(InputEvent &event)
Definition: actions.cpp:35
bool copyEquippedToOutfit(InputEvent &event)
Definition: actions.cpp:48
bool ipcToggle(InputEvent &event)
Definition: actions.cpp:66
bool stopAttack(InputEvent &event)
Definition: actions.cpp:56
bool seen(InputEvent &event)
Definition: actions.cpp:117
bool ignoreInput(InputEvent &event)
Definition: actions.cpp:52
bool mouseClick(InputEvent &event)
Definition: actions.cpp:33
bool openTrade(InputEvent &event)
Definition: actions.cpp:65
bool uploadLog(InputEvent &event)
Definition: actions.cpp:99
bool mercenaryToMaster(InputEvent &event)
Definition: actions.cpp:101
bool buy(InputEvent &event)
Definition: actions.cpp:53
bool priceLoad(InputEvent &event)
Definition: actions.cpp:72
bool resetGameModifiers(InputEvent &event)
Definition: actions.cpp:115
bool targetAttack(InputEvent &event)
Definition: actions.cpp:59
bool who(InputEvent &event)
Definition: actions.cpp:68
bool testInfo(InputEvent &event)
Definition: actions.cpp:113
bool screenshot(InputEvent &event)
Definition: actions.cpp:51
bool clearDrop(InputEvent &event)
Definition: actions.cpp:112
bool talk(InputEvent &event)
Definition: actions.cpp:55
bool attackHuman(InputEvent &event)
Definition: actions.cpp:60
bool dirs(InputEvent &event)
Definition: actions.cpp:77
bool cleanGraphics(InputEvent &event)
Definition: actions.cpp:69
bool storageToInv(InputEvent &event)
Definition: actions.cpp:108
bool useItemInv(InputEvent &event)
Definition: actions.cpp:105
bool outfit(InputEvent &event)
Definition: actions.cpp:32
bool setHome(InputEvent &event)
Definition: actions.cpp:46
bool uploadServerConfig(InputEvent &event)
Definition: actions.cpp:98
bool dumpGraphics(InputEvent &event)
Definition: actions.cpp:86
bool showKeyboard(InputEvent &event)
Definition: actions.cpp:63
bool setEmoteType(InputEvent &event)
Definition: actions.cpp:119
bool invToStorage(InputEvent &event)
Definition: actions.cpp:106
bool itenplz(InputEvent &event)
Definition: actions.cpp:45
bool homunculusFeed(InputEvent &event)
Definition: actions.cpp:103
bool dumpTests(InputEvent &event)
Definition: actions.cpp:88
bool dropItem0(InputEvent &event)
Definition: actions.cpp:37
bool dropItemInvAll(InputEvent &event)
Definition: actions.cpp:42
bool attack(InputEvent &event)
Definition: actions.cpp:58
bool healmd(InputEvent &event)
Definition: actions.cpp:44
bool stopSit(InputEvent &event)
Definition: actions.cpp:62
bool uptime(InputEvent &event)
Definition: actions.cpp:78
bool safeVideoMode(InputEvent &event)
Definition: actions.cpp:61
bool showWindows(InputEvent &event)
Definition: actions.cpp:64
bool sell(InputEvent &event)
Definition: actions.cpp:54
bool trade(InputEvent &event)
Definition: actions.cpp:71
bool unprotectItem(InputEvent &event)
Definition: actions.cpp:110
bool priceSave(InputEvent &event)
Definition: actions.cpp:73
bool error(InputEvent &event) __attribute__((noreturn))
Definition: actions.cpp:82
bool magicAttack(InputEvent &event)
Definition: actions.cpp:47
bool mercenaryFire(InputEvent &event)
Definition: actions.cpp:100
bool ok(InputEvent &event)
Definition: actions.cpp:34
bool emote(InputEvent &event)
Definition: actions.cpp:31
bool tradeAdd(InputEvent &event)
Definition: actions.cpp:107
bool barToChat(InputEvent &event)
Definition: actions.cpp:116
bool dropItem(InputEvent &event)
Definition: actions.cpp:38
bool createItem(InputEvent &event)
Definition: actions.cpp:96
bool createItems(InputEvent &event)
Definition: actions.cpp:95
bool homunculusToMaster(InputEvent &event)
Definition: actions.cpp:102
bool useItem(InputEvent &event)
Definition: actions.cpp:104
bool protectItem(InputEvent &event)
Definition: actions.cpp:109
bool disconnect(InputEvent &event)
Definition: actions.cpp:75
bool dropItemId(InputEvent &event)
Definition: actions.cpp:39
bool dumpEnvironment(InputEvent &event)
Definition: actions.cpp:87
bool dump(InputEvent &event)
Definition: actions.cpp:79
bool dropItemInv(InputEvent &event)
Definition: actions.cpp:40
bool pickup(InputEvent &event)
Definition: actions.cpp:49
bool sit(InputEvent &event)
Definition: actions.cpp:50
union EAthena::ItemFlags __attribute__((packed))