SBSPSS/source/frontend/start.h

135 lines
2.6 KiB
C
Raw Normal View History

2000-11-24 18:20:44 +01:00
/*=========================================================================
start.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __FRONTEND_START_H__
#define __FRONTEND_START_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __FRONTEND_FRONTEND_H__
#include "frontend\frontend.h"
#endif
2001-02-12 17:06:24 +01:00
#ifndef __GUI_GREADOUT_H__
#include "gui\greadout.h"
#endif
2000-11-24 18:20:44 +01:00
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CFrontEndStart : public CFrontEndMode
{
public:
void init();
void shutdown();
void select();
void unselect();
void render();
void think(int _frames);
int isReadyToExit();
CFrontEndScene::FrontEndMode getNextMode();
private:
2001-06-11 01:42:05 +02:00
enum
{
SLOT_FRAME_X=(512-416)/2,
SLOT_FRAME_Y=30,
SLOT_FRAME_W=416,
SLOT_FRAME_H=64,
SLOT_LEVEL_TEXT_X=15,
SLOT_LEVEL_TEXT_Y=5,
SLOT_ITEM_X=16,
SLOT_ITEM_Y=25,
SLOT_ITEM_YGAP=50,
SLOT_TOKENCOUNT_X=250,
SLOT_TOKENCOUNT_Y=5,
SLOT_EMPTYTEXT_X=416/2,
SLOT_EMPTYTEXT_Y=15,
INSTRUCTIONS_YSTART=147,
INSTRUCTIONS_BUTTON_Y_OFFSET=3,
INSTRUCTIONS_GAP_BETWEEN_BUTTONS=5,
INSTRUCTIONS_GAP_BETWEEN_BUTTONS_AND_TEXT=10,
INSTRUCTIONS_Y_SPACE_BETWEEN_LINES=15,
};
2001-06-11 00:56:33 +02:00
typedef enum
{
STATE_SELECT,
STATE_CONFIRM_ERASE,
STATE_EXITING_TO_FRONT_END,
STATE_EXITING_TO_GAME,
STATE_SLOT_CREATED,
}STATE;
void drawGameSlot(int _xOff,int _slotNumber);
void drawInstructions();
STATE m_state;
int m_selectedSlot,m_lastSelectedSlot;
int m_slotDrawOffset;
class CGUIGroupFrame *m_emptyGuiFrame;
class CGUIControlFrame *m_confirmEraseGuiFrame;
class CGUIControlFrame *m_createdSlotGuiFrame;
2000-11-24 18:20:44 +01:00
enum
{
2001-06-11 00:56:33 +02:00
CONFIRM_NONE=0,
CONFIRM_OK=1,
CONFIRM_YES=1,
CONFIRM_NO,
2000-11-24 18:20:44 +01:00
};
2001-06-11 00:56:33 +02:00
int m_confirmFlag;
int m_startGame;
class SpriteBank *m_spriteBank;
class FontBank *m_font;
2000-11-24 18:20:44 +01:00
2001-06-11 01:42:05 +02:00
static const int s_itemFrames[];
2001-02-12 17:06:24 +01:00
2000-11-24 18:20:44 +01:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __FRONTEND_START_H__ */
/*===========================================================================
end */