SBSPSS/source/frontend/fmvthq.cpp

113 lines
2.3 KiB
C++
Raw Normal View History

2001-04-17 23:26:40 +02:00
/*=========================================================================
fmvthq.cpp
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
/*----------------------------------------------------------------------
Includes
-------- */
#include "frontend\fmvthq.h"
#ifndef __FMV_HEADER__
#include "fmv\fmv.h"
#endif
2001-08-07 17:16:54 +02:00
#ifndef __VID_HEADER_
#include "system\vid.h"
#endif
2001-04-17 23:26:40 +02:00
#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:26:40 +02:00
{
PadUpdate();
if(PadGetDown(0)&(PAD_START|PAD_CROSS))
{
PadUpdate();
2001-04-17 23:40:16 +02:00
return true;
2001-04-17 23:26:40 +02:00
}
2001-04-17 23:40:16 +02:00
return false;
2001-04-17 23:26:40 +02:00
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CFrontEndFMVTHQ::select()
{
2001-08-07 17:16:54 +02:00
StopLoad();
2001-04-17 23:26:40 +02:00
FMV_play(FMV_THQ,&fmvPerFrameFunc);
2001-07-05 23:45:07 +02:00
FMV_play(FMV_CLIMAX,&fmvPerFrameFunc);
2001-04-17 23:26:40 +02:00
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
int CFrontEndFMVTHQ::isReadyToExit()
{
2001-04-17 23:40:16 +02:00
return true;
2001-04-17 23:26:40 +02:00
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
CFrontEndScene::FrontEndMode CFrontEndFMVTHQ::getNextMode()
{
2001-04-17 23:40:16 +02:00
return CFrontEndScene::MODE__FMV_INTRO;
2001-04-17 23:26:40 +02:00
}
/*===========================================================================
end */