Pyrogenesis
13997
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
graphics
SkeletonAnim.h
Go to the documentation of this file.
1
/* Copyright (C) 2010 Wildfire Games.
2
* This file is part of 0 A.D.
3
*
4
* 0 A.D. is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* 0 A.D. is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
/*
19
* Instance of CSkeletonAnimDef for application onto a model
20
*/
21
22
#ifndef INCLUDED_SKELETONANIM
23
#define INCLUDED_SKELETONANIM
24
25
#include "
maths/BoundingBoxAligned.h
"
26
27
class
CSkeletonAnimDef
;
28
29
30
////////////////////////////////////////////////////////////////////////////////////////
31
// CSkeletonAnim: an instance of a CSkeletonAnimDef, for application onto a model
32
class
CSkeletonAnim
33
{
34
public
:
35
// the name of the action which uses this animation (e.g. "idle")
36
CStr
m_Name
;
37
// the raw animation frame data; may be NULL if this is a static 'animation'
38
CSkeletonAnimDef
*
m_AnimDef
;
39
// speed at which this animation runs, as a factor of the AnimDef default speed
40
// (treated as 0 if m_AnimDef == NULL)
41
float
m_Speed
;
42
// Times during the animation at which the interesting bits happen,
43
// as msec times in the range [0, AnimDef->GetDuration],
44
// or special value -1 if unspecified.
45
// ActionPos is used for melee hits, projectile launches, etc.
46
// ActionPos2 is used for loading projectile ammunition.
47
float
m_ActionPos
;
48
float
m_ActionPos2
;
49
float
m_SoundPos
;
50
// object space bounds of the model when this animation is applied to it
51
CBoundingBoxAligned
m_ObjectBounds
;
52
};
53
54
#endif
CSkeletonAnim::m_Name
CStr m_Name
Definition:
SkeletonAnim.h:36
CSkeletonAnim::m_AnimDef
CSkeletonAnimDef * m_AnimDef
Definition:
SkeletonAnim.h:38
BoundingBoxAligned.h
CSkeletonAnim::m_ActionPos2
float m_ActionPos2
Definition:
SkeletonAnim.h:48
CSkeletonAnimDef
Definition:
SkeletonAnimDef.h:44
CSkeletonAnim::m_SoundPos
float m_SoundPos
Definition:
SkeletonAnim.h:49
CSkeletonAnim::m_ObjectBounds
CBoundingBoxAligned m_ObjectBounds
Definition:
SkeletonAnim.h:51
CSkeletonAnim::m_ActionPos
float m_ActionPos
Definition:
SkeletonAnim.h:47
CBoundingBoxAligned
Definition:
BoundingBoxAligned.h:35
CSkeletonAnim::m_Speed
float m_Speed
Definition:
SkeletonAnim.h:41
CSkeletonAnim
Definition:
SkeletonAnim.h:32
Generated on Mon Oct 14 2013 00:58:06 for Pyrogenesis by
1.8.5