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
examples
subtask
turnAndMoveControllerPSR.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include "
vrfobjcore/vrfProcessStateRepository.h
"
9
#include "
vrfutil/rwInt.h
"
10
#include "
vrfutil/rwString.h
"
11
#include "
vrfutil/rwUUID.h
"
12
13
//RW type definition.
14
const
char
DtTurnAndMoveControllerPSRType
[] =
"turn-and-move-process-state-repository"
;
15
16
//DtTurnAndMoveControllerPSR is a process state repository which holds state variables for
17
//the DtTurnAndMoveController component.
18
//Process State Repositories hold state data for one or more components so that
19
//their internal state is preserved when a scenario is saved and reloaded.
20
class
DtTurnAndMoveControllerPSR
:
public
DtVrfProcessStateRepository
21
{
22
public
:
23
//Constructor
24
DtTurnAndMoveControllerPSR
(
DtVrfObject
* vrfObject,
25
const
DtString
& rwName = DtString::nullString(),
26
DtReaderWriterRegistry
* parentRegistry = 0);
27
//Copy constructor
28
DtTurnAndMoveControllerPSR
(
const
DtTurnAndMoveControllerPSR
& orig,
29
const
DtString
& rwName = DtString::nullString(),
30
DtReaderWriterRegistry
* parentRegistry = 0);
31
//Assignment Operator
32
DtTurnAndMoveControllerPSR
&
operator=
(
const
DtTurnAndMoveControllerPSR
& orig);
33
//Destructor
34
virtual
~DtTurnAndMoveControllerPSR
();
35
36
//Returns complete copy of this class using the copy constructor.
37
virtual
DtVrfProcessStateRepository
*
clone
(
38
const
DtString
& rwName = DtString::nullString(),
39
DtReaderWriterRegistry
* parentRegistry = 0)
const
;
40
//Returns "turn-and-move-process-state-repository"
41
virtual
DtString
type
()
const
;
42
43
//Static creator function for factory registration.
44
static
DtVrfProcessStateRepository
*
creator
(
const
DtString
& rwName,
45
DtVrfObject
* vrfObject,
DtReaderWriterRegistry
* parentRegistry = 0);
46
47
virtual
DtString
destinationName
()
const
;
48
virtual
void
setDestinationName
(
const
DtString
& newValue);
49
50
virtual
int
subtaskId
()
const
;
51
virtual
void
setSubtaskId
(
const
int
& newValue);
52
53
virtual
int
taskState
()
const
;
54
virtual
void
setTaskState
(
const
int
& newValue);
55
56
protected
:
57
DtRwUUID
myDestinationName
;
58
DtRwInt
mySubtaskId
;
59
DtRwInt
myTaskState
;
60
};
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
)