C# Class EvolveApp.ViewModels.SimonSaysViewModel

Inheritance: BaseViewModel
Show file Open project: xamarin/mini-hacks Class Usage Examples

Public Properties

Property Type Description
gameRunning bool
playerEntry string
simonMoves string

Public Methods

Method Description
ClearPlayerEntry ( ) : void
EndGame ( ) : System.Threading.Tasks.Task
Loser ( ) : System.Threading.Tasks.Task
PlayerPressButtonAsync ( string color ) : System.Threading.Tasks.Task
SetLightColor ( Color color ) : void
SimonSaysViewModel ( ParticleDevice device ) : System
StartGame ( ) : System.Threading.Tasks.Task
Winner ( ) : System.Threading.Tasks.Task

Private Methods

Method Description
GameHandler ( object sender, ParticleEventArgs e ) : void
PerformAction ( ) : System.Threading.Tasks.Task

Method Details

ClearPlayerEntry() public method

public ClearPlayerEntry ( ) : void
return void

EndGame() public method

public EndGame ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Loser() public method

public Loser ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

PlayerPressButtonAsync() public method

public PlayerPressButtonAsync ( string color ) : System.Threading.Tasks.Task
color string
return System.Threading.Tasks.Task

SetLightColor() public method

public SetLightColor ( Color color ) : void
color Color
return void

SimonSaysViewModel() public method

public SimonSaysViewModel ( ParticleDevice device ) : System
device Particle.ParticleDevice
return System

StartGame() public method

public StartGame ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Winner() public method

public Winner ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Property Details

gameRunning public property

public bool gameRunning
return bool

playerEntry public property

public string playerEntry
return string

simonMoves public property

public string simonMoves
return string