VR-Forces 4.2 Class Documentation
gotoWaypointTaskAgent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include "vrfTaskAgent.h"
10 #include <kyruntime.h>
11 #include <bhaveSim/vrfEntityBot.h>
12 
13 namespace BHAVE
14 {
17 {
18 public:
19 
21  DtVrfEntityBot* bot,
22  const char* task,
23  const char* arg1,
24  const char* arg2,
25  const char* arg3,
26  const char* arg4,
27  const char* command);
28 
29 
30  virtual ~DtGotoWaypointTaskAgent();
31 
33  virtual void Clear();
34 
36  virtual bool Think();
37 
39  virtual bool HasFinished();
40 
41  virtual const char* GetId() { return myId; }
42  virtual const char* GetCommand() { return myCommand; }
43 
44 protected:
47 
50  virtual DtVrfObject* lookupDestObject();
51 
53  virtual void setDestinationFromObject();
54 
55  static void destinationChangedCallback(DtVrfObject* obj, void* usr);
56  virtual void processDestinationChanged(DtVrfObject* obj);
57 
58  static void objectAboutToBeRemovedCallback(DtVrfObject* obj, void* usr);
59  virtual void processObjectAboutToBeRemoved(DtVrfObject* obj);
60 
62  virtual void onTeleport();
63 
64 protected:
65 
66  Kaim::GotoAgent* myGotoAgent;
67  KyResult myStatus;
69  unsigned int myRetryCount;
70 
72 };
73 
74 } //namespace BHAVE
75 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)