VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfExtObjects
globalEnvironmentObjSR.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: globalEnvironmentObjSR.h,v $ $Revision: 1.1 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef globalEnvironmentObjSR_h
13
#define globalEnvironmentObjSR_h
14
15
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
16
#include <vl/envProcessSR.h>
17
19
class
DT_DLL_vrfExtObjects
DtGlobalEnvironmentObjectRepository
:
public
DtEnvironmentProcessRepository
20
{
21
public
:
22
DtGlobalEnvironmentObjectRepository
();
23
static
DtEnvironmentProcessRepository
* create();
24
25
// Utility to compare this repository against a remote estimate
26
// Returns True is an update should be sent; False otherwise
27
virtual
bool
sendNeeded(
const
DtEnvironmentProcessRepository
& asSeenByRemote);
28
29
void
setClock(DtClock* clock);
30
DtClock* clock()
const
;
31
32
double
lastUpdateTime()
const
;
33
void
setLastUpdateTime(DtTime t);
34
35
protected
:
36
37
virtual
bool
sendRecordsNeeded(
const
DtEnvironmentProcessRepository
& asSeenByRemote);
38
virtual
bool
sendWeatherRecNeeded(DtTime dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
39
virtual
bool
sendNetRecNeeded(DtNetEnvironmentalRecord* rec1, DtNetEnvironmentalRecord* rec2);
40
41
protected
:
42
// Helpers for send-side dead reckoning (used to limit #updates sent)
43
DtClock*
myClock
;
44
DtTime
myLastUpdateTime
;
45
};
46
47
#endif
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
)