![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2011 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 00006 #pragma once 00007 00008 #include <bhaveSim/bhaveSimDefines.h> 00009 #include "vrfTaskAgent.h" 00010 #include <kyruntime.h> 00011 #include <vrfobjcore/vrfObject.h> 00012 00013 namespace BHAVE 00014 { 00016 class DT_DLL_bhaveSim DtPatrolBetweenAgent : public DtVrfTaskAgent 00017 { 00018 public: 00019 00020 DtPatrolBetweenAgent( 00021 DtVrfEntityBot* bot, 00022 const char* task, 00023 const char* arg1, 00024 const char* arg2, 00025 const char* arg3, 00026 const char* arg4, 00027 const char* command); 00028 00029 virtual ~DtPatrolBetweenAgent(); 00030 00032 virtual void Clear(); 00033 00035 virtual bool Think(); 00036 00038 virtual bool HasFinished(); 00039 00040 virtual void setNextDestination(); 00041 00043 virtual void onTeleport(); 00044 00046 virtual void encodeTask(DtKynapsePSR*); 00047 00049 virtual void decodeTask(DtKynapsePSR*); 00050 00051 protected: 00052 00053 Kaim::GotoAgent* myGotoAgent; 00054 KyResult myStatus; 00055 bool myFinishedStatus; 00056 int myCurrentValue; 00057 DtVrfObject* myPointObject; 00058 DtVrfObject* myPoint2Object; 00059 }; 00060 00061 } //namespace BHAVE 00062 00063