Google
Web alhem.net

Map.h

Go to the documentation of this file.
00001 #ifndef _MAP_H
00002 #define _MAP_H
00003 
00004 #include "MapObject.h"
00005 
00006 
00007 class Map
00008 {
00009 public:
00010         Map();
00011         ~Map();
00012 
00013         void SetMax(int,int);
00014         int GetMaxX() { return m_max_x; }
00015         int GetMaxY() { return m_max_y; }
00016         double GetNearest(double x,double y);
00017         void SetWraps(bool x = true) { m_wraps = x; }
00018         bool GetWraps() { return m_wraps; }
00019 
00020         void AddObject(MapObject *p,bool delete_by_map = true);
00021         void IncreaseTime(long usec);
00022 
00023         void SpawnRandom();
00024         size_t objects_in_map() { return m_objects.size(); }
00025 
00026 private:
00027         int m_max_x;
00028         int m_max_y;
00029         bool m_wraps;
00030         mapobject_v m_objects;
00031 };
00032 
00033 
00034 
00035 
00036 #endif // _MAP_H

Generated for Robot World by doxygen 1.3.6

Page, code, and content Copyright (C) 2004 by Anders Hedström