ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/player.h
(Generate patch)

Comparing deliantra/server/include/player.h (file contents):
Revision 1.45 by pippijn, Mon Jan 15 21:06:19 2007 UTC vs.
Revision 1.48 by root, Tue Apr 24 00:42:02 2007 UTC

197 MTH bool save_pl (const char *path); 197 MTH bool save_pl (const char *path);
198 198
199 void do_destroy (); 199 void do_destroy ();
200 void gather_callbacks (AV *&callbacks, event_type event) const; 200 void gather_callbacks (AV *&callbacks, event_type event) const;
201 201
202 // wether the player can "see" this mapspace or not, decided by los
203 // 0 - nothing see, 100 - fully visible
204 MTH sint8 visibility_at (maptile *map, int x, int y) const;
205
202 MTH void connect (client *ns); 206 MTH void connect (client *ns);
203 MTH void disconnect (); 207 MTH void disconnect ();
204 208
205 MTH void activate (); 209 MTH void activate ();
206 MTH void deactivate (); 210 MTH void deactivate ();
207 211
208 // enters the initial map, after login or creation 212 // enters the initial map, after login or creation
209 MTH void enter_map (); 213 MTH void enter_map ();
214
215 MTH void chargen_race_done ();
216 MTH void chargen_race_next ();
210 217
211 ~player (); 218 ~player ();
212 219
213private: 220private:
214 void set_object (object *op); 221 void set_object (object *op);
218typedef object_vector<player, &player::active> playervec; 225typedef object_vector<player, &player::active> playervec;
219 226
220extern playervec players; 227extern playervec players;
221 228
222#define for_all_players(var) \ 229#define for_all_players(var) \
223 for (int _i = 0; _i < players.size (); ++_i) \ 230 for (unsigned _i = 0; _i < players.size (); ++_i) \
224 declvar (player *, var, players [_i]) 231 declvar (player *, var, players [_i])
225 232

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines