Micro AIs: remove all the MAI engine macros

They are not needed any more now that all MAIs were switched to using
external CAs.  For the time being, we keep the macros in place, but
they now only display deprecation messages and have no actual
functionality.
This commit is contained in:
mattsc 2013-10-26 18:57:08 -07:00
parent 6ad899cbf5
commit 354fb361d4

View file

@ -18,93 +18,7 @@
[/stage]
#enddef
#define MICRO_AI_HEALER_SUPPORT
# Sets up the healer support Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=healer_support
description=_"Healer Support Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_healer_support_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_BOTTLENECK_DEFENSE
# Sets up the bottleneck defense Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=bottleneck_defense
description=_"Bottleneck Defense Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_bottleneck_defense_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_MESSENGER_ESCORT
# Sets up the messenger escort Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=messenger_escort
description=_"Messenger Escort Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_messenger_escort_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_ANIMALS
# Sets up all the animals Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=animals
description=_"Animals Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
local engine = {}
engine = wesnoth.require("ai/micro_ais/ais/mai_big_animals_engine.lua").init(ai, engine)
engine = wesnoth.require("ai/micro_ais/ais/mai_forest_animals_engine.lua").init(ai, engine)
engine = wesnoth.require("ai/micro_ais/ais/mai_herding_engine.lua").init(ai, engine)
engine = wesnoth.require("ai/micro_ais/ais/mai_hunter_engine.lua").init(ai, engine)
engine = wesnoth.require("ai/micro_ais/ais/mai_swarm_engine.lua").init(ai, engine)
engine = wesnoth.require("ai/micro_ais/ais/mai_wolves_engine.lua").init(ai, engine)
engine = wesnoth.require("ai/micro_ais/ais/mai_wolves_multipacks_engine.lua").init(ai, engine)
return engine
>>
[/engine]
{RCA_STAGE}
[/ai]
#define MAI_MACRO_DEPRECATION MACRO_NAME
# Somewhat hacky way to get a deprecation message displayed
# This macro goes into the [side] tag, so ActionWML tags cannot be used
[unit]
@ -114,11 +28,11 @@
[event]
name=prestart
id=ai_micro_ai_animals_deprecation_message
id=micro_ai_deprecation_message_{MACRO_NAME}
[wml_message]
logger=warn
message = "The MICRO_AI_ANIMALS macro is deprecated. Use the macros for the individual animal Micro AI engines instead."
message = "The {MACRO_NAME} macro is deprecated as AI engine macros are not needed any more. You can safely delete it from the [side] tag."
[/wml_message]
[kill]
@ -128,409 +42,50 @@
[/unit]
#enddef
#define MICRO_AI_BIG_ANIMALS
# Sets up all the big_animals Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=big_animals
description=_"Big Animals Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_big_animals_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#define MICRO_AI_HEALER_SUPPORT
{MAI_MACRO_DEPRECATION MICRO_AI_HEALER_SUPPORT}
#enddef
#define MICRO_AI_FOREST_ANIMALS
# Sets up all the forest_animals Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=forest_animals
description=_"Forest Animals Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_forest_animals_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#define MICRO_AI_BOTTLENECK_DEFENSE
{MAI_MACRO_DEPRECATION MICRO_AI_BOTTLENECK_DEFENSE}
#enddef
#define MICRO_AI_HERDING
# Sets up all the herding Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=herding
description=_"Herding Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_herding_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#define MICRO_AI_MESSENGER_ESCORT
{MAI_MACRO_DEPRECATION MICRO_AI_MESSENGER_ESCORT}
#enddef
#define MICRO_AI_HUNTER
# Sets up all the hunter Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=hunter
description=_"Hunter Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_hunter_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_SWARM
# Sets up all the swarm Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=swarm
description=_"Swarm Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_swarm_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_WOLVES
# Sets up all the wolves Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=wolves
description=_"Wolves Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_wolves_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_WOLVES_MULTIPACKS
# Sets up all the wolves_multipacks Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=wolves_multipacks
description=_"Multipack Wolves Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_wolves_multipacks_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#define MICRO_AI_ANIMALS
{MAI_MACRO_DEPRECATION MICRO_AI_ANIMALS}
#enddef
#define MICRO_AI_GUARDIAN
# Sets up the guardian Micro AIs for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=guardian
description=_"Guardian Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
local engine = {}
engine = wesnoth.require("ai/micro_ais/ais/mai_coward_engine.lua").init(ai, engine)
engine = wesnoth.require("ai/micro_ais/ais/mai_return_guardian_engine.lua").init(ai, engine)
engine = wesnoth.require("ai/micro_ais/ais/mai_stationed_guardian_engine.lua").init(ai, engine)
engine = wesnoth.require("ai/micro_ais/ais/mai_zone_guardian_engine.lua").init(ai, engine)
return engine
>>
[/engine]
{RCA_STAGE}
[/ai]
# Somewhat hacky way to get a deprecation message displayed
# This macro goes into the [side] tag, so ActionWML tags cannot be used
[unit]
type=Fog Clearer
x,y=1,1
id=ai_micro_ai_guardian_fake_unit
[event]
name=prestart
id=ai_micro_ai_guardian_deprecation_message
[wml_message]
logger=warn
message = "The MICRO_AI_GUARDIAN macro is deprecated. Use the macros for the individual guardian Micro AI engines instead."
[/wml_message]
[kill]
id=ai_micro_ai_guardian_fake_unit
[/kill]
[/event]
[/unit]
#enddef
#define MICRO_AI_COWARD
# Sets up the coward Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=coward
description=_"Coward Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_coward_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_RETURN_GUARDIAN
# Sets up the return guardian Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=return_guardian
description=_"Return Guardian Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_return_guardian_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_STATIONED_GUARDIAN
# Sets up the stationed guardian Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=stationed_guardian
description=_"Stationed Guardian Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_stationed_guardian_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
#enddef
#define MICRO_AI_ZONE_GUARDIAN
# Sets up the zone guardian Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=zone_guardian
description=_"Zone Guardian Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_zone_guardian_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
{MAI_MACRO_DEPRECATION MICRO_AI_GUARDIAN}
#enddef
#define MICRO_AI_PROTECT_UNIT
# Sets up the protect unit Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=protect_unit
description=_"Protect Unit Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_protect_unit_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
{MAI_MACRO_DEPRECATION MICRO_AI_PROTECT_UNIT}
#enddef
#define MICRO_AI_PATROL
# Sets up the patrol Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=patrol
description=_"Patrol Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_patrol_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
{MAI_MACRO_DEPRECATION MICRO_AI_PATROL}
#enddef
#define MICRO_AI_LURKERS
# Sets up the lurkers Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=lurkers
description=_"Lurkers Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_lurkers_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
{MAI_MACRO_DEPRECATION MICRO_AI_LURKERS}
#enddef
#define MICRO_AI_RECRUITING
# Sets up the recruiting Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=recruiting
description=_"Recruiting Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_recruit_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
{MAI_MACRO_DEPRECATION MICRO_AI_RECRUITING}
#enddef
#define MICRO_AI_GOTO
# Sets up the Goto Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=goto
description=_"Goto Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_goto_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
{MAI_MACRO_DEPRECATION MICRO_AI_GOTO}
#enddef
#define MICRO_AI_HANG_OUT
# Sets up the Hang Out Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=hang_out
description=_"Hang Out Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_hang_out_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
{MAI_MACRO_DEPRECATION MICRO_AI_HANG_OUT}
#enddef
#define MICRO_AI_SIMPLE_ATTACK
# Sets up the Simple Attack Micro AI for a side
# Include this macro in the side definition
# Needs to be in [side], does not work in [modify_side]
[ai]
id=simple_attack
description=_"Simple Attack Micro AI"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("ai/micro_ais/ais/mai_simple_attack_engine.lua").init(ai)
>>
[/engine]
{RCA_STAGE}
[/ai]
{MAI_MACRO_DEPRECATION MICRO_AI_SIMPLE_ATTACK}
#enddef