SBSPSS/source/player/demoplay.h

88 lines
1.7 KiB
C
Raw Normal View History

2001-02-08 21:01:41 +01:00
/*=========================================================================
demoplay.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLAYER_DEMOPLAY_H__
#define __PLAYER_DEMOPLAY_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __PLAYER_PLAYER_H__
#include "player/player.h"
#endif
2001-02-09 18:01:04 +01:00
#ifndef _FILEIO_HEADER_
#include "fileio\fileio.h"
#endif
2001-02-08 21:01:41 +01:00
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CDemoPlayer : public CPlayer
{
public:
typedef struct
{
u8 m_inputValue;
u8 m_length;
}demoPlayerControl;
2001-02-09 18:01:04 +01:00
void loadControlData(FileEquate _fe);
int getFramesLeft();
virtual void shutdown();
2001-02-08 21:01:41 +01:00
protected:
virtual PLAYERINPUT readPadInput();
2001-02-09 18:01:04 +01:00
2001-02-08 21:01:41 +01:00
private:
2001-02-09 18:01:04 +01:00
char *m_demoData;
demoPlayerControl *m_controlData;
int m_controlDataSize;
int m_controlFrameCount;
int m_currentControlFrame;
int m_frameCount;
int m_totalFrameCount;
2001-02-08 21:01:41 +01:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PLAYER_DEMOPLAY_H__ */
/*===========================================================================
end */