VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
ctdb
grpGrid.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1999 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: grpGrid.h,v $ $Revision: 1.7 $ $State: Exp $
7
*********************************************************************/
8
9
#ifndef grpGrid_H_
10
#define grpGrid_H_
11
12
#include "
ctdb/ctdbDefines.h
"
13
// \file grpGrid.h
14
// Contains the DtGroupGrid class declaration.
15
16
// forward declarations
17
class
DtGroup
;
18
class
DtTerrainReader
;
19
20
class
DT_DLL_ctdb
DtGroupGrid
21
{
22
public
:
23
24
// default constructor
25
DtGroupGrid
();
26
27
// additional constructor
28
DtGroupGrid
(
int
numWide,
int
numHigh,
DtTerrainReader
* reader);
29
30
// destructor
31
virtual
~
DtGroupGrid
();
32
33
// If a copy constructor is implemented, the assignment operator should
34
// also be implemented. Should generally implement both of them anyway to
35
// avoid memory problems due to inappropriate compiler provided defaults.
36
// Access varies so need to put proper access keyword above these
37
// declarations.
38
39
virtual
DtTerrainReader
* reader()
const
;
40
41
virtual
void
addToGroup(
int
x,
int
y,
DtGroup
* g);
42
43
44
virtual
DtGroup
* make_hierarchy();
45
46
47
virtual
int
grpnum_from_xy(
int
x,
int
y);
48
49
public
:
50
51
static
int
div2roundup(
int
i);
52
53
protected
:
54
55
// copy constructor
56
DtGroupGrid
(
const
DtGroupGrid
& orig);
57
58
// assignment operator
59
DtGroupGrid
& operator=(
const
DtGroupGrid
& orig);
60
61
62
protected
:
63
64
int
nwide
;
65
int
nhigh
;
66
int
ngrps
;
67
68
DtGroup
**
myGroup
;
69
DtTerrainReader
*
myReader
;
70
71
};
72
73
inline
DtTerrainReader
*
DtGroupGrid::reader
()
const
74
{
75
return
myReader
;
76
}
77
78
#endif
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
)