C# Class GameCommon.Methods

ファイルを表示 Open project: nzhul/TelerikAcademy

Public Methods

Method Description
DisplayCombo ( int bonus, int x, int y ) : void
DrawMenu ( string playerName, bool gameoverFlag ) : void
DrawProgress ( int score, int maxScore, char progressBarCharacter, ConsoleColor color, int x, int y ) : void
DrawProgress ( int score, int maxScore, int x, int y ) : void
GetBoxesToRemove ( bool boxesToRemove ) : int
GetHighestScores ( string filePath ) : List
LoadGame ( string filePath, PlayField playField, Player player ) : void
LoadPlayer ( ) : string
SaveGame ( string filePath, PlayField playField, Player player ) : void
SaveHighestScores ( string filePath, Player playerCurrent, int topScoreCount ) : void
ScoreField ( int x, int y, Player player ) : void
Settings ( int x, int y ) : void
ShowTopScores ( string HIGHSCOREFILEPATH ) : void
VisualizeSound ( bool soundflag ) : void
isEmpty ( bool boxesToRemove ) : bool

Method Details

DisplayCombo() public static method

public static DisplayCombo ( int bonus, int x, int y ) : void
bonus int
x int
y int
return void

DrawMenu() public static method

public static DrawMenu ( string playerName, bool gameoverFlag ) : void
playerName string
gameoverFlag bool
return void

DrawProgress() public static method

public static DrawProgress ( int score, int maxScore, char progressBarCharacter, ConsoleColor color, int x, int y ) : void
score int
maxScore int
progressBarCharacter char
color ConsoleColor
x int
y int
return void

DrawProgress() public static method

public static DrawProgress ( int score, int maxScore, int x, int y ) : void
score int
maxScore int
x int
y int
return void

GetBoxesToRemove() public static method

public static GetBoxesToRemove ( bool boxesToRemove ) : int
boxesToRemove bool
return int

GetHighestScores() public static method

public static GetHighestScores ( string filePath ) : List
filePath string
return List

LoadGame() public static method

public static LoadGame ( string filePath, PlayField playField, Player player ) : void
filePath string
playField PlayField
player Player
return void

LoadPlayer() public static method

public static LoadPlayer ( ) : string
return string

SaveGame() public static method

public static SaveGame ( string filePath, PlayField playField, Player player ) : void
filePath string
playField PlayField
player Player
return void

SaveHighestScores() public static method

public static SaveHighestScores ( string filePath, Player playerCurrent, int topScoreCount ) : void
filePath string
playerCurrent Player
topScoreCount int
return void

ScoreField() public static method

public static ScoreField ( int x, int y, Player player ) : void
x int
y int
player Player
return void

Settings() public static method

public static Settings ( int x, int y ) : void
x int
y int
return void

ShowTopScores() public static method

public static ShowTopScores ( string HIGHSCOREFILEPATH ) : void
HIGHSCOREFILEPATH string
return void

VisualizeSound() public static method

public static VisualizeSound ( bool soundflag ) : void
soundflag bool
return void

isEmpty() public static method

public static isEmpty ( bool boxesToRemove ) : bool
boxesToRemove bool
return bool