VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
gdb
building.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1999 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: building.h,v $ $Revision: 1.8 $ $State: Exp $
7
*********************************************************************/
8
#ifndef building_H_
9
#define building_H_
10
11
#include "
gdb/gdbDefines.h
"
12
#include "
gdb/cultFeat.h
"
13
#include "
geometry/point.h
"
14
15
typedef
enum
16
{
17
NON_COMBATANT
,
18
MEDICAL
,
19
HOSPITAL
,
20
FIELD_HOSPITAL
,
21
UTILITY
,
22
TRANSPORTATION
,
23
AIRPORT
,
24
SEAPORT
,
25
BUS_STATION
,
26
TRAIN_STATION
,
27
ENERGY_AND_WATER
,
28
GENERATOR
,
29
REFINERY
,
30
WATER_TANK
,
31
OIL_TANK
,
32
WIND_MILL
,
33
COMMUNICATION
,
34
COMMUNICCATION_TOWER
,
35
FOOD_SECTOR
,
36
BARN
,
37
SILO
,
38
FARM_HOUSE
,
39
RESIDENTIAL
,
40
HOUSE_ONE_STORY
,
41
HOUSE_TWO_STORY
,
42
APARTMENT_BUILDING
,
43
COMMERCIAL
,
44
GAS_STATION
,
45
OFFICE_TOWER
,
46
FACTORY
,
47
WAREHOUSE
,
48
SHOP
,
49
SHOPPING_COMPLEX
,
50
RELIGIOUS
,
51
CHURCH
,
52
TEMPLE
,
53
MOSQUE
,
54
OTHER_RELIGIOUS_STRUCTURE
,
55
CIVIC
,
56
SPORTS_ARENA
,
57
TOWN_HALL
,
58
GOVERNMENT_OFFICE
,
59
POST_OFFICE
,
60
LIBRARY
,
61
SCHOOL
,
62
MUSEUM
,
63
THEATRE
,
64
FIRE_STATION
,
65
POLICE_STATION
,
66
OTHER_BUILDING_TYPE
,
67
CEMETARY
,
68
COMBATANT
,
69
MILITARY_BASE
,
70
TENTS
,
71
BUNKERS
,
72
AIRCRAFT_HANGARS
,
73
COMMUNICATION_TOWER
,
74
RADAR_INSTALLATION
,
75
SUPPLY_DEPOT
,
76
POW_CAMP
,
77
GUARD_TOWER
,
78
FUEL_DEPOT
,
79
MEDICAL_UNITS
,
80
DOCKS
,
81
MILITARY_AIRPORTS
,
82
PILL_BOXES
,
83
BARRACKS
84
}
DtBuildingType
;
85
// class DtBuilding:
86
//
87
// Instances of DtBuilding are
88
89
class
DT_DLL_gdb
DtBuilding
:
public
DtGdbCulturalFeature
90
{
91
public
:
92
93
// default constructor
94
DtBuilding
();
95
96
// destructor
97
virtual
~
DtBuilding
();
98
private
:
99
// copy constructor - not implemented
100
DtBuilding
(
const
DtBuilding
& orig);
101
102
// assignment operator - not implemented
103
DtBuilding
&
operator=
(
const
DtBuilding
& orig);
104
105
public
:
106
// return the type of gdbNode the object is
107
inline
virtual
DtGdbNode::DtGdbNodeType
type
()
const
;
108
109
virtual
DtBuildingType
buildingType()
const
;
110
virtual
void
setBuildingType(
DtBuildingType
typ);
111
112
// prints out the contents of the object
113
virtual
void
dump
(
int
indentLevel)
const
;
114
115
protected
:
116
DtBuildingType
myType
;
117
DtPoint
myLocation
;
// in database coordinates
118
};
119
120
inline
DtGdbNode::DtGdbNodeType
DtBuilding::type
()
const
121
{
122
return
(
DtGdbNode::BUILDING
);
123
}
124
125
inline
DtBuildingType
DtBuilding::buildingType
()
const
126
{
127
return
myType
;
128
}
129
130
inline
void
DtBuilding::setBuildingType
(
DtBuildingType
newType)
131
{
132
myType
= newType;
133
}
134
#endif
135
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)