23 #ifndef TINSEL_BACKGND_H // prevent multiple includes 24 #define TINSEL_BACKGND_H 26 #include "common/array.h" 27 #include "common/coroutines.h" 28 #include "common/frac.h" 29 #include "common/rect.h" 30 #include "tinsel/anim.h" 31 #include "tinsel/dw.h" 32 #include "tinsel/object.h" 33 #include "tinsel/palette.h" 47 #define LINEAR_SEARCH 5 85 void InitBackground();
92 void DropBackground();
94 void ResetBackground() {
95 _pCurBgnd->fieldArray.clear();
102 void PlayfieldSetPos(
107 void PlayfieldGetPos(
112 int PlayfieldGetCenterX(
115 OBJECT** GetPlayfieldList(
118 OBJECT* GetBgObject() {
return _pBG[0]; }
124 void SetDoFadeIn(
bool tf) { _bDoFadeIn = tf; }
126 bool GetDoFadeIn() {
return _bDoFadeIn; }
145 int getBgSpeed() {
return _BGspeed; }
163 ANIM _thisAnim[MAX_BG];
168 #endif // TINSEL_BACKGND_H frac_t * pYscrollTable
pointer to y direction scroll table for this background
Definition: background.h:67
SCNHANDLE GetBgroundHandle()
Definition: background.h:131
int refreshRate
background update process refresh rate
Definition: background.h:65
uint32 SCNHANDLE
Definition: dw.h:31
frac_t fieldXvel
current x velocity of playfield
Definition: background.h:54
frac_t fieldYvel
current y velocity of playfield
Definition: background.h:55
frac_t fieldY
current world y position of playfield
Definition: background.h:53
Definition: background.h:81
Definition: background.h:50
OBJECT * pDispList
object display list for this playfield
Definition: background.h:51
bool bMoved
set when playfield has moved
Definition: background.h:57
#define CORO_PARAM
Definition: coroutines.h:107
frac_t * pXscrollTable
pointer to x direction scroll table for this background
Definition: background.h:66
Definition: background.h:61
Common::Point ptInitWorld
initial world position
Definition: background.h:63
Common::Rect rcScrollLimits
scroll limits
Definition: background.h:64
frac_t fieldX
current world x position of playfield
Definition: background.h:52
bool bAutoErase
when set - screen is cleared before anything is plotted (unused)
Definition: background.h:69
COLORREF rgbSkyColor
background sky color
Definition: background.h:62
Common::Array< PLAYFIELD > fieldArray
list of all playfields for this background
Definition: background.h:68
int32 frac_t
Definition: frac.h:52
Common::Rect rcClip
clip rectangle for this playfield
Definition: background.h:56