Header clean up

This commit is contained in:
Benau 2018-01-22 01:11:53 +08:00
parent 9aae773e91
commit 0aa61ec746
4 changed files with 13 additions and 5 deletions

View File

@ -54,6 +54,7 @@
#include "karts/explosion_animation.hpp"
#include "karts/kart_gfx.hpp"
#include "karts/kart_model.hpp"
#include "karts/kart_properties.hpp"
#include "karts/kart_properties_manager.hpp"
#include "karts/kart_rewinder.hpp"
#include "karts/max_speed.hpp"
@ -3019,10 +3020,15 @@ const Vec3& Kart::getNormal() const
} // getNormal
// ------------------------------------------------------------------------
void Kart::playSound(SFXBuffer* buffer)
{
getNextEmitter()->play(getXYZ(), buffer);
}
} // playSound
// ------------------------------------------------------------------------
const video::SColor& Kart::getColor() const
{
return m_kart_properties->getColor();
} // getColor
/* EOF */

View File

@ -30,9 +30,10 @@
#include "items/powerup_manager.hpp" // For PowerupType
#include "karts/abstract_kart.hpp"
#include "karts/kart_properties.hpp"
#include "utils/no_copy.hpp"
#include <SColor.h>
class AbstractKartAnimation;
class Attachment;
class btKart;
@ -347,8 +348,7 @@ public:
virtual btTransform getAlignedTransform(const float customPitch=-1);
// -------------------------------------------------------------------------
/** Returns the color used for this kart. */
const video::SColor &getColor() const
{return m_kart_properties->getColor();}
const irr::video::SColor &getColor() const;
// ------------------------------------------------------------------------
/** Returns the time till full steering is reached for this kart.
* \param steer Current steer value (must be >=0), on which the time till

View File

@ -25,6 +25,7 @@
#include "graphics/material.hpp"
#include "karts/kart.hpp"
#include "karts/kart_model.hpp"
#include "karts/kart_properties.hpp"
#include "physics/triangle_mesh.hpp"
#include "tracks/terrain_info.hpp"
#include "tracks/track.hpp"

View File

@ -19,6 +19,7 @@
#include "script_kart.hpp"
#include "karts/kart.hpp"
#include "karts/kart_properties.hpp"
#include "modes/world.hpp"
#include "scriptvec3.hpp"