ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/map.h
(Generate patch)

Comparing deliantra/server/include/map.h (file contents):
Revision 1.99 by root, Thu Dec 4 03:48:19 2008 UTC vs.
Revision 1.100 by root, Tue Dec 23 00:39:48 2008 UTC

133 133
134 MTH uint8 flags () 134 MTH uint8 flags ()
135 { 135 {
136 update (); 136 update ();
137 return flags_; 137 return flags_;
138 }
139
140 MTH void invalidate ()
141 {
142 flags_ = 0;
138 } 143 }
139 144
140 MTH object *player () 145 MTH object *player ()
141 { 146 {
142 object *op; 147 object *op;
333 static maptile *find_async (const char *path, maptile *original = 0, bool load = true);//PERL 338 static maptile *find_async (const char *path, maptile *original = 0, bool load = true);//PERL
334 static maptile *find_sync (const char *path, maptile *original = 0);//PERL 339 static maptile *find_sync (const char *path, maptile *original = 0);//PERL
335 static maptile *find_style_sync (const char *dir, const char *file = 0);//PERL 340 static maptile *find_style_sync (const char *dir, const char *file = 0);//PERL
336 object *pick_random_object (rand_gen &gen = rndm) const; 341 object *pick_random_object (rand_gen &gen = rndm) const;
337 342
338 mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } 343 mapspace &at (uint32 x, uint32 y) const { return spaces [x * height + y]; }
339 mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; }
340}; 344};
341 345
342/* This is used by get_rangevector to determine where the other 346/* This is used by get_rangevector to determine where the other
343 * creature is. get_rangevector takes into account map tiling, 347 * creature is. get_rangevector takes into account map tiling,
344 * so you just can not look the the map coordinates and get the 348 * so you just can not look the the map coordinates and get the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines