VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
humanTurnToController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
14 
15 class DtSimMessage;
19 
26 {
27 private:
34 public:
36  DtHumanTurnToController(const DtString& name, DtVrfObject* owner,
37  DtSimManager* simManager, DtComponentDescriptor* desc=0,
38  DtReaderWriterRegistry *parentRegistry=0);
39 
41  virtual ~DtHumanTurnToController();
42 
44  virtual bool init();
45 
47  virtual const char* type() const;
48 
50  virtual void tick();
51 
55  static void turnToHeadingCallback(DtSimMessage * msg, void * usr);
56  virtual void processTurnToHeadingTask(DtSimMessage * msg);
57 
59  virtual void registerTaskMsgCallbacks();
60 
62  static DtSimComponent* creator(const DtString& name, DtVrfObject* owner,
63  DtSimManager* simManager, DtComponentDescriptor* desc=0,
64  DtReaderWriterRegistry* parentRegistry=0);
65 
67  virtual bool createPortGroups();
68 
70  virtual bool createPorts();
71 
73  virtual void clearTask();
74 
75 protected:
77  virtual double headingToFace();
78 
79 protected:
80 
82 
83 
85 
93 
95 };
96 

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)