ManaPlus
inputcondition.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2012-2019 The ManaPlus Developers
4  *
5  * This file is part of The ManaPlus Client.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef ENUMS_INPUT_INPUTCONDITION_H
22 #define ENUMS_INPUT_INPUTCONDITION_H
23 
24 namespace InputCondition
25 {
26  enum Type
27  {
28  DEFAULT = 1U, // default condition
29  ENABLED = 2U, // keyboard must be enabled
30  NOINPUT = 4U, // input items must be unfocused
31  NOAWAY = 8U, // player not in away mode
32  NOSETUP = 16U, // setup window is hidde
33  VALIDSPEED = 32U, // valid speed
34  NOMODAL = 64U, // modal windows inactive
35  NONPCINPUT = 128U, // npc input field inactive
36  EMODS = 256U, // game modifiers enabled
37  NOTARGET = 512U, // no target/untarget keys
38  // pressed
39  NOFOLLOW = 1024U, // follow mode disabled
40  INGAME = 2048U, // game must be started
41  NOBUYSELL = 4096U, // no active buy or sell dialogs
42  NONPCDIALOG = 8192U, // no active npc dialog or
43  // dialog almost closed
44  NOTALKING = 16384U, // player have no opened
45  // dialogs what prevent moving
46  ALIVE = 32768U, // player alive
47  NOVENDING = 65536U, // vending disabled
48  NOROOM = 131072U, // not joined room
49  NOBLOCK = 262144U, // no blocked move (trick dead)
50  KEY_DOWN = 524288U, // key press allowed
51  KEY_UP = 1048576U, // key release allowed
52  SHORTCUT = 2U + 4 + 16 + 512 + 2048, // flags for shortcut keys
53  SHORTCUT0 = 2U + 4 + 16 + 512, // flags for shortcut keys
54  GAME = 2U + 4 + 8 + 16 + 64 + 2048, // main game key
55  GAME2 = 2U + 8 + 16 + 64 + 2048,
56  ARROWKEYS = 2U + 4 + 8 + 16 + 64 + 2048 + 4096 +
57  16384 + 65536 + 131072 + 262144
58  };
59 } // namespace InputCondition
60 
61 #endif // ENUMS_INPUT_INPUTCONDITION_H
InputCondition::NOTALKING
@ NOTALKING
Definition: inputcondition.h:44
InputCondition::Type
Type
Definition: inputcondition.h:26
InputCondition::SHORTCUT
@ SHORTCUT
Definition: inputcondition.h:52
InputCondition::NOFOLLOW
@ NOFOLLOW
Definition: inputcondition.h:39
InputCondition::EMODS
@ EMODS
Definition: inputcondition.h:36
InputCondition::VALIDSPEED
@ VALIDSPEED
Definition: inputcondition.h:33
InputCondition::NOTARGET
@ NOTARGET
Definition: inputcondition.h:37
InputCondition::KEY_UP
@ KEY_UP
Definition: inputcondition.h:51
InputCondition::NOAWAY
@ NOAWAY
Definition: inputcondition.h:31
InputCondition::NOVENDING
@ NOVENDING
Definition: inputcondition.h:47
InputCondition::INGAME
@ INGAME
Definition: inputcondition.h:40
InputCondition::NOINPUT
@ NOINPUT
Definition: inputcondition.h:30
InputCondition::GAME
@ GAME
Definition: inputcondition.h:54
InputCondition::NOMODAL
@ NOMODAL
Definition: inputcondition.h:34
InputCondition::SHORTCUT0
@ SHORTCUT0
Definition: inputcondition.h:53
InputCondition::NONPCINPUT
@ NONPCINPUT
Definition: inputcondition.h:35
InputCondition::GAME2
@ GAME2
Definition: inputcondition.h:55
InputCondition::NOBUYSELL
@ NOBUYSELL
Definition: inputcondition.h:41
InputCondition::NONPCDIALOG
@ NONPCDIALOG
Definition: inputcondition.h:42
InputCondition::DEFAULT
@ DEFAULT
Definition: inputcondition.h:28
InputCondition::ENABLED
@ ENABLED
Definition: inputcondition.h:29
InputCondition::NOROOM
@ NOROOM
Definition: inputcondition.h:48
InputCondition::NOSETUP
@ NOSETUP
Definition: inputcondition.h:32
InputCondition::ARROWKEYS
@ ARROWKEYS
Definition: inputcondition.h:56
InputCondition::KEY_DOWN
@ KEY_DOWN
Definition: inputcondition.h:50
InputCondition::ALIVE
@ ALIVE
Definition: inputcondition.h:46
InputCondition
Definition: inputcondition.h:24
InputCondition::NOBLOCK
@ NOBLOCK
Definition: inputcondition.h:49