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.86 by root, Sat Dec 20 02:32:31 2008 UTC vs.
Revision 1.89 by root, Sat Dec 27 08:01:07 2008 UTC

186 { 186 {
187 return los[dx + LOS_X0][dy + LOS_Y0]; 187 return los[dx + LOS_X0][dy + LOS_Y0];
188 } 188 }
189 189
190 MTH void clear_los (sint8 value = LOS_BLOCKED); 190 MTH void clear_los (sint8 value = LOS_BLOCKED);
191 MTH void update_los ();
191 192
192 shstr ACC (RW, invis_race); /* What race invisible to? */ 193 shstr ACC (RW, invis_race); /* What race invisible to? */
193 194
194 MTH const char *killer_name () const; // makes a string out of ->killer 195 MTH const char *killer_name () const; // makes a string out of ->killer
195 196
218 if (ns) 219 if (ns)
219 ns->play_sound (sound, dx, dy); 220 ns->play_sound (sound, dx, dy);
220 } 221 }
221 222
222 // wether the player can "see" this mapspace or not, decided by los 223 // wether the player can "see" this mapspace or not, decided by los
223 // 0 - nothing see, 100 - fully visible 224 // 0 - bright, 3 dark, 4 too dark, 100 blocked or out of range
224 MTH sint8 visibility_at (maptile *map, int x, int y) const; 225 MTH sint8 darkness_at (maptile *map, int x, int y) const;
225 226
226 MTH void connect (client *ns); 227 MTH void connect (client *ns);
227 MTH void disconnect (); 228 MTH void disconnect ();
228 229
229 MTH void activate (); 230 MTH void activate ();
266 267
267#define for_all_players(var) \ 268#define for_all_players(var) \
268 for (unsigned _i = 0; _i < ::players.size (); ++_i) \ 269 for (unsigned _i = 0; _i < ::players.size (); ++_i) \
269 statementvar (player *, var, ::players [_i]) 270 statementvar (player *, var, ::players [_i])
270 271
272#define for_all_players_on_map(var,mapp) \
273 for_all_players(var) \
274 if ((var)->ob->map == (mapp))
275
271inline void 276inline void
272object::statusmsg (const char *msg, int color) 277object::statusmsg (const char *msg, int color)
273{ 278{
274 if (expect_true (contr)) contr->statusmsg (msg, color); 279 if (expect_true (contr)) contr->statusmsg (msg, color);
275} 280}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines