SBSPSS/source/frontend/demomode.h

97 lines
1.8 KiB
C
Raw Normal View History

2000-11-24 01:00:10 +01:00
/*=========================================================================
demomode.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __FRONTEND_DEMOMODE_H__
#define __FRONTEND_DEMOMODE_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __FRONTEND_FRONTEND_H__
#include "frontend\frontend.h"
#endif
2001-02-09 18:01:04 +01:00
#ifndef __GAME_GAME_H__
#include "game\game.h"
#endif
2000-11-24 01:00:10 +01:00
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
2001-02-09 18:01:04 +01:00
class CDemoGameScene : public CGameScene
{
public:
2001-02-12 18:24:58 +01:00
virtual void createPlayer();
virtual int canPause() {return false;}
2001-02-09 18:01:04 +01:00
};
2000-11-24 01:00:10 +01:00
class CFrontEndDemoMode : public CFrontEndMode
{
public:
void init();
void shutdown();
void select();
void unselect();
void render();
void think(int _frames);
int isReadyToExit();
CFrontEndScene::FrontEndMode getNextMode();
private:
enum
{
PRESS_START_TEXT_Y=180,
PRESS_START_TEXT_R=150,
PRESS_START_TEXT_G=100,
PRESS_START_TEXT_B=100,
2001-02-09 18:01:04 +01:00
// Fade-out to titles this many frames before end of demo
FADE_OUT_FRAMES=95,
2000-11-24 01:00:10 +01:00
};
class FontBank *m_smallFont;
int m_shuttingDown;
2001-02-09 18:01:04 +01:00
CDemoGameScene *m_gameScene;
2000-11-24 01:00:10 +01:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __FRONTEND_DEMOMODE_H__ */
/*===========================================================================
end */