VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
simIndividualLocalEntityNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
18 
19 class DtVrfEntityPublisher;
22 
35 {
36 protected:
39 
40 public:
43  DtVrfObject* vrfObject,
44  DtReaderWriterRegistry* parentRegistry = 0,
45  bool publishObject = true);
46 
50  DtReaderWriterRegistry * parentRegistry = 0);
51 
55 
58 
60  virtual void updateNet();
61 
64  virtual void updatePublisher();
65 
71  virtual bool createPublisher();
72 
74  void destroyPublisher();
75 
85  virtual bool setEntityPublisher(DtVrfEntityPublisher * publisher);
86 
90  virtual void setupNetworkRepository();
91 
93  virtual DtVrfEntityPublisher * entityPublisher() const;
94 
97  virtual DtExtEntityStateRepository * individualNetworkState() const;
98 
104  virtual DtVrfObjectStateRepository * individualLocalState() const;
105 
106  virtual bool isAggregate() const { return false; }
107 
110  virtual DtString type() const;
111 
116  isIndividualLocalEntityNetInterface(const DtSimObjectNetInterface *
117  objNetInterface);
118 
119  static DtSimObjectNetInterface * creator(const DtString & name,
120  DtVrfObject* vrfObject,
121  DtReaderWriterRegistry * parentRegistry,
122  bool publishObject);
123 
124 protected:
125 
126  virtual bool updateVrfDataAsSeenByRemote();
127 
132  virtual DtVector calculateWorldVelocityFromPosition(const DtVector & currentWorldPos,
133  const DtVector & currentLocalPos,
134  const DtVector & localVelocityworldVelocity);
135 
139  virtual void updateArtPartsNetState();
140 
141  virtual void updateDIGuyState();
142 #ifdef DtDIS
143  virtual void updateCharacterType(const DtString& appear);
144  virtual void updateCharacterAppearance(const DtString& appear, const DtString& handItem);
145  virtual void updateCharacterAnimation(const DtString & animation,bool paused);
146 #endif
147 
148 protected:
149 
150  DtVrfEntityPublisher * myEntityPublisher;
151 
154 
158 
159 };

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)