Remove irrlicht.h in tracks code

This commit is contained in:
Benau 2022-11-17 08:21:58 +08:00
parent ec76b29633
commit 6b9a34b767
13 changed files with 32 additions and 4 deletions

View File

@ -33,6 +33,7 @@
#include <limits>
#include <ICameraSceneNode.h>
#include <ISceneManager.h>
#include <SViewFrustum.h>
#define MAX2(a, b) ((a) > (b) ? (a) : (b))

View File

@ -36,6 +36,8 @@
#include "utils/constants.hpp"
#include "utils/string_utils.hpp"
#include <ISceneNode.h>
// -----------------------------------------------------------------------------
Plunger::Plunger(AbstractKart *kart)
: Flyable(kart, PowerupManager::POWERUP_PLUNGER)

View File

@ -41,6 +41,8 @@
#include "utils/log.hpp" //TODO: remove after debugging is done
#include <ISceneNode.h>
float RubberBall::m_st_interval;
float RubberBall::m_st_min_interpolation_distance;
float RubberBall::m_st_squash_duration;

View File

@ -47,6 +47,8 @@
#include "utils/log.hpp"
#include "utils/vs.hpp"
#include <line2d.h>
#ifdef AI_DEBUG
# include "irrlicht.h"
using namespace irr;

View File

@ -47,6 +47,8 @@
#include "utils/log.hpp"
#include "utils/vs.hpp"
#include <line2d.h>
#ifdef AI_DEBUG
# include "irrlicht.h"
using namespace irr;

View File

@ -39,6 +39,7 @@
#include "utils/string_utils.hpp"
#include <ISceneManager.h>
#include <IMeshManipulator.h>
#include <IMeshSceneNode.h>
#include <ITexture.h>
using namespace irr;

View File

@ -37,6 +37,7 @@
#include "utils/translation.hpp"
#include <IGUIEnvironment.h>
#include <IGUIScrollBar.h>
using namespace GUIEngine;
using namespace irr;

View File

@ -58,6 +58,8 @@
#include "utils/string_utils.hpp"
#include "utils/translation.hpp"
#include <IGUIEnvironment.h>
using namespace Online;
using namespace GUIEngine;

View File

@ -32,8 +32,6 @@
#include "tracks/graph.hpp"
#include "tracks/quad.hpp"
#include "irrlicht.h"
#include <algorithm>
#include <cstdint>
#include <string>

View File

@ -33,6 +33,9 @@
#include "tracks/track.hpp"
#include "utils/log.hpp"
#include <ICameraSceneNode.h>
#include <ISceneManager.h>
#ifndef SERVER_ONLY
#include <ge_main.hpp>
#endif

View File

@ -26,6 +26,7 @@ using namespace irr;
#include "modes/world.hpp"
#include "tracks/track.hpp"
#include <IAnimatedMeshSceneNode.h>
#include <IMeshSceneNode.h>
#include <ISceneManager.h>
#include <IMeshManipulator.h>

View File

@ -29,7 +29,6 @@ class Track;
#include <vector>
#include <string>
#include <memory>
#include <irrlicht.h>
#include "io/xml_node.hpp"
namespace irr

View File

@ -32,7 +32,21 @@
#include <string>
#include <vector>
#include <irrlicht.h>
#include <irrString.h>
#include <rect.h>
#include <SColor.h>
namespace irr
{
namespace scene
{
class IMesh; class ISceneNode;
}
namespace video
{
class IImage; class ITexture;
}
}
using namespace irr;