mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Further refinement of new ModularizedTacticalAI architecture; added plans for Crows
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6017 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -11,10 +11,15 @@ namespace AI
|
||||
{
|
||||
namespace tactical
|
||||
{
|
||||
/// Simply end the turn for the npc passed in the manipulated_object wrapper, then return.
|
||||
void NullPlan::execute(bool turn_based, PlanInputData& manipulated_object)
|
||||
NullPlan::NullPlan(SOLDIERTYPE* npc)
|
||||
: Plan(npc)
|
||||
{
|
||||
EndAIGuysTurn(manipulated_object.controlled_npc_);
|
||||
}
|
||||
|
||||
/// Simply set the action to be performed to AI_ACTION_NONE
|
||||
void NullPlan::execute(PlanInputData& environment)
|
||||
{
|
||||
get_npc()->aiData.bAction = AI_ACTION_NONE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user