VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
createParamDbDynamically
tankParametersBuilder.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: tankParametersBuilder.h,v $ $Revision: 1.5 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef DtTankParametersBuilder_H_
10
#define DtTankParametersBuilder_H_
11
12
#include "
objectParametersBuilder.h
"
13
14
class
DtVrfObjectParameters
;
15
class
DtGroundVehicleParameters
;
16
class
DtComponentDescriptorList
;
17
class
DtSignatureObjectSensorDescriptor
;
18
19
//class DtTankParametersBuilder:
20
//
21
//Instances of DtTankParametersBuilder are used to create and configure a
22
//DtVrfObjectParameters object for a tank. The parameters object returned
23
//should fully specify the necessary parameters to create a tank entity.
24
25
class
DtTankParametersBuilder
:
public
DtObjectParametersBuilder
26
{
27
public
:
28
29
//default constructor
30
DtTankParametersBuilder
();
31
32
//destructor
33
virtual
~DtTankParametersBuilder
();
34
35
//Creates and configures parameters for a tank.
36
virtual
DtVrfObjectParameters
*
buildObjectParameters
();
37
38
protected
:
39
40
//Set up the bounding volume for the parameters entry. Configures a
41
//rectangular bounding volume, with an appropriate size for a tank.
42
virtual
void
configureBoundingVolume
(
DtVrfObjectParameters
& parameters);
43
44
//Create and configure resources for the entity. Configures entity
45
//with ammo and fuel.
46
virtual
void
createAndConfigureResources
(
DtVrfObjectParameters
& parameters);
47
48
//Set up the parameter's soil factors with values appropriate for a tank.
49
virtual
void
configureSoilFactors
(
DtGroundVehicleParameters
& parameters);
50
51
//Create and configure sensors, controllers, and actuators for the given
52
//movingObjectParameters object. Connects appropriate components to one another.
53
//Creates just a basic subset of all possible components a tank could be
54
//configured with.
55
virtual
void
createAndConfigureComponents
(
DtVrfObjectParameters
& parameters);
56
57
//Creates and configures all of the sensor components and places them
58
//on the given descriptor list.
59
virtual
void
initializeSensorDescriptors
(
60
DtComponentDescriptorList
& sensorDescriptors);
61
62
//Creates and configures all of the controller components and places them
63
//on the given descriptor list.
64
virtual
void
initializeControllerDescriptors
(
65
DtComponentDescriptorList
& controllerDescriptors);
66
67
//Creates and configures all of the actuator components and places them
68
//on the given descriptor list.
69
virtual
void
initializeActuatorDescriptors
(
70
DtComponentDescriptorList
& actuatorDescriptors);
71
72
//Configures a DtTargetDetectionSensorDescriptor component.
73
virtual
void
initializeSignatureSensorDescriptor
(
74
DtSignatureObjectSensorDescriptor
& targetDetectSensor);
75
76
//Configure local and remote subcomponent types for the given parameters object.
77
//Specifies the kinds of state repository, network interface, radio, etc. to
78
//create when an object is created using this the parameters object.
79
virtual
void
configureSubComponentTypes
(
DtVrfObjectParameters
& parameters);
80
81
//copy constructor - not implemented
82
DtTankParametersBuilder
(
const
DtTankParametersBuilder
& orig);
83
84
//assignment operator - not implemented
85
DtTankParametersBuilder
&
operator=
(
const
DtTankParametersBuilder
& orig);
86
};
87
88
#endif
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)