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 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (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, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 */ 22 23 #ifndef TITANIC_PET_MESSAGES_H 24 #define TITANIC_PET_MESSAGES_H 25 26 #include "titanic/messages/messages.h" 27 28 namespace Titanic { 29 30 MESSAGE0(CPETDeliverMsg); 31 MESSAGE0(CPETGainedObjectMsg); 32 MESSAGE0(CPETHelmetOnOffMsg); 33 MESSAGE0(CPETKeyboardOnOffMsg); 34 MESSAGE0(CPETLostObjectMsg); 35 MESSAGE0(CPETObjectSelectedMsg); 36 MESSAGE1(CPETObjectStateMsg, int, value, 0); 37 MESSAGE0(CPETPhotoOnOffMsg); 38 MESSAGE1(CPETPlaySoundMsg, int, soundNum, 0); 39 MESSAGE0(CPETReceiveMsg); 40 MESSAGE0(CPETSetStarDestinationMsg); 41 MESSAGE1(CPETStarFieldLockMsg, int, value, 0); 42 MESSAGE0(CPETStereoFieldOnOffMsg); 43 MESSAGE2(CPETTargetMsg, CString, name, "", int, numValue, -1); 44 45 #define PET_MESSAGE(NAME) \ 46 class NAME: public CPETTargetMsg { \ 47 public: \ 48 NAME() : CPETTargetMsg() {} \ 49 NAME(const CString &name, int num) : CPETTargetMsg(name, num) {} \ 50 CLASSDEF; \ 51 static bool isSupportedBy(const CTreeItem *item) { \ 52 return supports(item, _type); \ 53 } \ 54 } 55 56 PET_MESSAGE(CPETDownMsg); 57 PET_MESSAGE(CPETUpMsg); 58 PET_MESSAGE(CPETLeftMsg); 59 PET_MESSAGE(CPETRightMsg); 60 PET_MESSAGE(CPETActivateMsg); 61 62 } // End of namespace Titanic 63 64 #endif /* TITANIC_PET_MESSAGES_H */ 65