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.34 by root, Mon Dec 25 14:54:44 2006 UTC vs.
Revision 1.37 by root, Wed Dec 27 05:59:58 2006 UTC

288 maptile (); 288 maptile ();
289 ~maptile (); 289 ~maptile ();
290 void do_destroy (); 290 void do_destroy ();
291 void gather_callbacks (AV *&callbacks, event_type event) const; 291 void gather_callbacks (AV *&callbacks, event_type event) const;
292 292
293 void allocate (); 293 MTH void allocate ();
294
295 int size () const { return width * height; } 294 MTH int size () const { return width * height; }
296 295
296 MTH object *insert (object *op, int x, int y, object *originator = 0, int flags = 0);
297
297 mapspace const &at (uint32 x, uint32 y) const { return spaces [x + width * y]; } 298 mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; }
298 mapspace &at (uint32 x, uint32 y) { return spaces [x + width * y]; } 299 mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; }
299}; 300};
300 301
301/* This is used by get_rangevector to determine where the other 302/* This is used by get_rangevector to determine where the other
302 * creature is. get_rangevector takes into account map tiling, 303 * creature is. get_rangevector takes into account map tiling,
303 * so you just can not look the the map coordinates and get the 304 * so you just can not look the the map coordinates and get the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines