mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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( ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user