VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfTaskAgent.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 <bhaveSim/kynapsePSR.h>
10 
11 namespace BHAVE
12 {
13 
14 class DtVrfEntityBot;
15 
19 {
20 public:
21 
23  DtVrfEntityBot* bot,
24  const char* task,
25  const char* arg1,
26  const char* arg2,
27  const char* arg3,
28  const char* arg4,
29  const char* command);
30 
31  virtual ~DtVrfTaskAgent();
32 
34  virtual void Clear() = 0;
35 
37  virtual bool Think() = 0;
38 
40  virtual bool HasFinished() = 0;
41 
43  virtual void onTeleport() {};
44 
46  virtual void encodeTask(DtKynapsePSR*) {};
47 
49  virtual void decodeTask(DtKynapsePSR*) {};
50 
51  virtual const char* GetId() { return myId; }
52  virtual const char* GetCommand() { return myCommand; }
53  virtual bool GetCompletionSuccess(){return myCompletionSuccess;}
54 protected:
55  char* myId;
56  char* myCommand;
58 
60 };
61 
62 template<class T>
64  const char* arg1, const char* arg2,
65  const char* arg3, const char* arg4,
66  const char* command)
67 {
68  return new T(bot, task, arg1, arg2, arg3, arg4, command);
69 }
70 
71 } //namespace BHAVE
72 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)