VR-Forces 4.2 Class Documentation
simpleProximitySensor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
8 
10 
11 #pragma once
12 
14 #include "vrfobjcore/simCmpnt.h"
18 
19 class DtRwObjectTypeList;
22 
26  public DtBindableLuaComponent<DtSimpleProximitySensor>
27 {
28 private:
31 
34 
37 
38 public:
39 
42  DtSimpleProximitySensor(const DtString& name,
43  DtVrfObject* owner,
44  DtSimManager* simManager,
45  DtComponentDescriptor* desc = 0,
46  DtReaderWriterRegistry* parentRegistry = 0);
47 
49  virtual ~DtSimpleProximitySensor();
50 
53  virtual DtString type() const;
54 
56  virtual void tick();
57 
61  static DtSimComponent * creator(const DtString& name,
62  DtVrfObject* owner,
63  DtSimManager* simManager,
64  DtComponentDescriptor* desc = 0,
65  DtReaderWriterRegistry* parentRegistry = 0);
66 
68  virtual void setDetectionProximity(double);
69  virtual double detectionProximity() const;
70 
73  virtual void senseObjects(const DtRwObjectTypeList&, bool hostileOnly);
74 
76  virtual void setObjectTypesToDetect(const std::vector<std::string>&, bool hostileOnly);
77 
80  virtual void bindLuaFunctions(lua_State* L);
81  virtual void bindLuaGlobals(lua_State* L);
82 
83 protected:
84 
86  virtual bool createPorts();
87 
88  DtSimpleProximitySensorPSR* createPSR();
89 
90  virtual bool init();
91  virtual void preFirstTickInit();
92 
93 protected:
94 
96 
97 
98 
99 
100 
101 
102 
104 
105  std::vector<DtObjectType> myObjectTypesToDetect;
107 
109 };
110 

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)