… | |
… | |
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 |