2 Copyright (C) 1999-2007 id Software, Inc. and contributors.
\r
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
\r
5 This file is part of GtkRadiant.
\r
7 GtkRadiant is free software; you can redistribute it and/or modify
\r
8 it under the terms of the GNU General Public License as published by
\r
9 the Free Software Foundation; either version 2 of the License, or
\r
10 (at your option) any later version.
\r
12 GtkRadiant is distributed in the hope that it will be useful,
\r
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
15 GNU General Public License for more details.
\r
17 You should have received a copy of the GNU General Public License
\r
18 along with GtkRadiant; if not, write to the Free Software
\r
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
\r
25 #include "placement.h"
\r
27 #define MAX_REFPOINTS 16
\r
28 #define REF_MINCULLTIME 1.0
\r
30 typedef struct Reference_s
\r
33 Placement_t placement;
\r
36 typedef struct LERPedReferences_s
\r
41 Reference_t references[MAX_REFPOINTS];
\r
42 Reference_t oldReferences[MAX_REFPOINTS];
\r
43 } LERPedReferences_t;
\r
55 // Corvus Reference Points
\r
64 NUM_REFERENCES_CORVUS//7
\r
67 // Tchekrik Reference Points
\r
74 NUM_REFERENCES_INSECT//5
\r
77 // High Priestess Reference Points
\r
85 NUM_REFERENCES_PRIESTESS//6
\r
88 // Morcalavin Reference Points
\r
98 NUM_REFERENCES_MORK//7
\r
101 #define CORVUS_LIMBS_MASK ((1 << CORVUS_LEFTHAND) | (1 << CORVUS_RIGHTHAND) | (1 << CORVUS_LEFTFOOT) | (1 << CORVUS_RIGHTFOOT))
\r
102 #define CORVUS_WEAPON_MASK ((1 << CORVUS_STAFF) | (1 << CORVUS_BLADE) | (1 << CORVUS_HELL_HEAD))
\r
103 #define CORVUS_MASK (CORVUS_LIMBS_MASK | CORVUS_WEAPON_MASK)
\r
105 #define INSECT_MASK ((1 << INSECT_STAFF) | (1 << INSECT_SWORD) | (1 << INSECT_SPEAR) | (1 << INSECT_RIGHTFOOT) | (1 << INSECT_LEFTFOOT))
\r
107 #define PRIESTESS_MASK ((1 << PRIESTESS_BACK) | (1 << PRIESTESS_STAFF) | (1 << PRIESTESS_LHAND) | (1 << PRIESTESS_RHAND) | (1 << PRIESTESS_RFOOT) | (1 << PRIESTESS_LFOOT))
\r
109 #define MORK_MASK ((1 << MORK_STAFFREF) | (1 << MORK_RFOOTREF) | (1 << MORK_LFOOTREF) | (1 << MORK_RHANDREF) | (1 << MORK_LHANDREF) | (1 << MORK_LEYEREF) | (1 << MORK_REYEREF))
\r
111 extern char *referenceRootNames[];
\r
112 extern int referenceRootNameOffsets[];
\r
113 extern int numReferences[];
\r
115 void EnableRefPoints(LERPedReferences_t *refInfo, int mask);
\r
116 void DisableRefPoints(LERPedReferences_t *refInfo, int mask);
\r
118 void InitReferenceMngr();
\r
119 void ReleaseReferenceMngr();
\r
121 LERPedReferences_t *LERPedReferences_new(int init_refType);
\r
122 void LERPedReferences_delete(LERPedReferences_t *toDelete);
\r