C# Class MBC.Core.Matches.ClassicGame

Inheritance: GameLogic
Exibir arquivo Open project: aiclub/Mohawk_Battleship

Private Properties

Property Type Description
EndLogic void
FormTeams void
MakeTurn void
PlaceAllShips void
PlayerDead void
PlayerInit void
PlayerLose void
PlayerTimedOut void
RandomizeTurns List

Public Methods

Method Description
ClassicGame ( IDNumber roundID, ActiveMatch match ) : System
NextTurn ( ) : IDNumber
Play ( ) : void
ShipsValid ( IDNumber player ) : bool
ShotValid ( IDNumber shooter, Shot shot ) : bool
Stop ( ) : void

Private Methods

Method Description
EndLogic ( ) : void
FormTeams ( ) : void
MakeTurn ( ) : void
PlaceAllShips ( ) : void
PlayerDead ( IDNumber plr ) : void
PlayerInit ( MBC.Core.Events.Event ev ) : void
PlayerLose ( IDNumber plr ) : void
PlayerTimedOut ( IDNumber plr, ControllerTimeoutException ex ) : void
RandomizeTurns ( ) : List

Method Details

ClassicGame() public method

public ClassicGame ( IDNumber roundID, ActiveMatch match ) : System
roundID MBC.Shared.IDNumber
match ActiveMatch
return System

NextTurn() public method

public NextTurn ( ) : IDNumber
return MBC.Shared.IDNumber

Play() public method

public Play ( ) : void
return void

ShipsValid() public method

public ShipsValid ( IDNumber player ) : bool
player MBC.Shared.IDNumber
return bool

ShotValid() public method

public ShotValid ( IDNumber shooter, Shot shot ) : bool
shooter MBC.Shared.IDNumber
shot Shot
return bool

Stop() public method

public Stop ( ) : void
return void