VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
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 "
vrfobjcore/scenarioEventManager.h
"
11
#include <
vrfutil/rwScenarioEvent.h
>
12
14
class
DT_DLL_vrfmodel
DtScenarioEventController
:
public
DtSingleTaskControllerComponent
15
{
16
private
:
17
//Not Implemented.
18
DtScenarioEventController
();
19
//Not Implemented.
20
DtScenarioEventController
(
const
DtScenarioEventController
& orig);
21
//Not Implemented.
22
DtScenarioEventController
&
operator=
(
const
DtScenarioEventController
& orig);
23
24
public
:
25
26
//\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
27
//DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
28
DtScenarioEventController
(
const
DtString
& name,
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
:
87
DtRwScenarioEvent
myEvent
;
88
DtString
myScenarioEventXmlRep
;
89
90
mutable
bool
myWaitForNextStartDay
;
91
mutable
bool
myWaitForNextEndDay
;
92
};
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)