ScummVM API documentation
pet_messages.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 TITANIC_PET_MESSAGES_H
23 #define TITANIC_PET_MESSAGES_H
24 
25 #include "titanic/messages/messages.h"
26 
27 namespace Titanic {
28 
29 MESSAGE0(CPETDeliverMsg);
30 MESSAGE0(CPETGainedObjectMsg);
31 MESSAGE0(CPETHelmetOnOffMsg);
32 MESSAGE0(CPETKeyboardOnOffMsg);
33 MESSAGE0(CPETLostObjectMsg);
34 MESSAGE0(CPETObjectSelectedMsg);
35 MESSAGE1(CPETObjectStateMsg, int, value, 0);
36 MESSAGE0(CPETPhotoOnOffMsg);
37 MESSAGE1(CPETPlaySoundMsg, int, soundNum, 0);
38 MESSAGE0(CPETReceiveMsg);
39 MESSAGE0(CPETSetStarDestinationMsg);
40 MESSAGE1(CPETStarFieldLockMsg, int, value, 0);
41 MESSAGE0(CPETStereoFieldOnOffMsg);
42 MESSAGE2(CPETTargetMsg, CString, name, "", int, numValue, -1);
43 
44 #define PET_MESSAGE(NAME) \
45  class NAME: public CPETTargetMsg { \
46  public: \
47  NAME() : CPETTargetMsg() {} \
48  NAME(const CString &name, int num) : CPETTargetMsg(name, num) {} \
49  CLASSDEF; \
50  static bool isSupportedBy(const CTreeItem *item) { \
51  return supports(item, _type); \
52  } \
53 }
54 
55 PET_MESSAGE(CPETDownMsg);
56 PET_MESSAGE(CPETUpMsg);
57 PET_MESSAGE(CPETLeftMsg);
58 PET_MESSAGE(CPETRightMsg);
59 PET_MESSAGE(CPETActivateMsg);
60 
61 } // End of namespace Titanic
62 
63 #endif /* TITANIC_PET_MESSAGES_H */
Definition: pet_messages.h:55
Definition: pet_messages.h:59
Definition: pet_messages.h:58
Definition: pet_messages.h:57
Definition: arm.h:30
Definition: pet_messages.h:56