From 2b9d7a0b559a58557b8c4d6c95ad0e68c7428f0e Mon Sep 17 00:00:00 2001 From: hikerstk Date: Tue, 2 Jun 2009 12:01:27 +0000 Subject: [PATCH] Cleaned up #includes, for debugging F1 triggers now also an explosion. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3572 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/input/input_manager.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/input/input_manager.cpp b/src/input/input_manager.cpp index 6db3abdad..313ec2903 100644 --- a/src/input/input_manager.cpp +++ b/src/input/input_manager.cpp @@ -17,8 +17,6 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "input/input_manager.hpp" -#include "input/device_manager.hpp" -#include "graphics/irr_driver.hpp" #include #include @@ -27,22 +25,23 @@ #include #include -#include "input/input.hpp" -//#include "actionmap.hpp" -#include "user_config.hpp" - +#include "history.hpp" #include "main_loop.hpp" #include "player.hpp" #include "user_config.hpp" +#include "race_manager.hpp" + +#include "graphics/irr_driver.hpp" #include "gui/options_screen.hpp" #include "gui/state_manager.hpp" #include "gui/engine.hpp" -#include "race_manager.hpp" -#include "modes/world.hpp" -#include "karts/kart.hpp" -#include "history.hpp" #include "gui/race_gui.hpp" #include "gui/screen.hpp" +#include "input/device_manager.hpp" +#include "input/input.hpp" +#include "items/projectile_manager.hpp" +#include "karts/kart.hpp" +#include "modes/world.hpp" InputManager *input_manager; @@ -114,7 +113,7 @@ void InputManager::handleStaticAction(int key, int value) { Kart* kart = RaceManager::getWorld()->getLocalPlayerKart(0); kart->setPowerup(POWERUP_BOWLING, 10000); - kart->attach(ATTACH_ANVIL, 5); + projectile_manager->newExplosion(Vec3(0, 8, 0.5)); } break; case KEY_F2: