X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSkeleton.h;h=ca8ac30cf241037a5a072f54d7946a16412270cc;hb=f1f55db0495129376cff147ade264b4294f9bdc7;hp=2e5085e6905a0d7c4d11775f8ebf9780d738f6fd;hpb=f250ee8330a466b35a7ba2975d3d3fed508068c2;p=lugaru.git diff --git a/Source/Skeleton.h b/Source/Skeleton.h index 2e5085e..ca8ac30 100644 --- a/Source/Skeleton.h +++ b/Source/Skeleton.h @@ -24,23 +24,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "Models.h" #include "Quaternions.h" -#include "Constants.h" /**> HEADER FILES <**/ #include "gamegl.h" #include "Quaternions.h" #include "Objects.h" -#include "Sprites.h" +#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 +142,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 +150,8 @@ protected: }; +const int max_joints = 50; + class Skeleton { public: