VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfmodel
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
8
#include "
vrfmodel/vrfmodelDefines.h
"
9
#include "
vrfobjcore/singleTaskControllerComponent.h
"
10
#include <
vrfutil/rwScenarioEvent.h
>
11
13
class
DT_DLL_vrfmodel
DtScenarioEventController
:
public
DtSingleTaskControllerComponent
14
{
15
private
:
16
//Not Implemented.
17
DtScenarioEventController
();
18
//Not Implemented.
19
DtScenarioEventController
(
const
DtScenarioEventController
& orig);
20
//Not Implemented.
21
DtScenarioEventController
&
operator=
(
const
DtScenarioEventController
& orig);
22
23
public
:
24
25
//\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
26
//DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
27
DtScenarioEventController
(
const
DtString
& name,
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
:
82
DtRwScenarioEvent
myEvent
;
83
DtString
myScenarioEventXmlRep
;
84
85
mutable
bool
myWaitForNextStartDay
;
86
mutable
bool
myWaitForNextEndDay
;
87
};
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)