1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef PETKA_BASE_H
#define PETKA_BASE_H
#include "common/array.h"
namespace Petka {
enum Opcode {
kZero = 0,
kUse = 1,
kSetPos = 2,
kGoTo = 3,
kLook = 4,
kSay = 5,
kTake = 6,
kQMUse = 7,
kVasiliyIvanovich = 8,
kWalk = 9,
kTalk = 10,
kEnd = 11,
kSetAnimation = 12,
kForceMove = 13,
kSet = 14,
kShow = 15,
kHide = 16,
kDialog = 17,
kZBuffer = 18,
kTotalInit = 19,
kAnimate = 20,
kStatus = 21,
kAddInv = 22,
kDelInv = 23,
kStop = 24,
kCursor = 25,
kObjectUse = 26,
kActive = 27,
kSaid = 28,
kSetSeq = 29,
kEndSeq = 30,
kCheck = 31,
kIf = 32,
kDescription = 33,
kHalf = 34,
kWalked = 35,
kWalkTo = 36,
kWalkVich = 37,
kInitBG = 38,
kUserMsg = 39,
kSystem = 40,
kSetZBuffer = 41, // ??? Reserved1
kContinue = 42,
kMap = 43,
kPassive = 44,
kNoMap = 45,
kSetInv = 46,
kBGsFX = 47,
kMusic = 48,
kImage = 49,
kStand = 50,
kOn = 51,
kOff = 52,
kPlay = 53,
kLeaveBG = 54,
kShake = 55,
kSP = 56,
kRandom = 57,
kJump = 58,
kJumpVich = 59,
kPart = 60,
kChapter = 61,
kAvi = 62,
kToMap = 63 // ??? MessageNumber
};
class QMessageObject;
struct QMessage {
QMessage() {
objId = opcode = arg1 = arg2 = arg3 = 0;
sender = nullptr;
unk = 0;
}
QMessage(uint16 _objId, uint16 _opcode, uint16 _arg1, int16 _arg2, int16 _arg3, QMessageObject *_sender, int _unk) {
this->objId = _objId;
this->opcode = _opcode;
this->arg1 = _arg1;
this->arg2 = _arg2;
this->arg3 = _arg3;
this->sender = _sender;
this->unk = _unk;
}
uint16 objId;
uint16 opcode;
uint16 arg1;
int16 arg2;
int16 arg3;
QMessageObject *sender;
int32 unk;
};
struct QReaction {
uint16 opcode;
int8 status;
int16 senderId;
Common::Array<QMessage> messages;
};
} // End of namespace Petka
#endif
|