VR-Forces 4.0.4 Class Documentation
include/bhaveSim/pathTaskAgent.h
Go to the documentation of this file.
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 DtPathTaskAgent : public DtVrfTaskAgent
00017 {  
00018 public:
00019 
00020     DtPathTaskAgent(
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 ~DtPathTaskAgent();
00030 
00032    virtual void Clear();
00033 
00035    virtual bool Think();
00036 
00038    virtual bool HasFinished();
00039 
00041    virtual void onTeleport();
00042 
00043    virtual void setNextDestination();
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    bool myReverseRoute;
00058    bool myLoop;
00059    DtVrfObject* myRouteObject;
00060    bool myFirstDestinationTick;
00061 };
00062 
00063 } //namespace BHAVE
00064 
00065 

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)