From ecc1212c11d2dabf2b9cfc31805db3cda2b0368d Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 22 Oct 2012 21:51:05 +0000 Subject: [PATCH] Allow changing the various levels of AI mostly using the stk_config file. Note at this stage no tuning of easy or medium level was done, this version should behave the same as the hard-coded version. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11736 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/stk_config.xml | 68 +++++++++- src/karts/controller/ai_base_controller.cpp | 30 ++--- src/karts/controller/ai_base_controller.hpp | 7 - src/karts/controller/ai_properties.cpp | 54 +++++++- src/karts/controller/ai_properties.hpp | 38 +++++- .../controller/default_ai_controller.cpp | 3 - src/karts/controller/end_controller.cpp | 1 - src/karts/controller/present_ai.cpp | 3 - src/karts/controller/skidding_ai.cpp | 121 +++++------------- src/karts/controller/skidding_ai.hpp | 51 +------- src/karts/kart_properties.cpp | 33 +++-- src/karts/kart_properties.hpp | 12 +- 12 files changed, 225 insertions(+), 196 deletions(-) diff --git a/data/stk_config.xml b/data/stk_config.xml index 7554563c9..54308ea69 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -215,6 +215,23 @@ reduce-turn-min="0.2" reduce-turn-max="0.8"/> - - + + + + +