… | |
… | |
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 (); |