… | |
… | |
212 | * be loaded before used. The map,omap and map_ob |
212 | * be loaded before used. The map,omap and map_ob |
213 | * arrays will be allocated when the map is loaded */ |
213 | * arrays will be allocated when the map is loaded */ |
214 | sint16 players; /* How many players are on this map right now */ |
214 | sint16 players; /* How many players are on this map right now */ |
215 | uint16 ACC (RW, difficulty); /* What level the player should be to play here */ |
215 | uint16 ACC (RW, difficulty); /* What level the player should be to play here */ |
216 | |
216 | |
217 | bool ACC (RW, active); // wether this map is active or not |
|
|
218 | bool ACC (RW, per_player); |
217 | bool ACC (RW, per_player); |
219 | bool ACC (RW, per_party); |
218 | bool ACC (RW, per_party); |
220 | bool ACC (RW, outdoor); /* True if an outdoor map */ |
219 | bool ACC (RW, outdoor); /* True if an outdoor map */ |
221 | bool ACC (RW, nodrop); /* avoid dropping anything on this map */ |
220 | bool ACC (RW, nodrop); /* avoid dropping anything on this map */ |
222 | uint8 ACC (RW, darkness); /* indicates level of darkness of map */ |
221 | uint8 ACC (RW, darkness); /* indicates level of darkness of map */ |
… | |
… | |
374 | object::ms () const |
373 | object::ms () const |
375 | { |
374 | { |
376 | return map->at (x, y); |
375 | return map->at (x, y); |
377 | } |
376 | } |
378 | |
377 | |
379 | inline void |
|
|
380 | object::play_sound (faceidx sound) const |
|
|
381 | { |
|
|
382 | if (map && sound) |
|
|
383 | map->play_sound (sound, x, y); |
|
|
384 | } |
|
|
385 | |
|
|
386 | #endif |
378 | #endif |
387 | |
379 | |