C# Class SanderVantEinde.SecretHitlerBot.GameRegistry

Show file Open project: sandervanteinde/TelegramBot

Public Properties

Property Type Description
PlayerRoles SanderVantEinde.SecretHitlerBot.PlayerRole[]

Private Properties

Property Type Description
GetGameForHost Game

Public Methods

Method Description
GetGames ( ) : Game[]
HostGame ( User host ) : Game
IsInGame ( User user ) : bool
IsInGame ( User user, Game &game ) : bool
JoinGame ( User host, User join ) : int
RemoveGame ( Game game ) : void

Private Methods

Method Description
GetGameForHost ( User from ) : Game

Method Details

GetGames() public static method

public static GetGames ( ) : Game[]
return Game[]

HostGame() public static method

public static HostGame ( User host ) : Game
host SanderVantEinde.TelegramBot.User
return Game

IsInGame() public static method

public static IsInGame ( User user ) : bool
user SanderVantEinde.TelegramBot.User
return bool

IsInGame() public static method

public static IsInGame ( User user, Game &game ) : bool
user SanderVantEinde.TelegramBot.User
game Game
return bool

JoinGame() public static method

public static JoinGame ( User host, User join ) : int
host SanderVantEinde.TelegramBot.User
join SanderVantEinde.TelegramBot.User
return int

RemoveGame() public static method

public static RemoveGame ( Game game ) : void
game Game
return void

Property Details

PlayerRoles public static property

public static PlayerRole[],SanderVantEinde.SecretHitlerBot PlayerRoles
return SanderVantEinde.SecretHitlerBot.PlayerRole[]