SBSPSS/source/frontend/fmvintro.cpp

108 lines
2.2 KiB
C++
Raw Normal View History

2001-04-17 23:31:35 +02:00
/*=========================================================================
fmvintro.cpp
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
/*----------------------------------------------------------------------
Includes
-------- */
2001-04-17 23:40:16 +02:00
#include "frontend\fmvintro.h"
2001-04-17 23:31:35 +02:00
#ifndef __FMV_HEADER__
#include "fmv\fmv.h"
#endif
#ifndef __GFX_FADER_H__
#include "gfx\fader.h"
#endif
#ifndef __PAD_PADS_H__
#include "pad\pads.h"
#endif
/* Std Lib
------- */
/* Data
---- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
/*----------------------------------------------------------------------
Function Prototypes
------------------- */
/*----------------------------------------------------------------------
Vars
---- */
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
2001-04-17 23:40:16 +02:00
static bool fmvPerFrameFunc()
2001-04-17 23:31:35 +02:00
{
PadUpdate();
if(PadGetDown(0)&(PAD_START|PAD_CROSS))
{
PadUpdate();
return true;
}
return false;
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CFrontEndFMVIntro::select()
{
2001-04-17 23:40:16 +02:00
FMV_play(FMV_INTRO,&fmvPerFrameFunc);
2001-04-17 23:31:35 +02:00
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
int CFrontEndFMVIntro::isReadyToExit()
{
return true;
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
CFrontEndScene::FrontEndMode CFrontEndFMVIntro::getNextMode()
{
return CFrontEndScene::MODE__MAIN_TITLES;
}
/*===========================================================================
end */