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