27 #ifndef ICB_BARRIERS_H 28 #define ICB_BARRIERS_H 30 #include "engines/icb/common/px_rcutypes.h" 31 #include "engines/icb/common/px_linkeddatafile.h" 32 #include "engines/icb/common/px_route_barriers.h" 39 #define MAX_heights (MAX_slices + 1) 45 #define MAX_props ((116 + 3) & ~3) 47 #define MAX_parents_per_anim_slice 24 49 #define MAX_props_per_parent 16 51 #define MAX_animating_props 24 52 #define MAX_bars_per_prop 60 54 #define MAX_child_groups_per_parent 16 56 #define MAX_prop_abars (MAX_animating_props * MAX_bars_per_prop) 63 uint8 prop_number[MAX_props_per_parent];
71 uint8 num_props_in_slice;
72 uint8 prop_list[MAX_props];
77 uint8 barriers_per_state;
87 void Form_route_barrier_list(PXreal x, PXreal y, PXreal z, PXreal x2, PXreal z2);
88 void Form_parent_barrier_list(PXreal x, PXreal y, PXreal z);
90 ParentBox *Fetch_parent_box_for_xyz(PXreal x, PXreal y, PXreal z, uint32 &par_num, uint32 &slice_num);
91 ParentBox *Fetch_parent_num_on_slice_y(uint32 requested_parent, PXreal y);
92 uint32 Fetch_number_of_child_boxes(
ParentBox *parent);
95 uint32 Fetch_total_barriers();
96 LinkedDataFile *Get_barrier_pointer()
const {
return raw_barriers; }
97 void Prepare_animating_barriers();
98 uint32 Get_anim_barriers(uint32 n, uint32 *oThisCubesBarriers, uint32 slice);
100 void Set_route_barrier_mask(int32 left, int32 right, int32 top, int32 bottom);
101 void Clear_route_barrier_mask();
107 uint16 prop_abar_table[MAX_animating_props * MAX_bars_per_prop];
115 uint32 total_barriers;
126 inline void _barrier_handler::Set_route_barrier_mask(int32 left, int32 right, int32 top, int32 bottom) {
128 barrier_mask = TRUE8;
133 mask.bottom = bottom;
136 inline void _barrier_handler::Clear_route_barrier_mask() {
139 barrier_mask = FALSE8;
142 inline uint32 _barrier_handler::Fetch_number_of_child_boxes(
ParentBox *parent) {
return (parent->num_childgroups); }
144 inline ChildGroup *_barrier_handler::Fetch_child_box(
ParentBox *parent, uint32 child) {
return ((
ChildGroup *)(((uint8 *)parent) + parent->childgroups[child])); }
146 inline uint32 _barrier_handler::Fetch_total_barriers() {
return (total_barriers); }
Definition: px_route_barriers.h:190
Definition: barriers.h:82
Definition: barriers.h:66
Definition: px_linkeddatafile.h:53
Definition: barriers.h:59
Definition: px_types.h:32
Definition: px_route_barriers.h:181
Definition: barriers.h:75
Definition: px_route_barriers.h:146