Register the new stage and update build files

This commit is contained in:
Kevin_Xi 2014-07-28 10:17:20 +08:00
parent 3efc116abf
commit cb482a38fc
6 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#textdomain wesnoth-ai
[ai]
id=ai_sf_with_rca
description=_"Multiplayer_AI^Dev AI: Strategy formulation with RCA " # wmllint: no spellcheck
version=11300
[stage]
id=main_loop
name=testing_ai_default::strategy_formulation_with_rca
{AI_CA_GOTO}
{AI_CA_RECRUITMENT}
{AI_CA_MOVE_LEADER_TO_GOALS}
{AI_CA_MOVE_LEADER_TO_KEEP}
{AI_CA_COMBAT}
{AI_CA_HEALING}
{AI_CA_VILLAGES}
{AI_CA_RETREAT}
{AI_CA_MOVE_TO_TARGETS}
{AI_CA_LEADER_SHARES_KEEP}
[/stage]
[/ai]

View file

@ -150,6 +150,8 @@
<Unit filename="../../src/ai/testing/stage_fallback.hpp" />
<Unit filename="../../src/ai/testing/stage_rca.cpp" />
<Unit filename="../../src/ai/testing/stage_rca.hpp" />
<Unit filename="../../src/ai/testing/stage_sf_with_rca.cpp" />
<Unit filename="../../src/ai/testing/stage_sf_with_rca.hpp" />
<Unit filename="../../src/animated.hpp" />
<Unit filename="../../src/animated.tpp" />
<Unit filename="../../src/animated_game.cpp" />

View file

@ -187,6 +187,8 @@
<Unit filename="..\..\src\ai\testing\stage_fallback.hpp" />
<Unit filename="..\..\src\ai\testing\stage_rca.cpp" />
<Unit filename="..\..\src\ai\testing\stage_rca.hpp" />
<Unit filename="..\..\src\ai\testing\stage_sf_with_rca.cpp" />
<Unit filename="..\..\src\ai\testing\stage_sf_with_rca.hpp" />
<Unit filename="..\..\src\animated.hpp" />
<Unit filename="..\..\src\animated.tpp" />
<Unit filename="..\..\src\animated_game.cpp" />

View file

@ -702,6 +702,7 @@ set(wesnoth-main_SRC
ai/testing/ca_testing_recruitment.cpp
ai/testing/stage_fallback.cpp
ai/testing/stage_rca.cpp
ai/testing/stage_sf_with_rca.cpp
animated_game.cpp
attack_prediction.cpp
attack_prediction_display.cpp

View file

@ -223,6 +223,7 @@ wesnoth_sources = Split("""
ai/testing/ca_testing_recruitment.cpp
ai/testing/stage_fallback.cpp
ai/testing/stage_rca.cpp
ai/testing/stage_sf_with_rca.cpp
animated_game.cpp
attack_prediction.cpp
attack_prediction_display.cpp

View file

@ -42,6 +42,7 @@
#include "testing/ca_global_fallback.hpp" // for global_fallback_phase
#include "testing/ca_testing_move_to_targets.hpp"
#include "testing/ca_testing_recruitment.hpp"
#include "testing/stage_sf_with_rca.hpp"
#include "testing/stage_fallback.hpp" // for fallback_to_other_ai
#include "testing/stage_rca.hpp"
@ -81,6 +82,9 @@ static register_engine_factory<engine_lua>
static register_stage_factory<testing_ai_default::candidate_action_evaluation_loop>
candidate_action_evaluation_loop_factory("ai_default_rca::candidate_action_evaluation_loop");
static register_stage_factory<testing_ai_default::strategy_formulation_with_rca>
strategy_formulation_with_rca_factory("testing_ai_default::strategy_formulation_with_rca");
static register_stage_factory<testing_ai_default::fallback_to_other_ai>
fallback_to_other_ai_factory("testing_ai_default::fallback");