VR-Forces 4.0.4 Class Documentation
include/bhaveSim/fleeTaskAgent.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2010 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 <vlutil/vlTime.h>
00012 #include <vlutil/vlString.h>
00013 #include <list>
00014 
00015 namespace BHAVE
00016 {
00017 
00019 class DT_DLL_bhaveSim DtFleeTaskAgent : public DtVrfTaskAgent
00020 {  
00021 public:
00022 
00023    DtFleeTaskAgent(
00024       DtVrfEntityBot* bot,
00025       const char* task,
00026       const char* arg1,
00027       const char* arg2,
00028       const char* arg3,
00029       const char* arg4,
00030       const char* command);
00031 
00032    virtual ~DtFleeTaskAgent();
00033 
00035    virtual void Clear();
00036 
00038    virtual bool Think();
00039 
00041    virtual bool HasFinished();
00042 
00043    virtual bool RefreshContacts();
00044 
00046    virtual void onTeleport();
00047 
00048 protected:
00049    static const DtTime FLEE_UPDATE_ENTITIES_PERIOD;
00050 
00051    Kaim::FleeAgent* myFleeAgent;
00052    KyResult myStatus;
00053    bool myFinishedStatus;
00054    std::list<DtString> myDangerousNames;
00055    DtTime myEnemyLocationsDate;
00056 };
00057 
00058 } //namespace BHAVE
00059 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)