mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
* Removes the need to constantly check for fCivilian, ARMED_VEHICLE, ENEMY_ROBOT etc inside DecideAction * Move AI decision checks into their own functions, such as DecideActionRadioRedAlert * Add new entry to ActionType. AI_ACTION_INVALID signals that no valid action was found when a function returns, or no valid action is possible * Do a weighted random selection for choosing target under DecideActionBlackSoldier
24 lines
561 B
C++
24 lines
561 B
C++
#pragma once
|
|
|
|
#include "Plan.h"
|
|
|
|
namespace AI
|
|
{
|
|
namespace tactical
|
|
{
|
|
/**@class LegacyAIPlan
|
|
* @brief Component/Concrete Product. Wrapper/Re-Write of DecideAction()
|
|
*
|
|
* Wrapper around robot related AI uplifted from original DecideAction() routines
|
|
*/
|
|
class RobotPlan : public Plan
|
|
{
|
|
private:
|
|
public:
|
|
RobotPlan(SOLDIERTYPE* npc);
|
|
virtual void execute(PlanInputData& environment);
|
|
virtual bool done() const { return false; }
|
|
};
|
|
}
|
|
}
|