C# Class MCDawn.Commands.GameControl.GameControl

Mostrar archivo Open project: jonnyli1125/MCDawn

Public Properties

Property Type Description
availableGames string[]
nullParameters string[]

Public Methods

Method Description
Add ( Game g ) : void

Add game to List enabledGames.

Delete ( Level l ) : void

Dispose and delete game out of List enabledGames.

FindGame ( Level level ) : Game

Return game of selected level, or null, if game isn't enabled.

GetGame ( string gameName, Level l ) : Game

Return game with the name of gameName.

IsEnabled ( Level l ) : bool

Return true, if any game enabled on level l, false otherwise.

Method Details

Add() public static method

Add game to List enabledGames.
public static Add ( Game g ) : void
g Game
return void

Delete() public static method

Dispose and delete game out of List enabledGames.
public static Delete ( Level l ) : void
l Level
return void

FindGame() public static method

Return game of selected level, or null, if game isn't enabled.
public static FindGame ( Level level ) : Game
level Level
return Game

GetGame() public static method

Return game with the name of gameName.
public static GetGame ( string gameName, Level l ) : Game
gameName string
l Level
return Game

IsEnabled() public static method

Return true, if any game enabled on level l, false otherwise.
public static IsEnabled ( Level l ) : bool
l Level
return bool

Property Details

availableGames public_oe static_oe property

public static string[] availableGames
return string[]

nullParameters public_oe static_oe property

public static string[] nullParameters
return string[]