Arcade
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
GameAPI.Demo Class Reference

Contains a recording of an arcade game as a sequence of frames. More...

Public Member Functions

 Demo ()
 Constructs a blank Demo, ready for frames to be recorded to. More...
 
void AddFrame< TGraphics, TAudio > (TGraphics graphics, TAudio audio)
 Appends the last frame rendered on the given GraphicsBase instance to the Demo recording. More...
 
void Render< TGraphics, TAudio > (TGraphics graphics, TAudio audio, int frameIndex)
 Draws the specified frame from this demo. More...
 

Public Attributes

const int MaxAudioEventsPerFrame = 255
 The largest number of individual sounds that may start playing on the same frame during a Demo. More...
 

Properties

bool IsLooping [get, set]
 If true, frame indices beyond the end of this demo will wrap back from the beginning. More...
 
int Length [get]
 Total number of frames recorded in this demo. More...
 

Detailed Description

Contains a recording of an arcade game as a sequence of frames.

Constructor & Destructor Documentation

GameAPI.Demo.Demo ( )
inline

Constructs a blank Demo, ready for frames to be recorded to.

Member Function Documentation

void GameAPI.Demo.AddFrame< TGraphics, TAudio > ( TGraphics  graphics,
TAudio  audio 
)
inline

Appends the last frame rendered on the given GraphicsBase instance to the Demo recording.

Parameters
graphicsGraphics context to record a frame from.
audioAudio context to record a frame from.
Type Constraints
TGraphics :Peripheral 
TGraphics :IGraphics 
TAudio :Peripheral 
TAudio :IAudio 
void GameAPI.Demo.Render< TGraphics, TAudio > ( TGraphics  graphics,
TAudio  audio,
int  frameIndex 
)
inline

Draws the specified frame from this demo.

Type Constraints
TGraphics :Peripheral 
TGraphics :IGraphics 
TAudio :Peripheral 
TAudio :IAudio 

Member Data Documentation

const int GameAPI.Demo.MaxAudioEventsPerFrame = 255

The largest number of individual sounds that may start playing on the same frame during a Demo.

Property Documentation

bool GameAPI.Demo.IsLooping
getset

If true, frame indices beyond the end of this demo will wrap back from the beginning.

int GameAPI.Demo.Length
get

Total number of frames recorded in this demo.