This commit is contained in:
parent
5c9ba0bed4
commit
cb8f1a3ae0
2 changed files with 305 additions and 0 deletions
87
source/paul/scenesel.h
Normal file
87
source/paul/scenesel.h
Normal file
|
@ -0,0 +1,87 @@
|
|||
/*=========================================================================
|
||||
|
||||
scenesel.h
|
||||
|
||||
Author: PKG
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose: Scene selection thingy..
|
||||
|
||||
Copyright (c) 2000 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __PAUL_SCENESEL_H__
|
||||
#define __PAUL_SCENESEL_H__
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Includes
|
||||
-------- */
|
||||
|
||||
#ifndef __SYSTEM_GSTATE_H__
|
||||
#include "system\gstate.h"
|
||||
#endif
|
||||
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Tyepdefs && Defines
|
||||
------------------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Structure defintions
|
||||
-------------------- */
|
||||
|
||||
class CSceneSelector : public CScene
|
||||
{
|
||||
public:
|
||||
void init();
|
||||
void shutdown();
|
||||
void render();
|
||||
void think(int _frames);
|
||||
int readyToShutdown();
|
||||
char *getSceneName() {return"SceneSelector";}
|
||||
|
||||
|
||||
private:
|
||||
enum
|
||||
{
|
||||
STATE_INIT,
|
||||
STATE_SELECTING,
|
||||
STATE_SELECTED,
|
||||
STATE_READY_TO_EXIT,
|
||||
};
|
||||
|
||||
static class CScene *s_sceneList[];
|
||||
static int s_sceneCount;
|
||||
int m_currentSelection;
|
||||
int m_state;
|
||||
int m_countdown;
|
||||
|
||||
class FontBank *m_font;
|
||||
|
||||
|
||||
void selectScene(int _scene);
|
||||
|
||||
};
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Globals
|
||||
------- */
|
||||
|
||||
extern CSceneSelector SceneSelector;
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Functions
|
||||
--------- */
|
||||
|
||||
/*---------------------------------------------------------------------- */
|
||||
|
||||
#endif /* __PAUL_SCENESEL_H__ */
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
Loading…
Add table
Add a link
Reference in a new issue