SBSPSS/source/frontend/scrollbg.h

77 lines
1.6 KiB
C
Raw Normal View History

2000-11-09 21:29:28 +01:00
/*=========================================================================
scrollbg.h
Author: PKG
Created:
Project: Spongebob
2000-11-13 18:03:20 +01:00
Purpose: Scrolling tiled background class
2000-11-09 21:29:28 +01:00
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __FRONTEND_SCROLLBG_H__
#define __FRONTEND_SCROLLBG_H__
/*----------------------------------------------------------------------
Includes
-------- */
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CScrollyBackground
{
public:
void init();
void shutdown();
void render();
void think(int _frames);
2000-11-13 18:03:20 +01:00
void setSpeed(int _xSpeed,int _ySpeed) {m_xSpeed=_xSpeed;m_ySpeed=_ySpeed;}
void setSpeedScale(int _speedScale) {m_speedScale=_speedScale;}
void setOt(int _ot) {m_ot=_ot;}
2000-11-09 21:29:28 +01:00
private:
2000-11-13 18:03:20 +01:00
enum
{
DEFAULT_X_SPEED=-2,
DEFAULT_Y_SPEED=-3,
DEFAULT_SPEED_SCALE=2,
DEFAULT_OT=1000,
};
2000-11-09 21:29:28 +01:00
class SpriteBank *m_sprites;
int m_xOff,m_yOff;
2000-11-13 18:03:20 +01:00
int m_xSpeed,m_ySpeed;
int m_speedScale;
int m_ot;
2000-11-09 21:29:28 +01:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __FRONTEND_SCROLLBG_H__ */
/*===========================================================================
end */