27 #ifndef ICB_GAMEVOLUME_H_INCLUDED 28 #define ICB_GAMEVOLUME_H_INCLUDED 30 #include "engines/icb/p4.h" 31 #include "engines/icb/common/px_3drealpoint.h" 32 #include "engines/icb/common/px_common.h" 33 #include "engines/icb/common/px_linkeddatafile.h" 34 #include "engines/icb/common/px_route_barriers.h" 36 #include "math/utils.h" 101 PXreal GetAbsoluteTop()
const {
return (m_fAbsoluteTop); }
102 PXreal GetAbsoluteBottom()
const {
return (m_fAbsoluteBottom); }
103 PXreal GetLeftEdge()
const {
return (m_fLeftEdge); }
104 PXreal GetRightEdge()
const {
return (m_fRightEdge); }
105 PXreal GetBackEdge()
const {
return (m_fBackEdge); }
106 PXreal GetFrontEdge()
const {
return (m_fFrontEdge); }
108 uint32 GetNumSlices()
const {
return (m_nNumSlices); }
109 PXreal GetSliceTop(uint32 i)
const {
return (m_oSliceLimits[i].fTop); }
110 PXreal GetSliceBottom(uint32 i)
const {
return (m_oSliceLimits[i].fBottom); }
112 uint32 GetXSize()
const {
return (m_nXSize); }
113 uint32 GetZSize()
const {
return (m_nZSize); }
115 bool8 IsValid()
const {
return (m_bValid); }
124 PXreal m_fAbsoluteTop;
125 PXreal m_fAbsoluteBottom;
134 int32 m_nMinimumXIndex;
135 int32 m_nMinimumZIndex;
143 inline _game_volume::_game_volume() {
144 m_fAbsoluteTop = FLOAT_MAX;
145 m_fAbsoluteBottom = FLOAT_MIN;
146 m_fLeftEdge = REAL_ZERO;
147 m_fRightEdge = REAL_ZERO;
148 m_fBackEdge = REAL_ZERO;
149 m_fFrontEdge = REAL_ZERO;
153 m_nMinimumXIndex = 0;
154 m_nMinimumZIndex = 0;
158 inline _game_volume::~_game_volume() {
168 inline void _game_volume::CopyObject(
const _game_volume &oX) {
171 m_fAbsoluteTop = oX.m_fAbsoluteTop;
172 m_fAbsoluteBottom = oX.m_fAbsoluteBottom;
173 m_fLeftEdge = oX.m_fLeftEdge;
174 m_fRightEdge = oX.m_fRightEdge;
175 m_fBackEdge = oX.m_fBackEdge;
176 m_fFrontEdge = oX.m_fFrontEdge;
177 m_nXSize = oX.m_nXSize;
178 m_nZSize = oX.m_nZSize;
179 m_bValid = oX.m_bValid;
180 m_nNumSlices = oX.m_nNumSlices;
182 for (i = 0; i < oX.m_nNumSlices; ++i)
183 m_oSliceLimits[i] = oX.m_oSliceLimits[i];
188 #endif // #if !defined( GAMEVOLUME_H_INCLUDED ) Definition: px_3drealpoint.h:45
Definition: game_volume.h:72
Definition: px_linkeddatafile.h:53
Definition: game_volume.h:55
Definition: game_volume.h:44
Definition: game_volume.h:85