27 #ifndef ICB_REMORA_SPRITE_H_INCLUDED 28 #define ICB_REMORA_SPRITE_H_INCLUDED 30 #include "engines/icb/p4.h" 31 #include "engines/icb/debug.h" 32 #include "engines/icb/string_vest.h" 33 #include "engines/icb/common/px_clu_api.h" 34 #include "engines/icb/common/px_string.h" 35 #include "engines/icb/common/px_common.h" 36 #include "engines/icb/common/px_bitmap.h" 75 void InitialiseFromBitmapName(
const char *pcBitmapName,
const char *pcClusterName, uint32 nClusterash);
82 inline void DrawSprite(
const _rs_params *pParams = NULL);
83 inline void DrawXYSprite(int32 nX, int32 nY,
const _rs_params *pParams = NULL);
85 inline bool8 FitsOnScreen(int32 nX, int32 nZ, int32 nScreenWidth, int32 nScreenHeight)
const;
88 char m_pcName[MAXLEN_URL];
91 char m_pcClusterName[MAXLEN_CLUSTER_URL];
92 uint32 m_nClusterHash;
97 int32 m_nHalfSpriteWidth;
98 int32 m_nHalfSpriteHeight;
101 void GenericSpriteDraw(int32 nX, int32 nY, bool8 bPosition,
const _rs_params *pParams);
104 inline void _remora_sprite::DrawSprite(
const _rs_params *pParams) { GenericSpriteDraw(0, 0, FALSE8, pParams); }
106 inline void _remora_sprite::DrawXYSprite(int32 nX, int32 nY,
const _rs_params *pParams) { GenericSpriteDraw(nX, nY, TRUE8, pParams); }
108 inline bool8 _remora_sprite::FitsOnScreen(int32 nX, int32 nZ, int32 nScreenWidth, int32 nScreenHeight)
const {
109 if ((nX > m_nHalfSpriteWidth) && (nX < (nScreenWidth - m_nHalfSpriteWidth)) && (nZ > m_nHalfSpriteHeight) && (nZ < (nScreenHeight - m_nHalfSpriteHeight)))
118 #endif // #if !defined( REMORA_SPRITE_H_INCLUDED )
Definition: remora_sprite.h:41
Definition: remora_sprite.h:64