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.47 by pippijn, Thu Mar 1 12:28:16 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 ();
218typedef object_vector<player, &player::active> playervec; 222typedef object_vector<player, &player::active> playervec;
219 223
220extern playervec players; 224extern playervec players;
221 225
222#define for_all_players(var) \ 226#define for_all_players(var) \
223 for (int _i = 0; _i < players.size (); ++_i) \ 227 for (unsigned _i = 0; _i < players.size (); ++_i) \
224 declvar (player *, var, players [_i]) 228 declvar (player *, var, players [_i])
225 229

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines