C# Class Zeplin.StateManager

Exibir arquivo Open project: zumpiez/Zeplin

Public Methods

Method Description
AddState ( String name ) : void

Enqueues a state with no transition time.

AddState ( String name, System.TimeSpan duration ) : void

Enqueues a state with a defined transition time.

ForceState ( String name ) : void

Immediately changes the state and destroys the queue.

StateManager ( ZeplinGame game ) : System

Private Methods

Method Description
ProcessState ( GameTime time ) : void

Method Details

AddState() public method

Enqueues a state with no transition time.
public AddState ( String name ) : void
name String
return void

AddState() public method

Enqueues a state with a defined transition time.
public AddState ( String name, System.TimeSpan duration ) : void
name String
duration System.TimeSpan The amount of time it will take to transition to this state.
return void

ForceState() public method

Immediately changes the state and destroys the queue.
public ForceState ( String name ) : void
name String
return void

StateManager() public method

public StateManager ( ZeplinGame game ) : System
game ZeplinGame
return System