1 /* ResidualVM - A 3D game interpreter 2 * 3 * ResidualVM is the legal property of its developers, whose names 4 * are too numerous to list here. Please refer to the AUTHORS 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 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; either version 2 15 * of the License, or (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, write to the Free Software 24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 25 * 26 */ 27 28 #ifndef ICB_ACTOR_VIEW_PC_H_INCLUDED 29 #define ICB_ACTOR_VIEW_PC_H_INCLUDED 30 31 namespace ICB { 32 33 // Set this to true if the actor view (character profiles) should act as voxview 34 extern bool8 g_av_userControlled; 35 36 // Return values for ActorViewDraw 37 #define MID_ANIMATION 0x00 38 #define ANIMATION_END 0x01 39 40 void InitActorView(const char *name, // Character to draw (ie "cord") 41 const char *outfit, // Characters outfit (ie "casual_wear") 42 const char *weapon, // Character pose (ie "unarmed") 43 const char *anim, // Character anim (ie "walk") 44 int16 ix, // Initial render x coord 45 int16 iy, // Initial render y coord 46 int16 iz); // Initial render z coord 47 48 int32 ActorViewDraw(); // Call each cycle to draw 49 50 void ChangeAnimPlaying(const char *pose, // Pose to swap to NULL if keep the same 51 const char *anim, // Anim to change to 52 bool8 forwards, // Play anim forwards or backwards 53 int32 repeats, // Number of times to play this anim before ActorViewDraw() returns ANIMATION_END 54 int16 ix, // New render x coordinate 55 int16 iy, // New render y coordinate 56 int16 iz); // New render z coordinate 57 58 } // End of namespace ICB 59 60 #endif 61