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.87 by root, Tue Dec 23 00:39:48 2008 UTC vs.
Revision 1.90 by root, Thu Jan 1 19:42:43 2009 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
198 199
199 static player *load_pl (object_thawer &thawer); 200 static player *load_pl (object_thawer &thawer);
200 MTH static player *load_pl (object_thawer *thawer) { return load_pl (*thawer); } 201 MTH static player *load_pl (object_thawer *thawer) { return load_pl (*thawer); }
201 202
202 MTH void link_skills (); 203 MTH void link_skills ();
203 MTH object *find_skill (const char *name) const; 204 MTH object *find_skill (shstr_cmp name) const;
204 object *find_skill (const shstr &name) const;
205 205
206 bool save_pl (object_freezer &freezer); 206 bool save_pl (object_freezer &freezer);
207 MTH bool save_pl (const char *path); 207 MTH bool save_pl (const char *path);
208 208
209 void do_destroy (); 209 void do_destroy ();
218 if (ns) 218 if (ns)
219 ns->play_sound (sound, dx, dy); 219 ns->play_sound (sound, dx, dy);
220 } 220 }
221 221
222 // wether the player can "see" this mapspace or not, decided by los 222 // wether the player can "see" this mapspace or not, decided by los
223 // 0 - nothing see, 100 - fully visible 223 // 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; 224 MTH sint8 darkness_at (maptile *map, int x, int y) const;
225 225
226 MTH void connect (client *ns); 226 MTH void connect (client *ns);
227 MTH void disconnect (); 227 MTH void disconnect ();
228 228
229 MTH void activate (); 229 MTH void activate ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines