From: Daniel Karbach Date: Sat, 29 Sep 2012 17:21:29 +0000 (+0200) Subject: added forwarding header for map namespace X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=4d4b40f06357392931cb309d0284875c40c2f2f0;p=l2e.git added forwarding header for map namespace --- diff --git a/src/map/Area.h b/src/map/Area.h index 9bca341..9834f5c 100644 --- a/src/map/Area.h +++ b/src/map/Area.h @@ -8,18 +8,14 @@ #ifndef MAP_AREA_H_ #define MAP_AREA_H_ +#include "fwd.h" #include "../geometry/Vector.h" +#include "../graphics/fwd.h" #include -namespace graphics { - class Sprite; -} - namespace map { -class Tile; - class Area { public: diff --git a/src/map/Map.h b/src/map/Map.h index 9fb24af..5733760 100644 --- a/src/map/Map.h +++ b/src/map/Map.h @@ -8,18 +8,14 @@ #ifndef MAP_MAP_H_ #define MAP_MAP_H_ +#include "fwd.h" #include "../geometry/Vector.h" +#include "../graphics/fwd.h" #include -namespace graphics { - class Sprite; -} - namespace map { -class Area; - class Map { public: diff --git a/src/map/fwd.h b/src/map/fwd.h new file mode 100644 index 0000000..7ffe7a2 --- /dev/null +++ b/src/map/fwd.h @@ -0,0 +1,19 @@ +/* + * fwd.h + * + * Created on: Sep 29, 2012 + * Author: holy + */ + +#ifndef MAP_FWD_H_ +#define MAP_FWD_H_ + +namespace map { + +class Area; +class Map; +class Tile; + +} + +#endif /* MAP_FWD_H_ */