ScummVM API documentation
noctropolis_player.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 ACCESS_NOCTROPOLIS_PLAYER_H
23#define ACCESS_NOCTROPOLIS_PLAYER_H
24
25#include "common/scummsys.h"
26#include "access/player.h"
27
28namespace Access {
29
30namespace Noctropolis {
31
32class NoctropolisEngine;
33
34class NoctropolisPlayer : public Player {
35private:
36 NoctropolisEngine *_game;
37 Direction _lastDirection;
38 AnimationManager *_animManager;
39 bool _isStil;
40
41 void updatePlayerDirection();
42
43 void calcManScale() override;
44 void calcManScale1();
45
46public:
47 NoctropolisPlayer(AccessEngine *vm, bool isStil = false);
49
50 void load() override;
51
52 void loadAnimation(int fileNum, int subFile);
53 void walk() override;
54
55 void updateTimers() override;
56
58
59 void setDirFromScript(byte newDir) override;
60};
61
62} // End of namespace Noctropolis
63
64} // End of namespace Access
65
66#endif /* ACCESS_NOCTROPOLIS_PLAYER_H */
Definition: access.h:141
Definition: animation.h:38
Definition: noctropolis_game.h:46
Definition: noctropolis_player.h:34
void synchronize(Common::Serializer &s) override
Definition: player.h:48
Definition: serializer.h:80
Definition: access.h:62