27 #ifndef ICB_PSX_PROPS_H 28 #define ICB_PSX_PROPS_H 30 #include "engines/icb/gfx/psx_pcdefines.h" 32 #define PSXPL_SCHEMA 4 33 #define PSXPL_ID "PLF" 35 #include "engines/icb/gfx/psx_zlayers.h" 36 #include "engines/icb/common/px_bitmap_psx.h" 253 uint32 propNameOffset;
264 uint16 nPropZsprites;
265 uint16 nPropFGZsprites;
266 uint16 nPropBGZsprites;
269 uint16 nPropRGBsprites;
270 uint16 nBgRGBsprites;
273 uint32 propBitmapOffset;
278 inline _pxPSXBitmap *GetPropBitmapPtr(
void);
289 inline psxZMacroFrag *psxPropState::GetZMacroFragPtr(
void) {
return zMacro; }
296 inline _pxPSXBitmap *psxPropState::GetPropBitmapPtr(
void) {
297 _pxPSXBitmap *propBitmap = (_pxPSXBitmap *)((uint8 *)
this + propBitmapOffset);
307 uint32 propOffsets[1];
309 inline psxProp *GetProp(uint32 prop);
310 inline uint32 GetPropStateQty(uint32 prop);
311 inline char *GetPropName(uint32 prop);
312 inline psxPropState *GetPropState(uint32 prop, uint32 state);
315 inline psxProp *psxPLfile::GetProp(uint32 prop) {
return (
psxProp *)((uint8 *)
id + propOffsets[prop]); }
317 inline uint32 psxPLfile::GetPropStateQty(uint32 prop) {
318 psxProp *pProp = GetProp(prop);
319 return pProp->stateQty;
322 inline char *psxPLfile::GetPropName(uint32 prop) {
323 psxProp *pProp = GetProp(prop);
324 return (
id + pProp->propNameOffset);
327 inline psxPropState *psxPLfile::GetPropState(uint32 prop, uint32 state) {
328 psxProp *pProp = GetProp(prop);
329 return (
psxPropState *)((uint8 *)
id + pProp->statePtrs[state]);
334 #endif // #ifndef PSX_PROPS_H
Definition: psx_props.h:258
Definition: psx_props.h:241
Definition: psx_props.h:228
Definition: psx_props.h:303
Definition: psx_props.h:252
Definition: psx_props.h:248