ScummVM API documentation
animation.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#ifndef DARKSEED_ANIMATION_H
22#define DARKSEED_ANIMATION_H
23
24#include "darkseed/objects.h"
25#include "darkseed/player.h"
26namespace Darkseed {
27
28class Animation {
29 Player *_player = nullptr;
30 Objects &_objectVar;
31
32public:
33 int _animIndexTbl[30];
34 int _spriteAnimCountdownTimer[30];
35
36 bool _isPlayingAnimation_maybe = false;
37 uint16 _otherNspAnimationType_maybe = 0;
38
39 bool _scaleSequence = false;
40 bool _objRestarted = false;
41 bool _frameAdvanced = false;
42
43 int _nsp_sprite_scaling_y_position = 0;
44
45public:
46 explicit Animation(Player *player, Objects &objectVar) : _player(player), _objectVar(objectVar) {}
47
48 void updateAnimation();
49
50 void advanceAnimationFrame(int nspAminIdx);
51
52 void dCopAnim();
53 void sargoAnim();
54 void keeperAdmin();
55 void gancAnim();
56 void stuffPlayer();
57 void runDrekethSequence();
58 void libAnim(bool pickingUpReservedBook);
59
60 void setupOtherNspAnimation(int nspAnimIdx, int animId);
61private:
62 void adddrekbutt();
63 void wonGame();
64};
65
66} // End of namespace Darkseed
67
68#endif // DARKSEED_ANIMATION_H
Definition: animation.h:28
Definition: objects.h:36
Definition: player.h:31