C# Class BolfTracker.Web.GamePanelViewModel

Show file Open project: mkchandler/bolf-tracker-mvc

Public Properties

Property Type Description
Hole string
Player string

Public Methods

Method Description
GamePanelViewModel ( BolfTracker.Models.Game game, IEnumerable shots, IEnumerable allPlayers, IEnumerable allHoles ) : System
GetCurrentHole ( ) : int
GetNextPlayer ( ) : BolfTracker.Models.Player
GetPointsAvailable ( int currentHole ) : int
HoleIsPushed ( int hole ) : bool

Private Methods

Method Description
GetCurrentActivePlayers ( IEnumerable gamePlayers, bool includeOvertime ) : IEnumerable
GetCurrentPlayer ( ) : BolfTracker.Models.Player
GetPlayersWhoCanWin ( int currentHole ) : IEnumerable

Method Details

GamePanelViewModel() public method

public GamePanelViewModel ( BolfTracker.Models.Game game, IEnumerable shots, IEnumerable allPlayers, IEnumerable allHoles ) : System
game BolfTracker.Models.Game
shots IEnumerable
allPlayers IEnumerable
allHoles IEnumerable
return System

GetCurrentHole() public method

public GetCurrentHole ( ) : int
return int

GetNextPlayer() public method

public GetNextPlayer ( ) : BolfTracker.Models.Player
return BolfTracker.Models.Player

GetPointsAvailable() public method

public GetPointsAvailable ( int currentHole ) : int
currentHole int
return int

HoleIsPushed() public method

public HoleIsPushed ( int hole ) : bool
hole int
return bool

Property Details

Hole public property

public string Hole
return string

Player public property

public string Player
return string