ScummVM API documentation
actor_view_pc.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 * Additional copyright for this file:
8 * Copyright (C) 1999-2000 Revolution Software Ltd.
9 * This code is based on source code created by Revolution Software,
10 * used with permission.
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26
27#ifndef ICB_ACTOR_VIEW_PC_H_INCLUDED
28#define ICB_ACTOR_VIEW_PC_H_INCLUDED
29
30namespace ICB {
31
32// Set this to true if the actor view (character profiles) should act as voxview
33extern bool8 g_av_userControlled;
34
35// Return values for ActorViewDraw
36#define MID_ANIMATION 0x00
37#define ANIMATION_END 0x01
38
39void InitActorView(const char *name, // Character to draw (ie "cord")
40 const char *outfit, // Characters outfit (ie "casual_wear")
41 const char *weapon, // Character pose (ie "unarmed")
42 const char *anim, // Character anim (ie "walk")
43 int16 ix, // Initial render x coord
44 int16 iy, // Initial render y coord
45 int16 iz); // Initial render z coord
46
47int32 ActorViewDraw(); // Call each cycle to draw
48
49void ChangeAnimPlaying(const char *pose, // Pose to swap to NULL if keep the same
50 const char *anim, // Anim to change to
51 bool8 forwards, // Play anim forwards or backwards
52 int32 repeats, // Number of times to play this anim before ActorViewDraw() returns ANIMATION_END
53 int16 ix, // New render x coordinate
54 int16 iy, // New render y coordinate
55 int16 iz); // New render z coordinate
56
57} // End of namespace ICB
58
59#endif