23#ifndef TINSEL_BACKGND_H
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"
32#include "tinsel/object.h"
33#include "tinsel/palette.h"
47#define LINEAR_SEARCH 5
86 void InitBackground();
95 void ResetBackground() {
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];
Definition: background.h:81
SCNHANDLE GetBgroundHandle()
Definition: background.h:131
#define CORO_PARAM
Definition: coroutines.h:107
int32 frac_t
Definition: frac.h:52
uint32 SCNHANDLE
Definition: dw.h:31
Definition: background.h:61
Common::Rect rcScrollLimits
scroll limits
Definition: background.h:64
Common::Point ptInitWorld
initial world position
Definition: background.h:63
bool bAutoErase
when set - screen is cleared before anything is plotted (unused)
Definition: background.h:69
frac_t * pXscrollTable
pointer to x direction scroll table for this background
Definition: background.h:66
Common::Array< PLAYFIELD > fieldArray
list of all playfields for this background
Definition: background.h:68
COLORREF rgbSkyColor
background sky color
Definition: background.h:62
int refreshRate
background update process refresh rate
Definition: background.h:65
frac_t * pYscrollTable
pointer to y direction scroll table for this background
Definition: background.h:67
Definition: background.h:50
frac_t fieldX
current world x position of playfield
Definition: background.h:52
bool bMoved
set when playfield has moved
Definition: background.h:57
frac_t fieldY
current world y position of playfield
Definition: background.h:53
OBJECT * pDispList
object display list for this playfield
Definition: background.h:51
frac_t fieldYvel
current y velocity of playfield
Definition: background.h:55
frac_t fieldXvel
current x velocity of playfield
Definition: background.h:54
Common::Rect rcClip
clip rectangle for this playfield
Definition: background.h:56