Update create_kart_properties.py and include
This commit is contained in:
parent
0a6a487b29
commit
83995cf9d4
@ -31,7 +31,6 @@
|
|||||||
#include "karts/abstract_kart.hpp"
|
#include "karts/abstract_kart.hpp"
|
||||||
#include "karts/explosion_animation.hpp"
|
#include "karts/explosion_animation.hpp"
|
||||||
#include "karts/kart.hpp"
|
#include "karts/kart.hpp"
|
||||||
#include "karts/kart_properties.hpp"
|
|
||||||
#include "karts/skidding.hpp"
|
#include "karts/skidding.hpp"
|
||||||
#include "physics/btKart.hpp"
|
#include "physics/btKart.hpp"
|
||||||
#include "race/race_manager.hpp"
|
#include "race/race_manager.hpp"
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#include "karts/explosion_animation.hpp"
|
#include "karts/explosion_animation.hpp"
|
||||||
#include "karts/kart.hpp"
|
#include "karts/kart.hpp"
|
||||||
#include "karts/kart_model.hpp"
|
#include "karts/kart_model.hpp"
|
||||||
#include "karts/kart_properties.hpp"
|
|
||||||
#include "karts/skidding.hpp"
|
#include "karts/skidding.hpp"
|
||||||
#include "physics/btKart.hpp"
|
#include "physics/btKart.hpp"
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include "config/user_config.hpp"
|
#include "config/user_config.hpp"
|
||||||
#include "karts/abstract_kart.hpp"
|
#include "karts/abstract_kart.hpp"
|
||||||
#include "karts/kart_properties.hpp"
|
|
||||||
#include "race/race_manager.hpp"
|
#include "race/race_manager.hpp"
|
||||||
#include "tracks/drive_graph.hpp"
|
#include "tracks/drive_graph.hpp"
|
||||||
|
|
||||||
|
@ -827,7 +827,6 @@ float AbstractCharacteristic::getWheelsDampingCompression() const
|
|||||||
return result;
|
return result;
|
||||||
} // getWheelsDampingCompression
|
} // getWheelsDampingCompression
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
float AbstractCharacteristic::getJumpAnimationTime() const
|
float AbstractCharacteristic::getJumpAnimationTime() const
|
||||||
{
|
{
|
||||||
|
@ -291,11 +291,6 @@ public:
|
|||||||
float getWheelsDampingRelaxation() const;
|
float getWheelsDampingRelaxation() const;
|
||||||
float getWheelsDampingCompression() const;
|
float getWheelsDampingCompression() const;
|
||||||
|
|
||||||
float getCameraDistance() const;
|
|
||||||
float getCameraForwardUpAngle() const;
|
|
||||||
bool getCameraForwardSmoothing() const;
|
|
||||||
float getCameraBackwardUpAngle() const;
|
|
||||||
|
|
||||||
float getJumpAnimationTime() const;
|
float getJumpAnimationTime() const;
|
||||||
|
|
||||||
float getLeanMax() const;
|
float getLeanMax() const;
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include "audio/sfx_manager.hpp"
|
#include "audio/sfx_manager.hpp"
|
||||||
#include "addons/addon.hpp"
|
#include "addons/addon.hpp"
|
||||||
#include "audio/sfx_manager.hpp"
|
#include "audio/sfx_manager.hpp"
|
||||||
#include "config/user_config.hpp"
|
|
||||||
#include "config/stk_config.hpp"
|
#include "config/stk_config.hpp"
|
||||||
#include "config/player_manager.hpp"
|
#include "config/player_manager.hpp"
|
||||||
#include "graphics/central_settings.hpp"
|
#include "graphics/central_settings.hpp"
|
||||||
@ -355,7 +354,6 @@ void KartProperties::combineCharacteristics(HandicapLevel handicap)
|
|||||||
m_combined_characteristic->addCharacteristic(kart_properties_manager->
|
m_combined_characteristic->addCharacteristic(kart_properties_manager->
|
||||||
getDifficultyCharacteristic(RaceManager::get()->getDifficultyAsString(
|
getDifficultyCharacteristic(RaceManager::get()->getDifficultyAsString(
|
||||||
RaceManager::get()->getDifficulty())));
|
RaceManager::get()->getDifficulty())));
|
||||||
// FIXME add get user characteristics
|
|
||||||
|
|
||||||
// Try to get the kart type
|
// Try to get the kart type
|
||||||
const AbstractCharacteristic *characteristic = kart_properties_manager->
|
const AbstractCharacteristic *characteristic = kart_properties_manager->
|
||||||
@ -775,7 +773,6 @@ float KartProperties::getWheelsDampingCompression() const
|
|||||||
return m_cached_characteristic->getWheelsDampingCompression();
|
return m_cached_characteristic->getWheelsDampingCompression();
|
||||||
} // getWheelsDampingCompression
|
} // getWheelsDampingCompression
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
float KartProperties::getJumpAnimationTime() const
|
float KartProperties::getJumpAnimationTime() const
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
//
|
||||||
// SuperTuxKart - a fun racing game with go-kart
|
// SuperTuxKart - a fun racing game with go-kart
|
||||||
// Copyright (C) 2006-2015 SuperTuxKart-Team
|
// Copyright (C) 2006-2015 SuperTuxKart-Team
|
||||||
//
|
//
|
||||||
|
@ -365,18 +365,18 @@ void OptionsScreenUI::init()
|
|||||||
updateCameraPresetSpinner();
|
updateCameraPresetSpinner();
|
||||||
} // init
|
} // init
|
||||||
|
|
||||||
void updateCamera()
|
void OptionsScreenUI::updateCamera()
|
||||||
{
|
{
|
||||||
bool in_game = StateManager::get()->getGameState() == GUIEngine::INGAME_MENU;
|
bool in_game = StateManager::get()->getGameState() == GUIEngine::INGAME_MENU;
|
||||||
if (in_game)
|
if (in_game)
|
||||||
{
|
|
||||||
(Camera::getActiveCamera()->getCameraSceneNode())->setFOV(DEGREE_TO_RAD * UserConfigParams::m_camera_fov);
|
|
||||||
CameraNormal *camera = dynamic_cast<CameraNormal*>(Camera::getActiveCamera());
|
|
||||||
if (camera)
|
|
||||||
{
|
{
|
||||||
camera->setDistanceToKart(UserConfigParams::m_camera_distance);
|
(Camera::getActiveCamera()->getCameraSceneNode())->setFOV(DEGREE_TO_RAD * UserConfigParams::m_camera_fov);
|
||||||
|
CameraNormal *camera = dynamic_cast<CameraNormal*>(Camera::getActiveCamera());
|
||||||
|
if (camera)
|
||||||
|
{
|
||||||
|
camera->setDistanceToKart(UserConfigParams::m_camera_distance);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionsScreenUI::updateCameraPresetSpinner()
|
void OptionsScreenUI::updateCameraPresetSpinner()
|
||||||
|
@ -58,6 +58,7 @@ class OptionsScreenUI : public GUIEngine::Screen, public GUIEngine::ScreenSingle
|
|||||||
|
|
||||||
std::map<core::stringw, std::string> m_skins;
|
std::map<core::stringw, std::string> m_skins;
|
||||||
|
|
||||||
|
void updateCamera();
|
||||||
public:
|
public:
|
||||||
friend class GUIEngine::ScreenSingleton<OptionsScreenUI>;
|
friend class GUIEngine::ScreenSingleton<OptionsScreenUI>;
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@ Engine: power, maxSpeed, genericMaxSpeed, brakeFactor, brakeTimeIncrease, maxSpe
|
|||||||
Gear: switchRatio(std::vector<float>/floatVector), powerIncrease(std::vector<float>/floatVector)
|
Gear: switchRatio(std::vector<float>/floatVector), powerIncrease(std::vector<float>/floatVector)
|
||||||
Mass
|
Mass
|
||||||
Wheels: dampingRelaxation, dampingCompression
|
Wheels: dampingRelaxation, dampingCompression
|
||||||
Camera: distance, forwardUpAngle, forwardSmoothing(bool), backwardUpAngle
|
|
||||||
Jump: animationTime
|
Jump: animationTime
|
||||||
Lean: max, speed
|
Lean: max, speed
|
||||||
Anvil: duration, weight, speedFactor
|
Anvil: duration, weight, speedFactor
|
||||||
|
Loading…
Reference in New Issue
Block a user