C# Class Sharplike.Core.Runtime.StepwiseGameLoop

Inheritance: AbstractGameLoop
ファイルを表示 Open project: eropple/sharplike Class Usage Examples

Public Methods

Method Description
Begin ( ) : void
StepwiseGameLoop ( Execute callback ) : System

Creates a new step-based game loop, which processes game logic only in response to a keypress.

StepwiseGameLoop ( Execute callback, System.Int64 startTime ) : System

Creates a new step-based game loop, which processes game logic only in response to a keypress.

StepwiseGameLoop ( Sharplike stateMachine ) : System

Creates a new step-based game loop, which processes game logic only in response to a keypress.

WaitForInput ( ) : CommandData

Wait for the user to press a key.

WaitForInput ( String expected ) : CommandData

Wait for a user to trigger one of the specified commands. This call will not return until the user triggers one of the expected commands.

Private Methods

Method Description
DoWait ( ) : CommandData
InputSystem_CommandTriggered ( object sender, Input e ) : void

Method Details

Begin() public method

public Begin ( ) : void
return void

StepwiseGameLoop() public method

Creates a new step-based game loop, which processes game logic only in response to a keypress.
public StepwiseGameLoop ( Execute callback ) : System
callback Execute The game entry point.
return System

StepwiseGameLoop() public method

Creates a new step-based game loop, which processes game logic only in response to a keypress.
public StepwiseGameLoop ( Execute callback, System.Int64 startTime ) : System
callback Execute The game entry point.
startTime System.Int64 The parameter to start the system at.
return System

StepwiseGameLoop() public method

Creates a new step-based game loop, which processes game logic only in response to a keypress.
public StepwiseGameLoop ( Sharplike stateMachine ) : System
stateMachine Sharplike The StateMachine used for this game's control flow.
return System

WaitForInput() public method

Wait for the user to press a key.
public WaitForInput ( ) : CommandData
return Sharplike.Core.Input.CommandData

WaitForInput() public method

Wait for a user to trigger one of the specified commands. This call will not return until the user triggers one of the expected commands.
public WaitForInput ( String expected ) : CommandData
expected String The specific commands to expect.
return Sharplike.Core.Input.CommandData