More work on 'thou shalt not include irrlicht.h everywhere carelessly', plus add debug checks to tinygettext in a desperate attempt to make STK Arthur_D-proof

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8662 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-05-22 18:41:52 +00:00
parent a37008d014
commit 5b073ca9d0
11 changed files with 43 additions and 9 deletions

View File

@ -20,7 +20,7 @@
#include <assert.h>
#include "config/device_config.hpp"
#include <keycodes.h>
#include <SKeyMap.h>
//==== D E V I C E C O N F I G =================================================

View File

@ -24,7 +24,11 @@
#include <string>
#include "irrlicht.h"
namespace irr
{
namespace scene { class ISceneNode; class IMesh; }
namespace video { class ITexture; }
}
using namespace irr;
/**

View File

@ -22,7 +22,13 @@
#include <vector>
#include "irrlicht.h"
#include <aabbox3d.h>
#include <SMeshBuffer.h>
namespace irr
{
namespace video { class SMaterial; }
namespace scene { class IMeshSceneNode; }
}
using namespace irr;
#include "utils/no_copy.hpp"

View File

@ -20,7 +20,12 @@
#ifndef HEADER_SLIP_STREAM_HPP
#define HEADER_SLIP_STREAM_HPP
#include "irrlicht.h"
#include <matrix4.h>
namespace irr
{
namespace video { class SMaterial; class SColor; }
namespace scene { class IMeshSceneNode; class IMesh; class IMesh; }
}
using namespace irr;
#include "graphics/moving_texture.hpp"

View File

@ -17,7 +17,7 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <keycodes.h>
#include <SKeyMap.h>
#include "input/binding.hpp"
#include "utils/string_utils.hpp"
#include "utils/translation.hpp"

View File

@ -22,7 +22,6 @@
#include <string>
#include <vector>
#include <irrlicht.h>
#include <set>
#include "guiengine/event_handler.hpp"

View File

@ -20,7 +20,7 @@
#ifndef HEADER_CONTROLLER_HPP
#define HEADER_CONTROLLER_HPP
#include "irrlicht.h"
#include <irrString.h>
using namespace irr;
#include "input/input.hpp"

View File

@ -22,7 +22,11 @@
#include <string>
#include "irrlicht.h"
#include <IAnimatedMeshSceneNode.h>
namespace irr
{
namespace scene { class IAnimatedMesh; class IMesh; class ISceneNode; }
}
using namespace irr;
#include "utils/no_copy.hpp"

View File

@ -23,7 +23,12 @@
#include <string>
#include <vector>
#include "irrlicht.h"
#include <SColor.h>
#include <irrString.h>
namespace irr
{
namespace video { class ITexture; }
}
using namespace irr;
#include "audio/sfx_manager.hpp"

View File

@ -48,10 +48,17 @@ DictionaryManager::DictionaryManager(const std::string& charset_) :
empty_dict(),
filesystem(new StkFileSystem)
{
#ifdef DEBUG
m_magic_number = 0xD1C70471;
#endif
}
DictionaryManager::~DictionaryManager()
{
#ifdef DEBUG
assert(m_magic_number == 0xD1C70471);
m_magic_number = 0xDEADBEEF;
#endif
for(Dictionaries::iterator i = dictionaries.begin(); i != dictionaries.end(); ++i)
{
delete i->second;

View File

@ -55,6 +55,10 @@ private:
void clear_cache();
#ifdef DEBUG
unsigned int m_magic_number;
#endif
public:
DictionaryManager(const std::string& charset_ = "UTF-8");
~DictionaryManager();