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.85 by root, Fri Dec 19 22:47:29 2008 UTC vs.
Revision 1.89 by root, Sat Dec 27 08:01:07 2008 UTC

185 sint8 blocked_los_uc (int dx, int dy) const 185 sint8 blocked_los_uc (int dx, int dy) const
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);
191 MTH void update_los ();
192
190 shstr ACC (RW, invis_race); /* What race invisible to? */ 193 shstr ACC (RW, invis_race); /* What race invisible to? */
191 194
192 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
193 196
194 MTH static player *create (); 197 MTH static player *create ();
216 if (ns) 219 if (ns)
217 ns->play_sound (sound, dx, dy); 220 ns->play_sound (sound, dx, dy);
218 } 221 }
219 222
220 // 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
221 // 0 - nothing see, 100 - fully visible 224 // 0 - bright, 3 dark, 4 too dark, 100 blocked or out of range
222 MTH sint8 visibility_at (maptile *map, int x, int y) const; 225 MTH sint8 darkness_at (maptile *map, int x, int y) const;
223 226
224 MTH void connect (client *ns); 227 MTH void connect (client *ns);
225 MTH void disconnect (); 228 MTH void disconnect ();
226 229
227 MTH void activate (); 230 MTH void activate ();
264 267
265#define for_all_players(var) \ 268#define for_all_players(var) \
266 for (unsigned _i = 0; _i < ::players.size (); ++_i) \ 269 for (unsigned _i = 0; _i < ::players.size (); ++_i) \
267 statementvar (player *, var, ::players [_i]) 270 statementvar (player *, var, ::players [_i])
268 271
272#define for_all_players_on_map(var,mapp) \
273 for_all_players(var) \
274 if ((var)->ob->map == (mapp))
275
269inline void 276inline void
270object::statusmsg (const char *msg, int color) 277object::statusmsg (const char *msg, int color)
271{ 278{
272 if (expect_true (contr)) contr->statusmsg (msg, color); 279 if (expect_true (contr)) contr->statusmsg (msg, color);
273} 280}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines