ScummVM API documentation
px_bones.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_PX_BONES_H
28 #define ICB_PX_BONES_H
29 
30 #include "engines/icb/common/px_common.h"
31 
32 namespace ICB {
33 
34 // maximum number of deformations
35 #define MAX_DEFORMABLE_BONES 4
36 
37 // the deformations being used (so standard across tools/engine...
38 #define JAW_DEFORMATION 0
39 #define NECK_DEFORMATION 1
40 #define LOOK_DEFORMATION 2
41 #define SPARE_DEFORMATION 3
42 
44 public:
45  BoneDeformation() {
46  boneTarget.vx = boneTarget.vy = boneTarget.vz = boneValue.vx = boneValue.vy = boneValue.vz = 0;
47  boneNumber = -1;
48  }
49 
50  int16 boneNumber;
51  int16 boneSpeed;
52  SVECTOR boneValue;
53  SVECTOR boneTarget;
54 
55  void UpdateBoneValue(int16 &v, int16 t);
56  void Target0();
57  void Update();
58 };
59 
60 } // End of namespace ICB
61 
62 #endif // _PX_BONES_H
Definition: px_capri_maths.h:53
Definition: actor.h:32
Definition: px_bones.h:43