VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scenarioEventController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
12 
15 {
16 private:
17  //Not Implemented.
19  //Not Implemented.
21  //Not Implemented.
23 
24 public:
25 
26  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
27  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
29  DtVrfObject* owner,
30  DtSimManager* simManager,
31  DtComponentDescriptor* desc = NULL,
32  DtReaderWriterRegistry* parentRegistry = NULL);
33 
34  virtual ~DtScenarioEventController();
35 
36  //\copydoc DtSimComponent::type()
37  //\return DtScriptedMovementControllerType.
38  virtual const char* type() const;
39 
40  //Main processing for component.
41  virtual void tick();
42 
43 public:
44 
45  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
46  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
47  //\return New instance of this class.
48  static DtSimComponent * creator(const DtString& name,
49  DtVrfObject* owner,
50  DtSimManager* simManager,
51  DtComponentDescriptor* desc = 0,
52  DtReaderWriterRegistry* parentRegistry = 0);
53 
54 protected:
55  virtual void preFirstTickInit();
56  virtual void setupEventIfNeeded();
57 
59  virtual bool timeToStartFromTimeOfDay() const;
60 
62  virtual bool timeToStartFromScenarioTime() const;
63 
68  virtual bool timeToEndFromTimeOfDay() const;
69 
74  virtual bool timeToEndFromScenarioTime() const;
75 
79  virtual bool allLinkConditionsMet(bool& allConditionsMet) const;
80 
81 
83  static void enabledStateChangeCallback(DtEnableStateChanged, void*);
84  virtual void processEnableStateChanged(DtEnableStateChanged);
85 
86 protected:
89 
90  mutable bool myWaitForNextStartDay;
91  mutable bool myWaitForNextEndDay;
92 };

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)