VR-Forces 4.1 Class Documentation
gndJoyCtl.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
12 #include "vrfmodel/gndAutoCntlr.h"
13 #include "vrfobjcore/simRadio.h"
14 
15 class DtString;
16 class DtSimManager;
18 class DtJoyDevice;
19 
20 
27 {
28 public:
29 
33  DtSimManager* simManager, DtComponentDescriptor* desc,
34  DtReaderWriterRegistry * parentRegistry = 0);
35 
37  virtual ~DtGroundJoyMoveController();
38 
40  virtual void tick();
41 
44  virtual DtString type() const;
45 
48  virtual void setComponentDescriptor(DtComponentDescriptor *descriptor);
49 
52  static void setJoyDeviceSwitchCallbacks(DtSimMessage * msg, void * usrData);
53 
54  virtual void processSetJoyDeviceSwitch(DtSimMessage * msg);
55 
56  virtual void calcAndSetPortValues();
57 
58  virtual bool joystickEnabled() const;
59 
63  static DtSimComponent * creator(const DtString& name,
64  DtVrfObject* owner,
65  DtSimManager* simManager,
66  DtComponentDescriptor* desc = 0,
67  DtReaderWriterRegistry* parentRegistry = 0);
68 
69  virtual bool collisionDetected();
70 
71 private:
72 
75 
78  const DtGroundJoyMoveController& orig);
79 
82  const DtGroundJoyMoveController& orig);
83 
84 protected:
86  virtual void initializeJoyDevice();
87 
89  virtual void setRadio(DtSimRadio * radio);
90 
91  virtual bool detectCollision();
92 
93  // Process colliding with a lifeform. Default will destroy if the lifeform shares
94  // the same parent as the vehicle
95  virtual void collideWithLifeform(DtVrfObject*);
96 
97 protected:
98  DtJoyDevice * myJoyDevice;
100 
102 
105 
108 };
109 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)