X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSkeleton.h;h=627ca42ca8b3b84129429a5198d25952a27a8d50;hb=018ec84e525b49021b26dbbc0ab87cc8e45b3a77;hp=48592a8bceac141684a2e51571b4d5a740215ccb;hpb=8265984dce72d262e3865ebad4668d98b5b26d4a;p=lugaru.git diff --git a/Source/Skeleton.h b/Source/Skeleton.h index 48592a8..627ca42 100644 --- a/Source/Skeleton.h +++ b/Source/Skeleton.h @@ -34,13 +34,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "Sprite.h" #include "binio.h" -#define neutral 0 -#define normalattack 1 -#define reversed 2 -#define reversal 3 -#define lowheight 0 -#define middleheight 1 -#define highheight 2 +enum bodyparts { + head, neck, + leftshoulder, leftelbow, leftwrist, lefthand, + rightshoulder, rightelbow, rightwrist, righthand, + abdomen, lefthip, righthip, groin, + leftknee, leftankle, leftfoot, + rightknee, rightankle, rightfoot +}; class Joint { @@ -142,7 +143,7 @@ public: Animation & operator = (const Animation & ani); - void Load(char *fileName, int aheight, int aattack); + void Load(const char *fileName, int aheight, int aattack); void Move(XYZ how); protected: @@ -150,6 +151,8 @@ protected: }; +const int max_joints = 50; + class Skeleton { public: