ScummVM API documentation
message.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 WATCHMAKER_MESSAGE_H
23#define WATCHMAKER_MESSAGE_H
24
25namespace Watchmaker {
26
27// DEFINIZIONI MESSAGGI
28
29// PRIORITA'
30#define MP_DEFAULT 0 // Deafault
31#define MP_CLEARA 1 // Fa partire tutti gli eventi che aspettano A
32#define MP_WAITA 2 // Aspetta A
33
34#define MP_WAIT_LINK 4 // Apetta di ricevere un link dall'animazione che da il tempo
35#define MP_WAIT_ACT 8 // Apetta la fine di una camminata o corsa o azione
36#define MP_WAIT_ANIM 16 // Apetta la fine di una animazione
37#define MP_WAIT_CAMERA 32 // Aspetta la fine del percorso della camera
38#define MP_WAIT_PORTAL 64 // Aspetta il passaggio del portale
39#define MP_WAIT_RETRACE 128 // Aspetta il Refresh del video
40
41// PARAMETRI EXTRA
42#define MPX_START_T2D_SAVE 1
43#define MPX_START_T2D_LOAD 2
44#define MPX_START_T2D_OPTIONS 3
45
46// IDLE
47#define ME_CURCHAR 254
48#define ME_ALL 255
49
50// MOUSE
51#define ME_MOUSEUPDATE 1
52#define ME_MLEFT 2
53#define ME_MRIGHT 3
54#define ME_MOUSEHIDE 4
55#define ME_MOUSEUNHIDE 5
56#define ME_MLEFTPRESSED 6
57#define ME_MRIGHTPRESSED 7
58
59// SYSTEM
60enum EventClass {
61 MC_IDLE = 0,
62 MC_MOUSE = 1,
63 MC_SYSTEM = 2,
64 MC_CAMERA = 3,
65 MC_STRING = 4,
66 MC_ACTION = 5,
67 MC_PLAYER = 6,
68 MC_INVENTORY = 7,
69 MC_DIALOG = 8,
70 MC_ANIM = 9,
71 MC_T2D = 10
72};
73
74enum SystemEvent {
75 ME_QUIT = 1,
76 ME_START = 2,
77 ME_CHANGEROOM = 3,
78 ME_CHANGEPLAYER = 4,
79 ME_STARTEFFECT = 5,
80 ME_CONTINUEEFFECT = 6,
81 ME_STOPEFFECT = 7,
82 ME_PLAYERTIMER = 8
83};
84
85// CAMERAS
86#define ME_SETCAMERA 1
87#define ME_CAMERAUPDATE 2
88#define ME_SOURCEAT 3
89#define ME_TARGETAT 4
90#define ME_CHECKDISTANCE 5
91#define ME_MOVECAMERATO 6
92#define ME_INVALIDATECAMERA 7
93#define ME_CAMERAGOTO 8
94#define ME_SAVECAMERAPOS 9
95#define ME_RESTORECAMERAPOS 10
96#define ME_CAMERA3TO1 11
97#define ME_CAMERA1TO3 12
98#define ME_CAMERAPLAYER 13
99
100// STRINGS
101#define ME_PLAYERSPEAK 1
102#define ME_PLAYERCONTINUESPEAK 2 //aspetta che finisca il tempo della frase
103#define ME_PLAYERCONTINUESPEAK_WAITWAVE 3 //aspetta che finisca il suono associato alla frase
104
105// ACTION
106#define ME_MOUSEOPERATE 1
107#define ME_MOUSEEXAMINE 2
108#define ME_INVOPERATE 3
109#define ME_INVEXAMINE 4
110#define ME_USEWITH 5
111
112// MAINC
113#define ME_PLAYERGOTO 1
114#define ME_PLAYERGOTOEXAMINE 2
115#define ME_PLAYERGOTOACTION 3
116#define ME_PLAYERGOTOEXIT 4
117#define ME_PLAYERIDLE 5
118#define ME_PLAYERGOTONOSKIP 6
119
120// INVENTORY
121#define ME_EXAMINEICON 1
122#define ME_OPERATEICON 2
123#define ME_INVOFF 3
124#define ME_INVMODE1 4
125#define ME_INVMODE2 5
126#define ME_INVMODE3 6
127#define ME_INVMODE4 7
128#define ME_INVSWITCH 8
129
130// DIALOG
131#define ME_DIALOGSTART 1
132#define ME_DIALOGCONTINUE 2
133#define ME_DIALOGEND 3
134#define ME_DIALOGEND_SKIPINTRO 4
135
136// ANIM
137#define ME_STARTANIM 1
138#define ME_STOPANIM 2
139#define ME_PAUSEANIM 3
140#define ME_CONTINUEANIM 4
141
142// T2D
143#define ME_T2DSTART 1
144#define ME_T2DSTOP 2
145#define ME_T2DCONTINUE 3
146#define ME_T2DSETBITMAP 4
147#define ME_T2DSETBUTTON 5
148#define ME_T2DSETWINDOW 6
149#define ME_T2DSWAPWINDOWS 7
150
151} // End of namespace Watchmaker
152
153#endif // WATCHMAKER_MESSAGE_H