ScummVM API documentation
state.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
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 3 of the License, or
10  * (at your option) 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 
22 #ifndef QUEEN_STATE_H
23 #define QUEEN_STATE_H
24 
25 #include "common/util.h"
26 #include "queen/defs.h"
27 
28 namespace Queen {
29 
30 
31 enum StateTalk {
32  STATE_TALK_TALK,
33  STATE_TALK_MUTE
34 };
35 
36 enum StateGrab {
37  STATE_GRAB_NONE,
38  STATE_GRAB_DOWN,
39  STATE_GRAB_UP,
40  STATE_GRAB_MID
41 };
42 
43 enum StateOn {
44  STATE_ON_ON,
45  STATE_ON_OFF
46 };
47 
48 enum StateUse {
49  STATE_USE,
50  STATE_USE_ON
51 };
52 
53 
96 struct State {
97 
98  static Direction findDirection(uint16 state);
99  static StateTalk findTalk(uint16 state);
100  static StateGrab findGrab(uint16 state);
101  static StateOn findOn(uint16 state);
102  static Verb findDefaultVerb(uint16 state);
103  static StateUse findUse(uint16 state);
104 
105  static void alterOn(uint16 *objState, StateOn state);
106  static void alterDefaultVerb(uint16 *objState, Verb v);
107 };
108 
109 
110 } // End of namespace Queen
111 
112 #endif
Definition: bankman.h:28
Definition: state.h:96