Torque3D Documentation / _generateds / VHumanoidActorData.h

VHumanoidActorData.h

Engine/source/Verve/VActor/Humanoid/VHumanoidActorData.h

More...

Classes:

Detailed Description

 1
 2//-----------------------------------------------------------------------------
 3// Verve
 4// Copyright (C) 2014 - Violent Tulip
 5//
 6// Permission is hereby granted, free of charge, to any person obtaining a copy
 7// of this software and associated documentation files (the "Software"), to
 8// deal in the Software without restriction, including without limitation the
 9// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10// sell copies of the Software, and to permit persons to whom the Software is
11// furnished to do so, subject to the following conditions:
12//
13// The above copyright notice and this permission notice shall be included in
14// all copies or substantial portions of the Software.
15//
16// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22// IN THE SOFTWARE.
23//-----------------------------------------------------------------------------
24#ifndef _VT_VHUMANOIDACTORDATA_H_
25#define _VT_VHUMANOIDACTORDATA_H_
26
27#ifndef _VT_VACTORDATA_H_
28#include "../VActorData.h"
29#endif
30
31//-----------------------------------------------------------------------------
32
33struct VHumanoidActorData : public VActorData
34{
35private:
36
37    typedef VActorData Parent;
38    friend class VHumanoidActor;
39
40public:
41
42    enum eAnimationList
43    {
44        k_IdleAnimation           = Parent::k_NextAnimation +  0,
45
46        k_WalkForwardAnimation    = Parent::k_NextAnimation +  1,
47        k_WalkBackwardAnimation   = Parent::k_NextAnimation +  2,
48
49        k_RunForwardAnimation     = Parent::k_NextAnimation +  3,
50        k_RunBackwardAnimation    = Parent::k_NextAnimation +  4,
51
52        k_SwimIdleAnimation       = Parent::k_NextAnimation +  5,
53        k_SwimForwardAnimation    = Parent::k_NextAnimation +  6,
54        k_SwimBackwardAnimation   = Parent::k_NextAnimation +  7,
55
56        k_HeadHorizontalAnimation = Parent::k_NextAnimation +  8,
57        k_HeadVerticalAnimation   = Parent::k_NextAnimation +  9,
58
59        k_ArmsUpDownAnimation     = Parent::k_NextAnimation + 10,
60
61        k_NextAnimation           = Parent::k_NextAnimation + 11,
62    };
63
64    enum ePhysicsStateList
65    {
66        k_OnGroundPhysics         = Parent::k_NextPhysicsState + 0,
67        k_InAirPhysics            = Parent::k_NextPhysicsState + 1,
68        k_InWaterPhysics          = Parent::k_NextPhysicsState + 2,
69
70        k_NextPhysicsState        = Parent::k_NextPhysicsState + 3,
71    };
72
73public:
74
75    VHumanoidActorData( void );
76
77    virtual bool    preload( bool pServer, String &pErrorStr );
78
79    DECLARE_CONOBJECT( VHumanoidActorData );
80};
81
82#endif // _VT_VHUMANOIDACTORDATA_H_
83