From 8be9c3397a137bf8e773231d355d668a51d21da4 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 4 Feb 2010 22:53:24 +0000 Subject: [PATCH] Added first version of switch collectable. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4635 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/stk_config.xml | 5 +++ data/switch.collectable | 9 ++++ src/config/stk_config.cpp | 18 ++++++-- src/config/stk_config.hpp | 2 + src/graphics/irr_driver.cpp | 2 +- src/graphics/irr_driver.hpp | 2 +- src/input/input_manager.cpp | 8 ++++ src/items/item.cpp | 66 +++++++++++++++++++++++++--- src/items/item.hpp | 50 ++++++++++++++++----- src/items/item_manager.cpp | 83 +++++++++++++++++++++++++++++++---- src/items/item_manager.hpp | 9 ++++ src/items/powerup.cpp | 3 ++ src/items/powerup_manager.cpp | 3 ++ src/items/powerup_manager.hpp | 1 + src/karts/kart.cpp | 6 +-- src/tracks/track.cpp | 7 +-- 16 files changed, 237 insertions(+), 37 deletions(-) create mode 100644 data/switch.collectable diff --git a/data/stk_config.xml b/data/stk_config.xml index 57933d701..75b0d138a 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -70,6 +70,9 @@ anvil-time is the time an anvil is active zipper-time is the time a zipper is active zipper-force is the additional zipper force zipper-speed-gain is the one time additional speed +item-switch-time How long a switch is being effective. +switch-items for each item list the index of the item it is switched with. + Order: item, banana, big-nitro, small-nitro -->