Please verify that headers are still self-contained after removing a dependency.

This commit is contained in:
Guillaume Melquiond 2005-03-23 08:52:10 +00:00
parent 3b7638b0d0
commit 6c5e990813
9 changed files with 25 additions and 10 deletions

View File

@ -15,6 +15,7 @@
#include "array.hpp" #include "array.hpp"
#include "builder.hpp" #include "builder.hpp"
#include "config.hpp"
#include "log.hpp" #include "log.hpp"
#include "pathutils.hpp" #include "pathutils.hpp"
#include "terrain.hpp" #include "terrain.hpp"

View File

@ -13,14 +13,16 @@
#ifndef BUILDER_H_INCLUDED #ifndef BUILDER_H_INCLUDED
#define BUILDER_H_INCLUDED #define BUILDER_H_INCLUDED
class config; #include "animated.hpp"
#include "image.hpp" #include "image.hpp"
#include "map.hpp" #include "map.hpp"
#include "animated.hpp"
#include "SDL.h" #include "SDL.h"
#include <string>
#include <map> #include <map>
#include <set>
#include <string>
class config;
/** /**
* The class terrain_builder is constructed from a config object, and a gamemap * The class terrain_builder is constructed from a config object, and a gamemap

View File

@ -14,6 +14,8 @@
#ifndef GAME_ERRORS_HPP_INCLUDED #ifndef GAME_ERRORS_HPP_INCLUDED
#define GAME_ERRORS_HPP_INCLUDED #define GAME_ERRORS_HPP_INCLUDED
#include <string>
namespace game { namespace game {
struct error { struct error {
error() {} error() {}

View File

@ -13,9 +13,14 @@
#ifndef HOTKEYS_HPP_INCLUDED #ifndef HOTKEYS_HPP_INCLUDED
#define HOTKEYS_HPP_INCLUDED #define HOTKEYS_HPP_INCLUDED
#include "events.hpp"
#include "SDL.h"
#include <string>
#include <vector>
class config; class config;
class display; class display;
#include "SDL.h"
//the hotkey system allows hotkey definitions to be loaded from //the hotkey system allows hotkey definitions to be loaded from
//configuration objects, and then detect if a keyboard event //configuration objects, and then detect if a keyboard event

View File

@ -2,7 +2,6 @@
#define IMAGE_HPP_INCLUDED #define IMAGE_HPP_INCLUDED
#include "map.hpp" #include "map.hpp"
#include "unit.hpp"
#include "sdl_utils.hpp" #include "sdl_utils.hpp"
#include "SDL.h" #include "SDL.h"

View File

@ -13,14 +13,14 @@
#ifndef REPLAY_H_INCLUDED #ifndef REPLAY_H_INCLUDED
#define REPLAY_H_INCLUDED #define REPLAY_H_INCLUDED
class display;
class gamestatus;
#include "config.hpp" #include "config.hpp"
#include "gamestatus.hpp"
#include "map.hpp" #include "map.hpp"
#include "random.hpp" #include "random.hpp"
#include "unit.hpp" #include "unit.hpp"
class display;
struct verification_manager struct verification_manager
{ {
verification_manager(const unit_map& units); verification_manager(const unit_map& units);

View File

@ -1,10 +1,12 @@
#ifndef TOOLTIPS_HPP_INCLUDED #ifndef TOOLTIPS_HPP_INCLUDED
#define TOOLTIPS_HPP_INCLUDED #define TOOLTIPS_HPP_INCLUDED
class CVideo;
#include "SDL.h" #include "SDL.h"
#include <string>
class CVideo;
namespace tooltips { namespace tooltips {
struct manager struct manager

View File

@ -13,6 +13,8 @@
#ifndef VARIABLE_H_INCLUDED #ifndef VARIABLE_H_INCLUDED
#define VARIABLE_H_INCLUDED #define VARIABLE_H_INCLUDED
#include <string>
class config; class config;
namespace game_events { namespace game_events {

View File

@ -18,6 +18,8 @@
#include "textbox.hpp" #include "textbox.hpp"
#include "widget.hpp" #include "widget.hpp"
class display;
namespace gui { namespace gui {
/// A widget where the user may navigate through directories and choose /// A widget where the user may navigate through directories and choose