mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6017 3b4a5df2-a311-0410-b5c6-a8a6f20db521
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
/**
|
|
* @file
|
|
* @author feynman (bears-pit.com)
|
|
*/
|
|
|
|
#ifndef NULL_PLAN_H_
|
|
#define NULL_PLAN_H_
|
|
|
|
#include "Plan.h"
|
|
|
|
namespace AI
|
|
{
|
|
namespace tactical
|
|
{
|
|
/**@class NullPlan
|
|
* @brief Component/Concrete Product. The NullPlan lets makes the NPC executing it do absolutely nothing.
|
|
*
|
|
* The purpose of this plan is two-fold. Firstly, it is a good starting point for new plans; to use it
|
|
* as such, perform a
|
|
|
|
* - \c svn copy include/NullPlan.h include/YourPlan.h
|
|
* - \c svn copy src/NullPlan.cpp src/YourPlan.cpp
|
|
*
|
|
* Remember to
|
|
*
|
|
* - Adjust the include guards
|
|
* - A concrete factory using this plan is required in order for it to be used
|
|
*
|
|
* And secondly, it is a debugging tool (cf. NullPlanFactory)
|
|
*/
|
|
class NullPlan: public Plan
|
|
{
|
|
private:
|
|
public:
|
|
NullPlan(SOLDIERTYPE* npc);
|
|
virtual void execute(PlanInputData& environment);
|
|
bool done() const {return false;}
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif
|
|
|