ScummVM API documentation
projexpl.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/*
23 * Based on the Reverse Engineering work of Christophe Fontanel,
24 * maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/)
25 */
26
27#ifndef DM_PROJEXPL_H
28#define DM_PROJEXPL_H
29
30#include "dm/dm.h"
31
32namespace DM {
33
34enum KillOutcome {
35 kDMKillOutcomeNoCreaturesInGroup = 0, // @ C0_OUTCOME_KILLED_NO_CREATURES_IN_GROUP
36 kDMKillOutcomeSomeCreaturesInGroup = 1, // @ C1_OUTCOME_KILLED_SOME_CREATURES_IN_GROUP
37 kDMKillOutcomeAllCreaturesInGroup = 2 // @ C2_OUTCOME_KILLED_ALL_CREATURES_IN_GROUP
38};
39
40class TimelineEvent;
41class Projectile;
42
43class ProjExpl {
44 DMEngine *_vm;
45public:
46 int16 _creatureDamageOutcome; // @ G0364_i_CreatureDamageOutcome
47 int16 _secondaryDirToOrFromParty; // @ G0363_i_SecondaryDirectionToOrFromParty
48 int32 _lastCreatureAttackTime; // @ G0361_l_LastCreatureAttackTime
49 bool _createLauncherProjectile; // @ G0365_B_CreateLauncherProjectile
50 int16 _projectilePoisonAttack; // @ G0366_i_ProjectilePoisonAttack
51 int16 _projectileAttackType; // @ G0367_i_ProjectileAttackType
52 int32 _lastPartyMovementTime; // @ G0362_l_LastPartyMovementTime
53
54 explicit ProjExpl(DMEngine *vm);
55
56 void createProjectile(Thing thing, int16 mapX, int16 mapY, uint16 cell, Direction dir,
57 byte kineticEnergy, byte attack, byte stepEnergy); // @ F0212_PROJECTILE_Create
58 bool hasProjectileImpactOccurred(int16 impactType, int16 mapXCombo, int16 mapYCombo,
59 int16 cell, Thing projectileThing); // @ F0217_PROJECTILE_HasImpactOccurred
60 uint16 getProjectileImpactAttack(Projectile *projectile, Thing thing); // @ F0216_PROJECTILE_GetImpactAttack
61 void createExplosion(Thing explThing, uint16 attack, uint16 mapXCombo,
62 uint16 mapYCombo, uint16 cell); // @ F0213_EXPLOSION_Create
63 int16 projectileGetImpactCount(int16 impactType, int16 mapX, int16 mapY, int16 cell); // @ F0218_PROJECTILE_GetImpactCount
64 void projectileDeleteEvent(Thing thing); // @ F0214_PROJECTILE_DeleteEvent
65 void projectileDelete(Thing projectileThing, Thing *groupSlot, int16 mapX, int16 mapY); // @ F0215_PROJECTILE_Delete
66 void processEvents48To49(TimelineEvent *event); // @ F0219_PROJECTILE_ProcessEvents48To49_Projectile
67 void processEvent25(TimelineEvent *event); // @ F0220_EXPLOSION_ProcessEvent25_Explosion
68};
69}
70
71#endif
Definition: dm.h:169
Definition: projexpl.h:43
Definition: dungeonman.h:523
Definition: dm.h:135
Definition: timeline.h:100