From a4cfe642ef5da261e562c1be76a27ffa4e7705fd Mon Sep 17 00:00:00 2001 From: Flugente Date: Sun, 27 Mar 2016 16:23:29 +0000 Subject: [PATCH] Fix: missing files git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8128 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- .../include/LegacyArmedVehiclePlan.h | 33 +++++++++++++++++++ .../src/LegacyArmedVehiclePlan.cpp | 25 ++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 ModularizedTacticalAI/include/LegacyArmedVehiclePlan.h create mode 100644 ModularizedTacticalAI/src/LegacyArmedVehiclePlan.cpp diff --git a/ModularizedTacticalAI/include/LegacyArmedVehiclePlan.h b/ModularizedTacticalAI/include/LegacyArmedVehiclePlan.h new file mode 100644 index 00000000..0fdf725e --- /dev/null +++ b/ModularizedTacticalAI/include/LegacyArmedVehiclePlan.h @@ -0,0 +1,33 @@ +/** +* @file +* @author Flugente (bears-pit.com) +*/ + +#ifndef LEGACY_ARMED_VEHICLE_PLAN_H_ +#define LEGACY_ARMED_VEHICLE_PLAN_H_ + +#include "Plan.h" + +namespace AI +{ + namespace tactical + { + /**@class LegacyarmedVehiclePlan + * @brief Component/Concrete Product. Wrapper/Re-Write of ZombieDecideAction() + * + * This plan began as a simple forwarding object for ZombieDecideAction(), and will, in the course of the AI redesign, + * be split into elementary NPC actions. It is as such only a intermediate product used to bring structure where + * the is currently none. + */ + class LegacyArmedVehiclePlan : public Plan + { + private: + public: + LegacyArmedVehiclePlan( SOLDIERTYPE* npc ); + virtual void execute( PlanInputData& environment ); + virtual bool done( ) const { return false; } + }; + } +} + +#endif // LEGACY_ARMED_VEHICLE_PLAN_H_ diff --git a/ModularizedTacticalAI/src/LegacyArmedVehiclePlan.cpp b/ModularizedTacticalAI/src/LegacyArmedVehiclePlan.cpp new file mode 100644 index 00000000..7d0112d3 --- /dev/null +++ b/ModularizedTacticalAI/src/LegacyArmedVehiclePlan.cpp @@ -0,0 +1,25 @@ +/** +* @file +* @author Flugente (bears-pit.com) +*/ + +#include "../include/LegacyArmedVehiclePlan.h" +#include "Soldier Control.h" // definition of SOLDIERTYPE +#include "aiinternals.h" + +namespace AI +{ + namespace tactical + { + LegacyArmedVehiclePlan::LegacyArmedVehiclePlan( SOLDIERTYPE* npc ) + : Plan( npc ) + { + } + + void LegacyArmedVehiclePlan::execute( PlanInputData& environment ) + { + get_npc( )->aiData.bAction = ArmedVehicleDecideAction( get_npc( ) ); + } + } +} +