C# Class MCDawn.Commands.GameControl.Game

Afficher le fichier Open project: jonnyli1125/MCDawn Class Usage Examples

Méthodes publiques

Свойство Type Description
GameOPs List
level Level
name string

Protected Properties

Свойство Type Description
inProgress bool

Méthodes publiques

Méthode 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 méthode

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

ForceEnd() public abstract méthode

Manual end of the game.
public abstract ForceEnd ( string param ) : void
param string
Résultat void

GetCurrentInfo() public abstract méthode

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

GetForceEndMessage() public abstract méthode

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

GetHelp() public abstract méthode

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

GetStartMessage() public abstract méthode

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

IsInProgress() public méthode

public IsInProgress ( ) : bool
Résultat bool

SetParameters() public abstract méthode

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.
Résultat void

Start() public abstract méthode

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.
Résultat void

Property Details

GameOPs public_oe property

public List GameOPs
Résultat List

inProgress protected_oe property

protected bool inProgress
Résultat bool

level public_oe property

public Level level
Résultat Level

name public_oe property

public string name
Résultat string