--- deliantra/server/include/living.h 2006/02/03 07:12:49 1.1 +++ deliantra/server/include/living.h 2006/12/15 20:07:02 1.6 @@ -1,9 +1,4 @@ /* - * static char *rcsid_living_h = - * "$Id$"; - */ - -/* CrossFire, A Multiplayer game for X-windows Copyright (C) 2002 Mark Wedel & Crossfire Development Team @@ -23,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - The authors can be reached via e-mail at crossfire-devel@real-time.com + The authors can be reached via e-mail at crossfire.de */ #ifndef LIVING_H @@ -63,20 +58,24 @@ extern const int cleric_chance[MAX_STAT + 1]; extern const int fear_bonus[MAX_STAT + 1]; -typedef struct liv { /* Mostly used by "alive" objects */ - sint8 Str,Dex,Con,Wis,Cha,Int,Pow; - sint8 wc,ac; /* Weapon Class and Armour Class */ - sint16 hp; /* Hit Points. */ - sint16 maxhp; - sint16 sp; /* Spell points. Used to cast mage spells. */ - sint16 maxsp; /* Max spell points. */ - sint16 grace; /* Grace. Used to invoke clerical prayers. */ - sint16 maxgrace; /* Grace. Used to invoke clerical prayers. */ - sint64 exp; /* Experience. Killers gain 1/10. */ - sint16 food; /* How much food in stomach. 0 = starved. */ - sint16 dam; /* How much damage this object does when hitting */ - sint8 luck; /* Affects thaco and ac from time to time */ -} living; - +/* Mostly used by "alive" objects */ +ACC_CLASS (living) +struct living +{ + sint64 ACC (RW, exp); /* Experience. */ + sint16 ACC (RW, hp); /* Hit Points. */ + sint16 ACC (RW, maxhp); + sint16 ACC (RW, sp); /* Spell points. Used to cast mage spells. */ + sint16 ACC (RW, maxsp); /* Max spell points. */ + sint16 ACC (RW, grace); /* Grace. Used to invoke clerical prayers. */ + sint16 ACC (RW, maxgrace); /* Grace. Used to invoke clerical prayers. */ + sint32 ACC (RW, food); /* How much food in stomach. 0 = starved. */ + sint16 ACC (RW, dam); /* How much damage this object does when hitting */ + // 16 free bits + sint8 ACC (RW, Str), ACC (RW, Dex), ACC (RW, Con), ACC (RW, Wis), ACC (RW, Cha), ACC (RW, Int), ACC (RW, Pow); + sint8 ACC (RW, wc), ACC (RW, ac); /* Weapon Class and Armour Class */ + sint8 ACC (RW, luck); /* Affects thaco and ac from time to time */ +}; #endif +