From: Alexander Monakov Date: Mon, 3 Jan 2011 20:01:29 +0000 (+0300) Subject: Migrate some more definitions from Constants.h X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=322cd1bd2930c437f84f2fa14fa6f51a8ee0ec16;p=lugaru.git Migrate some more definitions from Constants.h --- 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: