ManaPlus
inputcondition.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2012-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 ENUMS_INPUT_INPUTCONDITION_H
23 #define ENUMS_INPUT_INPUTCONDITION_H
24 
25 namespace InputCondition
26 {
27  enum Type
28  {
29  DEFAULT = 1U, // default condition
30  ENABLED = 2U, // keyboard must be enabled
31  NOINPUT = 4U, // input items must be unfocused
32  NOAWAY = 8U, // player not in away mode
33  NOSETUP = 16U, // setup window is hidde
34  VALIDSPEED = 32U, // valid speed
35  NOMODAL = 64U, // modal windows inactive
36  NONPCINPUT = 128U, // npc input field inactive
37  EMODS = 256U, // game modifiers enabled
38  NOTARGET = 512U, // no target/untarget keys
39  // pressed
40  NOFOLLOW = 1024U, // follow mode disabled
41  INGAME = 2048U, // game must be started
42  NOBUYSELL = 4096U, // no active buy or sell dialogs
43  NONPCDIALOG = 8192U, // no active npc dialog or
44  // dialog almost closed
45  NOTALKING = 16384U, // player have no opened
46  // dialogs what prevent moving
47  ALIVE = 32768U, // player alive
48  NOVENDING = 65536U, // vending disabled
49  NOROOM = 131072U, // not joined room
50  NOBLOCK = 262144U, // no blocked move (trick dead)
51  KEY_DOWN = 524288U, // key press allowed
52  KEY_UP = 1048576U, // key release allowed
53  SHORTCUT = 2U + 4 + 16 + 512 + 2048, // flags for shortcut keys
54  SHORTCUT0 = 2U + 4 + 16 + 512, // flags for shortcut keys
55  GAME = 2U + 4 + 8 + 16 + 64 + 2048, // main game key
56  GAME2 = 2U + 8 + 16 + 64 + 2048,
57  ARROWKEYS = 2U + 4 + 8 + 16 + 64 + 2048 + 4096 +
58  16384 + 65536 + 131072 + 262144
59  };
60 } // namespace InputCondition
61 
62 #endif // ENUMS_INPUT_INPUTCONDITION_H