From 4d4b40f06357392931cb309d0284875c40c2f2f0 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sat, 29 Sep 2012 19:21:29 +0200 Subject: [PATCH 1/1] added forwarding header for map namespace --- src/map/Area.h | 8 ++------ src/map/Map.h | 8 ++------ src/map/fwd.h | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 src/map/fwd.h 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_ */ -- 2.39.2