X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAnimation%2FJoint.h;h=c4c8e3b4318809c79fc3b05110dcbf2e59107ca5;hb=f83c7bc4ef12b0bbdc1cfa6bdce35d9665510e6c;hp=9073e7af081ae41109194effd016e91ac1b49f42;hpb=1d589bc3024e30dd51e41b6041b57649190bef4d;p=lugaru.git diff --git a/Source/Animation/Joint.h b/Source/Animation/Joint.h index 9073e7a..c4c8e3b 100644 --- a/Source/Animation/Joint.h +++ b/Source/Animation/Joint.h @@ -22,6 +22,16 @@ along with Lugaru. If not, see . #define _JOINT_H_ #include "Quaternions.h" +#include + +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& joints); }; #endif