C# Class MBC.Core.Matches.ActiveMatch

Inheritance: MBC.Core.Matches.Match
Exibir arquivo Open project: aiclub/Mohawk_Battleship Class Usage Examples

Protected Properties

Property Type Description
controllers IController>.Dictionary

Public Methods

Method Description
ActiveMatch ( ) : System
ActiveMatch ( Configuration conf ) : System
AddController ( IController plr ) : void
End ( ) : void
GetTeam ( string name ) : IDNumber
SaveToFile ( string location ) : void
SetConfiguration ( Configuration config ) : void
SetControllerToTeam ( IDNumber ctrl, IDNumber team ) : void
UnsetControllerFromTeam ( IDNumber ctrl, IDNumber team ) : void

Protected Methods

Method Description
ApplyEvent ( MBC.Core.Events.Event ev ) : void
GetTeam ( string name, bool internalTeam ) : IDNumber

Private Methods

Method Description
ControllersUpdateMatch ( ) : void
ControllersUpdateRegisters ( ) : void
ControllersUpdateTeams ( ) : void
MatchAddPlayer ( MBC.Core.Events.Event ev ) : void
MatchEnd ( MBC.Core.Events.Event ev ) : void
MatchRemovePlayer ( MBC.Core.Events.Event ev ) : void
TeamChangeEvent ( MBC.Core.Events.Event ev ) : void

Method Details

ActiveMatch() public method

public ActiveMatch ( ) : System
return System

ActiveMatch() public method

public ActiveMatch ( Configuration conf ) : System
conf Configuration
return System

AddController() public method

public AddController ( IController plr ) : void
plr IController
return void

ApplyEvent() protected method

protected ApplyEvent ( MBC.Core.Events.Event ev ) : void
ev MBC.Core.Events.Event
return void

End() public method

public End ( ) : void
return void

GetTeam() public method

public GetTeam ( string name ) : IDNumber
name string
return MBC.Shared.IDNumber

GetTeam() protected method

protected GetTeam ( string name, bool internalTeam ) : IDNumber
name string
internalTeam bool
return MBC.Shared.IDNumber

SaveToFile() public method

public SaveToFile ( string location ) : void
location string
return void

SetConfiguration() public method

public SetConfiguration ( Configuration config ) : void
config Configuration
return void

SetControllerToTeam() public method

public SetControllerToTeam ( IDNumber ctrl, IDNumber team ) : void
ctrl MBC.Shared.IDNumber
team MBC.Shared.IDNumber
return void

UnsetControllerFromTeam() public method

public UnsetControllerFromTeam ( IDNumber ctrl, IDNumber team ) : void
ctrl MBC.Shared.IDNumber
team MBC.Shared.IDNumber
return void

Property Details

controllers protected_oe property

protected Dictionary controllers
return IController>.Dictionary