VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
11 
14 {
15 private:
16  //Not Implemented.
18  //Not Implemented.
20  //Not Implemented.
22 
23 public:
24 
25  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
26  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
28  DtVrfObject* owner,
29  DtSimManager* simManager,
30  DtComponentDescriptor* desc = NULL,
31  DtReaderWriterRegistry* parentRegistry = NULL);
32 
33  virtual ~DtScenarioEventController();
34 
35  //\copydoc DtSimComponent::type()
36  //\return DtScriptedMovementControllerType.
37  virtual const char* type() const;
38 
39  //Main processing for component.
40  virtual void tick();
41 
42 public:
43 
44  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
45  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
46  //\return New instance of this class.
47  static DtSimComponent * creator(const DtString& name,
48  DtVrfObject* owner,
49  DtSimManager* simManager,
50  DtComponentDescriptor* desc = 0,
51  DtReaderWriterRegistry* parentRegistry = 0);
52 
53 protected:
54  virtual void preFirstTickInit();
55  virtual void setupEventIfNeeded();
56 
58  virtual bool timeToStartFromTimeOfDay() const;
59 
61  virtual bool timeToStartFromScenarioTime() const;
62 
67  virtual bool timeToEndFromTimeOfDay() const;
68 
73  virtual bool timeToEndFromScenarioTime() const;
74 
78  virtual bool allLinkConditionsMet(bool& allConditionsMet) const;
79 
80 
81 protected:
84 
85  mutable bool myWaitForNextStartDay;
86  mutable bool myWaitForNextEndDay;
87 };

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)