--- deliantra/server/include/player.h 2007/01/15 21:06:19 1.45 +++ deliantra/server/include/player.h 2007/04/25 18:47:50 1.49 @@ -22,14 +22,6 @@ * The authors can be reached via e-mail at crossfire@schmorp.de */ -#define NUM_OUTPUT_BUFS 5 -struct Output_Buf -{ - shstr buf; /* Actual string pointer */ - uint32 first_update; /* First time this message was stored */ - uint16 count; /* How many times we got this message */ -}; - /* wand/rod/horn rolled into range_misc. They all use the same body location * anyways. */ @@ -186,7 +178,6 @@ /* MAP_CLIENT_.., the upper left is used */ shstr ACC (RW, invis_race); /* What race invisible to? */ - Output_Buf outputs[NUM_OUTPUT_BUFS]; /* holds output strings to client */ MTH static player *create (); @@ -199,6 +190,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 +203,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 +218,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])