27 #ifndef ICB_TRACER_H_INCLUDED 28 #define ICB_TRACER_H_INCLUDED 30 #include "engines/icb/game_volume.h" 31 #include "engines/icb/p4.h" 32 #include "engines/icb/p4_generic.h" 34 #include "engines/icb/common/px_3drealpoint.h" 35 #include "engines/icb/common/px_2drealline.h" 44 enum FaceID { NO_FACE, LEFT, RIGHT, FRONT, BACK, TOP, BOTTOM };
47 inline _tracer() { m_pyBarrierMemFile = NULL; m_nPadding[0] = 0; }
54 void SetBarrierPointer(
LinkedDataFile *pyBarriers) { m_pyBarrierMemFile = pyBarriers; }
57 void SetFloorsPointer(
_floor_world *pFloorWorld) { m_pFloorWorld = pFloorWorld; }
62 PXreal m_fXDiff, m_fYDiff, m_fZDiff;
64 bool8 m_bXPositiveGoing;
65 bool8 m_bYPositiveGoing;
66 bool8 m_bZPositiveGoing;
71 void operator=(
const _tracer &t) { ; }
74 void GetBarriersForCube(
const _XYZ_index &oCubeIndices, uint32 *oThisCubesBarriers, int32 &nNumBarriers, int32 nExtraSliceIndex)
const;
87 inline const RouteBarrier *_tracer::GetBarrier(uint32 i)
const {
90 if (!m_pyBarrierMemFile)
91 Fatal_error(
"No barrier file in _tracer::GetBarrier()");
93 pBarriers = (
RouteBarrier *)LinkedDataObject::Fetch_item_by_name(m_pyBarrierMemFile,
"Data");
94 return &(pBarriers[i]);
101 #endif // #if !defined( TRACER_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:85
Definition: px_route_barriers.h:146