19 #include <luabind/luabind.hpp>
29 typedef std::list<DtLocation3D>
Points;
38 virtual luabind::object
getObject(lua_State* L,
int& index, std::string& message) = 0;
41 virtual luabind::object
getDebugObject(lua_State* L) {
return luabind::newtable(L); };
44 virtual void cancel(lua_State* L) {};
77 virtual void taskComplete() = 0;
95 static boost::shared_ptr<DtLuaNavRandomPointJob> Make(
99 double minDistanceFromStart,
100 double maxDistanceFromStart,
103 int numberOfPoints = 1,
104 double minDistanceBetweenPoints = 0.0,
106 bool isStrict =
true,
107 bool tightlyPack =
false,
108 bool needLos =
false,
109 bool groundClamp =
false,
120 virtual luabind::object
getObject(lua_State* L,
int& index, std::string& message);
127 virtual void cancel(lua_State* L);
139 virtual void start();
146 virtual bool beginPointGeneration();
161 double minDistanceFromStart,
162 double maxDistanceFromStart,
165 int numberOfPoints = 1,
166 double minDistanceBetweenPoints = 0.0,
168 bool isStrict =
true,
169 bool tightlyPack =
false,
170 bool needLos =
false,
171 bool groundClamp =
false,
201 static boost::shared_ptr<DtLuaNavPointOfInterestJob> Make(
215 virtual luabind::object
getObject(lua_State* L,
int& index, std::string& message);
227 virtual void start();
253 static boost::shared_ptr<DtLuaNavCoverPointJob> Make(
259 double distanceFromThreat,
261 unsigned numberOfPoints,
262 unsigned int queryQueuePriority);
271 virtual luabind::object
getObject(lua_State* L,
int& index, std::string& message);
283 virtual void start();
300 double distanceFromThreat,
302 unsigned numberOfPoints,
303 unsigned int queryQueuePriority);
325 bool useAbstractGraphs,
326 const DtLocation3D& avoidLocation,
double avoidanceRadius,
336 virtual luabind::object
getObject(lua_State* L,
int& index, std::string& message);
351 virtual void start();
366 bool useAbstractGraphs,
367 const DtLocation3D& avoidLocation,
double avoidanceRadius,
388 virtual void addJob(boost::shared_ptr<DtLuaNavJob> job);
390 std::list<boost::shared_ptr<DtLuaNavJob> >
myJobs;
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
bool myGenerated
Definition: luaNavJob.h:377
const DtString DtLuaNavCoverPointJobType
Definition: asciiSerializable.h:23
const char DtMovementModeFree[]
Definition: movementModes.h:11
Points myDebugPoints
Definition: luaNavJob.h:379
int myNavTag
Definition: luaNavJob.h:244
Severity
Definition: algorithmManager.h:29
virtual void addJob(boost::shared_ptr< DtLuaNavJob > job)
Lua object class which represents a feature navigation task.
Definition: luaNavJob.h:198
double myMinDistanceBetweenPoints
Definition: luaNavJob.h:178
bool myRanOnce
Definition: luaNavJob.h:188
DtLocation3D myThreatPoint
Definition: luaNavJob.h:308
std::list< DtLocation3D > Points
Definition: luaNavJob.h:29
Lua object class which finds a path to the specified location.
Definition: luaNavJob.h:318
This is the DtVrfObjectNavInterface subclass for objects which are actively querying the navigation s...
Definition: activeBotNavInterface.h:27
virtual void run(const DtAlgorithmManager &mgr=DtAlgorithmManager())=0
unsigned myQueryQueuePriority
Definition: luaNavJob.h:311
Lua object class which represents a feature navigation task.
Definition: luaNavJob.h:26
bool myIsStrict
Definition: luaNavJob.h:180
virtual luabind::object getObject(lua_State *L, int &index, std::string &message)=0
Retrieve value.
Points myPathPoints
Definition: luaNavJob.h:371
Definition: asciiSerializable.h:34
Interface for getting asynchronously computed data into Lua.
Definition: luaAsyncJob.h:29
virtual bool deserialize(const DtString &)=0
This function should take the string that was serialized via serialize() and fill this object with th...
unsigned myNumberOfPoints
Definition: luaNavJob.h:310
int myNumberOfPoints
Definition: luaNavJob.h:175
virtual DtString objectType() const
Should return the string name of this object. The object name should not be part of the serialization...
Definition: luaNavJob.h:136
boost::shared_ptr< DtCoverPointFinder > myPendingCoverPointFinder
Definition: luaNavJob.h:314
Contains the DtUUID class declaration.
std::list< boost::shared_ptr< DtLuaNavJob > > myJobs
Definition: luaNavJob.h:390
virtual void taskComplete()=0
Called by task object whenever it is done.
virtual DtString serialize()=0
The following characters are reserved and cannot be used in serialization: '|', ':'.
double myAvoidanceRadius
Definition: luaNavJob.h:374
double myThreatRadius
Definition: luaNavJob.h:305
virtual void cancel(lua_State *L)
Cancels the job. By default this is a no-op, we let the job finish on its own.
Definition: luaNavJob.h:44
virtual DtString objectType() const
Should return the string name of this object. The object name should not be part of the serialization...
Definition: luaNavJob.h:348
DtLocation3D myStartPoint
Definition: luaNavJob.h:81
std::list< DtLocation3D > Points
Definition: luaTerrainReasoningJob.h:290
Points myBoundingArea
Definition: luaNavJob.h:83
std::set< DtCoverPoint > myResultPoints
Definition: luaNavJob.h:309
DtLocation3D myEndPoint
Definition: luaNavJob.h:370
const DtSimObject * myParentObject
Definition: luaNavJob.h:187
Definition: asyncJobServer.h:37
bool myGenerated
Definition: luaNavJob.h:189
DtLocation3D myAvoidLocation
Definition: luaNavJob.h:373
Lua object class for finding random points within a nav area.
Definition: luaNavJob.h:92
double myMinDistanceFromStart
Definition: luaNavJob.h:176
bool myNoNavArea
Definition: luaNavJob.h:191
bool myGenerated
Definition: luaNavJob.h:246
bool myGenerated
Definition: luaNavJob.h:312
bool myUseAbstractGraphs
Definition: luaNavJob.h:372
DtLocation3D myResultPoint
Definition: luaNavJob.h:245
DtLocalVertexList myBoundary
Definition: luaNavJob.h:193
#define DT_DLL_vrfLua
This file is used to determine how to build.
Definition: vrfLuaDefines.h:25
Lua object class which finds a cover point from the specified location.
Definition: luaNavJob.h:250
const DtString DtLuaNavRandomPointJobType
Definition: asciiSerializable.h:22
double myMaxDistanceFromStart
Definition: luaNavJob.h:177
std::string myMessage
Definition: luaNavJob.h:85
DtLocation3D myAccessPoint
Definition: luaNavJob.h:82
boost::shared_ptr< DtNavAreaQuery > Ptr
Definition: navArea.h:60
virtual luabind::object getObject(lua_State *L, int &index, std::string &message)=0
Retrieve current value.
DtLocalVertexList myLeftOfLineVertices
Definition: luaNavJob.h:194
double myRange
Definition: luaNavJob.h:307
Points myResultPoints
Definition: luaNavJob.h:185
virtual DtString objectType() const =0
Should return the string name of this object. The object name should not be part of the serialization...
bool myTightlyPack
Definition: luaNavJob.h:181
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:89
double myDistanceFromThreat
Definition: luaNavJob.h:306
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:79
double myPathCost
Definition: luaNavJob.h:376
bool myNeedLos
Definition: luaNavJob.h:182
bool myGroundClamp
Definition: luaNavJob.h:183
virtual luabind::object getDebugObject(lua_State *L)
Retrieve debug data, if available. Default behavior is an empty table.
Definition: luaNavJob.h:41
Points myLeftOfLine
Definition: luaNavJob.h:184
DtString myNavigationProfile
Definition: luaNavJob.h:80
virtual DtString objectType() const
Should return the string name of this object. The object name should not be part of the serialization...
Definition: luaNavJob.h:280
class DtLocalVertexList:
Definition: localVertexList.h:20
DtNavAreaQuery::Ptr myQuery
Definition: luaNavJob.h:87
Definition: luaNavJob.h:382
Points myDebugPoints
Definition: luaNavJob.h:186
virtual DtString objectType() const
Should return the string name of this object. The object name should not be part of the serialization...
Definition: luaNavJob.h:224
bool myDataAvailable
Definition: luaNavJob.h:190
Used to find the best cover point(s) to take cover from attacker at a specified location. If myBestCoverPoint is not DtVector::zero(), it will be the cover point to use.
Definition: coverPointFinder.h:36
DtVector myLocalAccessPoint
Definition: luaNavJob.h:192
DtActiveBotNavInterface * myNavIf
Definition: luaNavJob.h:375
General interface which can be passed into an algorithm to control its behavior.
Definition: algorithmManager.h:24
A location3D is a point in space, i.e. a geocentric coordinate.
Definition: scriptGeometry.h:22
DtString myPlacementRestriction
Definition: luaNavJob.h:179