SBSPSS/source/frontend/maintitl.h

126 lines
2.4 KiB
C
Raw Normal View History

2000-11-13 20:38:51 +01:00
/*=========================================================================
maintitl.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __FRONTEND_MAINTITL_H__
2000-11-20 16:45:17 +01:00
#define __FRONTEND_MAINTITL_H__
2000-11-13 20:38:51 +01:00
/*----------------------------------------------------------------------
Includes
-------- */
2000-11-15 16:37:12 +01:00
#ifndef __PRIM_HEADER__
#include "gfx\prim.h"
2000-11-13 20:38:51 +01:00
#endif
2000-11-24 01:00:10 +01:00
#ifndef __FRONTEND_FRONTEND_H__
2000-11-20 16:45:17 +01:00
#include "frontend\frontend.h"
#endif
2000-11-13 20:38:51 +01:00
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
2000-11-20 16:45:17 +01:00
class CFrontEndMainTitles : public CFrontEndMode
2000-11-13 20:38:51 +01:00
{
public:
void init();
void shutdown();
2000-11-22 18:02:04 +01:00
void select();
void unselect();
2000-11-13 20:38:51 +01:00
void render();
void think(int _frames);
2000-11-20 16:45:17 +01:00
int isReadyToExit();
CFrontEndScene::FrontEndMode getNextMode();
2000-11-13 20:38:51 +01:00
private:
2000-11-15 16:37:12 +01:00
enum
{
PRESS_START_TEXT_Y=180,
PRESS_START_TEXT_R=150,
PRESS_START_TEXT_G=100,
PRESS_START_TEXT_B=100,
2001-04-24 01:28:21 +02:00
/*
2000-11-15 16:37:12 +01:00
HORIZON_LEVEL=160,
2000-11-16 00:41:47 +01:00
SEA_OVERLAP=50, // Sea is drawn to this many pixels below screen bottom
2000-11-15 16:37:12 +01:00
2000-11-16 00:41:47 +01:00
ISLAND_LEFT_X=40, // Island position
2000-11-15 16:37:12 +01:00
ISLAND_BOTTOM_Y=HORIZON_LEVEL+10,
2001-04-24 01:28:21 +02:00
*/
2000-11-15 16:37:12 +01:00
};
enum
{
MODE__PRESS_START,
MODE__SELECT_OPTION,
2000-11-24 18:30:49 +01:00
MODE__GOTO_CHOOSE_SLOT,
2000-11-20 16:45:17 +01:00
MODE__GOTO_OPTIONS,
2000-11-24 01:00:10 +01:00
MODE__GOTO_DEMO,
2000-11-24 18:30:49 +01:00
MODE__GOTO_CREDITS,
2000-11-15 16:37:12 +01:00
};
2000-11-24 01:00:10 +01:00
enum
{
2001-01-19 17:25:05 +01:00
DEMO_TIMEOUT_IN_SECONDS=45,
2000-11-24 01:00:10 +01:00
};
2001-04-24 01:28:21 +02:00
/*
2000-11-16 00:41:47 +01:00
POLY_FT4 *prepareSeaPortionFT4(struct sFrameHdr *_fh,int _x,int _y,int _w,int _h,int _rgb);
void renderSeaSection(struct sFrameHdr *fh,int _x,int _y,int _w,int _h);
2001-04-24 01:28:21 +02:00
*/
2000-11-15 16:37:12 +01:00
void renderPressStart();
2000-11-13 20:38:51 +01:00
class SpriteBank *m_sprites;
2000-11-15 16:37:12 +01:00
class FontBank *m_smallFont;
2000-11-20 16:45:17 +01:00
class CGUIControlFrame *m_mainMenu;
2000-11-15 16:37:12 +01:00
int m_mode;
2000-11-20 16:45:17 +01:00
int m_startGameFlag;
int m_gotoOptionsFlag;
2000-11-24 18:30:49 +01:00
int m_gotoCreditsFlag;
2000-11-20 16:45:17 +01:00
2000-11-24 01:00:10 +01:00
int m_demoTimeout;
2001-02-09 18:01:04 +01:00
int m_musicStarted;
2000-11-24 01:00:10 +01:00
2000-11-13 20:38:51 +01:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __FRONTEND_MAINTITL_H__ */
/*===========================================================================
end */