C# Class MCDawn.Commands.GameControl.Game

Mostra file Open project: jonnyli1125/MCDawn Class Usage Examples

Public Properties

Property Type Description
GameOPs List
level Level
name string

Protected Properties

Property Type Description
inProgress bool

Public Methods

Method Description
Dispose ( string param ) : void

Stops and clean up all changes game made before, like changing names, colours, titles.

ForceEnd ( string param ) : void

Manual end of the game.

GetCurrentInfo ( string param ) : string[]

Get info of game, like scores, teams, deaths, and more.

GetForceEndMessage ( ) : string[]

Message to level at manual game end.

GetHelp ( ) : string[]

Return full help for choosen game, rules, parameters and so on.

GetStartMessage ( ) : string[]

Message to level at game start.

IsInProgress ( ) : bool
SetParameters ( string param, bool &check, string &message ) : void

Sets parameter for game.

Start ( string param, bool &check, string &message ) : void

Start choosen game. State of running will record into check and message.

Method Details

Dispose() public abstract method

Stops and clean up all changes game made before, like changing names, colours, titles.
public abstract Dispose ( string param ) : void
param string
return void

ForceEnd() public abstract method

Manual end of the game.
public abstract ForceEnd ( string param ) : void
param string
return void

GetCurrentInfo() public abstract method

Get info of game, like scores, teams, deaths, and more.
public abstract GetCurrentInfo ( string param ) : string[]
param string
return string[]

GetForceEndMessage() public abstract method

Message to level at manual game end.
public abstract GetForceEndMessage ( ) : string[]
return string[]

GetHelp() public abstract method

Return full help for choosen game, rules, parameters and so on.
public abstract GetHelp ( ) : string[]
return string[]

GetStartMessage() public abstract method

Message to level at game start.
public abstract GetStartMessage ( ) : string[]
return string[]

IsInProgress() public method

public IsInProgress ( ) : bool
return bool

SetParameters() public abstract method

Sets parameter for game.
public abstract SetParameters ( string param, bool &check, string &message ) : void
param string Array of parameters without keyword "set".
check bool Get or not any error, true - no error.
message string Message to show.
return void

Start() public abstract method

Start choosen game. State of running will record into check and message.
public abstract Start ( string param, bool &check, string &message ) : void
param string Array of parameters without keyword "set".
check bool Show result, false - game not started.
message string Message to show.
return void

Property Details

GameOPs public_oe property

public List GameOPs
return List

inProgress protected_oe property

protected bool inProgress
return bool

level public_oe property

public Level level
return Level

name public_oe property

public string name
return string