VR-Forces 4.1.1 Class Documentation
bhaveMovementChooserController.h
Go to the documentation of this file.
1 
2 /*******************************************************************************
3 ** Copyright (c) 2009 MAK Technologies, Inc.
4 ** All rights reserved.
5 *******************************************************************************/
6 /*******************************************************************************
7 * Copyright 2009 Autodesk, Inc. All rights reserved.
8 * Use of this software is subject to the terms of the Autodesk license
9 * agreement provided at the time of installation or download, or which otherwise
10 * accompanies this software in either electronic or hard copy form.
11 *******************************************************************************/
12 
13 
17 
18 #pragma once
19 
23 #include "vrfobjcore/boolIOPort.h"
25 
27 #include "vrfcore/simMgr.h"
29 
30 class DtPatrolRouteTask;
32 
33 namespace BHAVE
34 {
35 class DtVrfEntityBot;
36 
37  const char DtBhaveMovementChooserControllerType[] = "bhave-movement-chooser-controller";
38 
47 {
48 private:
49 
56 
57 public:
58 
62  DtSimManager* simManager, DtComponentDescriptor* desc = NULL,
63  DtReaderWriterRegistry* parentRegistry = NULL);
64 
66 
68  virtual void registerTaskMsgCallbacks();
69 
71  virtual bool init();
72 
76  virtual void tick();
77 
78 protected:
79 
81  virtual void processTaskCompleteReport(DtSimMessage* msg);
82 
85  virtual void processMovementTask(DtFollowEntityTask* taskMsg, int taskId);
86  virtual void processMovementTask(DtMoveAlongTask* taskMsg, int taskId);
87  virtual void processMovementTask(DtMoveToLocationTask* taskMsg, int taskId);
88  virtual void processMovementTask(DtMoveToTask* taskMsg, int taskId);
89  virtual void processMovementTask(DtPatrolRouteTask* taskMsg, int taskId);
90  virtual void processMovementTask(DtPatrolTwoPointsTask* taskMsg, int taskId);
91 
93  virtual void switchToNormalMovement(int currentTaskId);
94 
95 public:
96 
100  static DtSimComponent * creator(const DtString& name, DtVrfObject* owner,
101  DtSimManager* simManager, DtComponentDescriptor* desc = 0,
102  DtReaderWriterRegistry* parentRegistry = 0);
103 
104  virtual bool createPorts();
105 
106 protected:
108 };
109 
110 } //namespace BHAVE
111 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)