--- deliantra/server/include/living.h 2006/12/23 00:14:29 1.9 +++ deliantra/server/include/living.h 2007/05/12 18:14:47 1.13 @@ -1,29 +1,31 @@ /* - CrossFire, A Multiplayer game for X-windows - - Copyright (C) 2002 Mark Wedel & Crossfire Development Team - Copyright (C) 1992 Frank Tore Johansen - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - 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@schmorp.de -*/ + * CrossFire, A Multiplayer game + * + * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team + * Copyright (C) 2002 Mark Wedel & Crossfire Development Team + * Copyright (C) 1992 Frank Tore Johansen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * 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@schmorp.de + */ #ifndef LIVING_H #define LIVING_H +// corresponds to some arrays in common/living.C enum { STR, DEX, @@ -61,7 +63,7 @@ extern const int fear_bonus[MAX_STAT + 1]; /* Mostly used by "alive" objects */ -ACC_CLASS (living) +INTERFACE_CLASS (living) struct living { sint64 ACC (RW, exp); /* Experience. */ @@ -80,6 +82,9 @@ sint16 ACC (RW, grace); /* Grace. Used to invoke clerical prayers. */ sint16 ACC (RW, maxgrace); /* Grace. Used to invoke clerical prayers. */ + + sint8 &stat (int index); + sint8 stat (int index) const; }; #endif