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.139 by root, Wed May 4 07:41:14 2011 UTC vs.
Revision 1.140 by root, Wed May 4 19:04:44 2011 UTC

214 int x0, y0; 214 int x0, y0;
215 int x1, y1; 215 int x1, y1;
216 int dx, dy; // offset to go from local coordinates to original tile */ 216 int dx, dy; // offset to go from local coordinates to original tile */
217}; 217};
218 218
219// (refcounted) list of objects on this map that need physics processing
220struct physics_queue
221: unordered_vector<object *>
222{
223 int i; // already processed
224 physics_queue ();
225 object *pop ();
226};
227
228#define PHYSICS_QUEUES 16 // "activity" at least every 16 ticks
229
219//+GPL 230//+GPL
220 231
221struct shopitems : zero_initialised 232struct shopitems : zero_initialised
222{ 233{
223 const char *name; /* name of the item in question, null if it is the default item */ 234 const char *name; /* name of the item in question, null if it is the default item */
296 shstr ACC (RW, path); /* Filename of the map */ 307 shstr ACC (RW, path); /* Filename of the map */
297 uint64 ACC (RW, max_volume); // maximum volume for all items on a mapspace 308 uint64 ACC (RW, max_volume); // maximum volume for all items on a mapspace
298 int ACC (RW, max_items); // maximum number of items on a mapspace 309 int ACC (RW, max_items); // maximum number of items on a mapspace
299 310
300//-GPL 311//-GPL
312
313 physics_queue pq[PHYSICS_QUEUES];
314 MTH void queue_physics (object *ob);
315 MTH void queue_physics_at (int x, int y);
316 MTH void post_load_physics ();
317 MTH int run_physics (tick_t tick, int max_objects);
301 318
302 // the maptile:: is neccessary here for the perl interface to work 319 // the maptile:: is neccessary here for the perl interface to work
303 MTH sint8 darklevel (sint8 outside = maptile::outdoor_darkness) const 320 MTH sint8 darklevel (sint8 outside = maptile::outdoor_darkness) const
304 { 321 {
305 return clamp (outdoor ? darkness + outside : darkness, 0, MAX_DARKNESS); 322 return clamp (outdoor ? darkness + outside : darkness, 0, MAX_DARKNESS);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines