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
27namespace Titanic {
28
29MESSAGE0(CPETDeliverMsg);
30MESSAGE0(CPETGainedObjectMsg);
31MESSAGE0(CPETHelmetOnOffMsg);
32MESSAGE0(CPETKeyboardOnOffMsg);
33MESSAGE0(CPETLostObjectMsg);
34MESSAGE0(CPETObjectSelectedMsg);
35MESSAGE1(CPETObjectStateMsg, int, value, 0);
36MESSAGE0(CPETPhotoOnOffMsg);
37MESSAGE1(CPETPlaySoundMsg, int, soundNum, 0);
38MESSAGE0(CPETReceiveMsg);
39MESSAGE0(CPETSetStarDestinationMsg);
40MESSAGE1(CPETStarFieldLockMsg, int, value, 0);
41MESSAGE0(CPETStereoFieldOnOffMsg);
42MESSAGE2(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
55PET_MESSAGE(CPETDownMsg);
56PET_MESSAGE(CPETUpMsg);
57PET_MESSAGE(CPETLeftMsg);
58PET_MESSAGE(CPETRightMsg);
59PET_MESSAGE(CPETActivateMsg);
60
61} // End of namespace Titanic
62
63#endif /* TITANIC_PET_MESSAGES_H */
Definition: pet_messages.h:59
Definition: pet_messages.h:55
Definition: pet_messages.h:57
Definition: pet_messages.h:58
Definition: pet_messages.h:56