Fix: missing files

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8128 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2016-03-27 16:23:29 +00:00
parent 7bf2943849
commit a4cfe642ef
2 changed files with 58 additions and 0 deletions
@@ -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_
@@ -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( ) );
}
}
}