From 322cd1bd2930c437f84f2fa14fa6f51a8ee0ec16 Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Mon, 3 Jan 2011 23:01:29 +0300 Subject: [PATCH] Migrate some more definitions from Constants.h --- Source/Constants.h | 21 --------------------- Source/Skeleton.h | 9 +++++++++ 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/Source/Constants.h b/Source/Constants.h index 2858cdf..1b1cd9b 100644 --- a/Source/Constants.h +++ b/Source/Constants.h @@ -42,27 +42,6 @@ static const char *editortypenames[] = { "dead1", "dead2", "dead3", "dead4" }; -const int head = 0; // DO NOT CONFLICT WITH ZLIB's variable head -const int neck = 1; -const int leftshoulder = 2; -const int leftelbow = 3; -const int leftwrist = 4; -const int lefthand = 5; -const int rightshoulder = 6; -const int rightelbow = 7; -const int rightwrist = 8; -const int righthand = 9; -const int abdomen = 10; -const int lefthip = 11; -const int righthip = 12; -const int groin = 13; -const int leftknee = 14; -const int leftankle = 15; -const int leftfoot = 16; -const int rightknee = 17; -const int rightankle = 18; -const int rightfoot = 19; - const int max_dialogues = 20; const int max_dialoguelength = 20; diff --git a/Source/Skeleton.h b/Source/Skeleton.h index fa57c9a..627ca42 100644 --- a/Source/Skeleton.h +++ b/Source/Skeleton.h @@ -34,6 +34,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "Sprite.h" #include "binio.h" +enum bodyparts { + head, neck, + leftshoulder, leftelbow, leftwrist, lefthand, + rightshoulder, rightelbow, rightwrist, righthand, + abdomen, lefthip, righthip, groin, + leftknee, leftankle, leftfoot, + rightknee, rightankle, rightfoot +}; + class Joint { public: -- 2.39.5