--- deliantra/server/include/player.h 2007/01/08 18:18:35 1.44 +++ deliantra/server/include/player.h 2007/04/24 00:42:02 1.48 @@ -1,26 +1,26 @@ /* - CrossFire, A Multiplayer game for X-windows - - 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 -*/ + * CrossFire, A Multiplayer game for X-windows + * + * 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 + */ #define NUM_OUTPUT_BUFS 5 struct Output_Buf @@ -199,6 +199,10 @@ void do_destroy (); void gather_callbacks (AV *&callbacks, event_type event) const; + // wether the player can "see" this mapspace or not, decided by los + // 0 - nothing see, 100 - fully visible + MTH sint8 visibility_at (maptile *map, int x, int y) const; + MTH void connect (client *ns); MTH void disconnect (); @@ -208,6 +212,9 @@ // enters the initial map, after login or creation MTH void enter_map (); + MTH void chargen_race_done (); + MTH void chargen_race_next (); + ~player (); private: @@ -220,6 +227,6 @@ extern playervec players; #define for_all_players(var) \ - for (int _i = 0; _i < players.size (); ++_i) \ + for (unsigned _i = 0; _i < players.size (); ++_i) \ declvar (player *, var, players [_i])