VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weatherObjectRepository.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
14 
18 {
19 public:
20 
22 
25 
26  // Utility to compare this repository against a remote estimate
27  // Returns True is an update should be sent; False otherwise
28  virtual bool sendNeeded(const DtEnvironmentProcessRepository& asSeenByRemote);
29 
30  void setClock(DtClock* clock);
31  DtClock* clock() const;
32 
33  double lastUpdateTime() const;
34  void setLastUpdateTime(DtTime t);
35 
36 protected:
37 
38  virtual bool sendRecordsNeeded(const DtEnvironmentProcessRepository& asSeenByRemote);
39  virtual bool sendWeatherRecNeeded(DtTime dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
40  virtual bool sendV3WeatherRecNeeded(DtTime dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
41  virtual bool sendNetRecNeeded(DtNetEnvironmentalRecord* rec1, DtNetEnvironmentalRecord* rec2);
42  virtual DtStateRepository* clone(bool copy) const;
43 
44 protected:
45 
46  // Helpers for send-side dead reckoning (used to limit #updates sent)
49 
50 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)