]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Animation/Joint.h
Account active is now stored as an integer to avoid weird loops to find the right id
[lugaru.git] / Source / Animation / Joint.h
index 9073e7af081ae41109194effd016e91ac1b49f42..c4c8e3b4318809c79fc3b05110dcbf2e59107ca5 100644 (file)
@@ -22,6 +22,16 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #define _JOINT_H_
 
 #include "Quaternions.h"
+#include <vector>
+
+enum bodypart {
+    head, neck,
+    leftshoulder,  leftelbow,  leftwrist,  lefthand,
+    rightshoulder, rightelbow, rightwrist, righthand,
+    abdomen, lefthip, righthip, groin,
+    leftknee,  leftankle,  leftfoot,
+    rightknee, rightankle, rightfoot
+};
 
 class Joint
 {
@@ -42,12 +52,13 @@ public:
     bool visible;
     Joint* parent;
     bool sametwist;
-    int label;
+    bodypart label;
     int hasgun;
     float delay;
     XYZ velchange;
 
     Joint();
+    void load(FILE* tfile, std::vector<Joint>& joints);
 };
 
 #endif