C# Класс GameCommon.Methods

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

DisplayCombo() публичный статический Метод

public static DisplayCombo ( int bonus, int x, int y ) : void
bonus int
x int
y int
Результат void

DrawMenu() публичный статический Метод

public static DrawMenu ( string playerName, bool gameoverFlag ) : void
playerName string
gameoverFlag bool
Результат void

DrawProgress() публичный статический Метод

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
Результат void

DrawProgress() публичный статический Метод

public static DrawProgress ( int score, int maxScore, int x, int y ) : void
score int
maxScore int
x int
y int
Результат void

GetBoxesToRemove() публичный статический Метод

public static GetBoxesToRemove ( bool boxesToRemove ) : int
boxesToRemove bool
Результат int

GetHighestScores() публичный статический Метод

public static GetHighestScores ( string filePath ) : List
filePath string
Результат List

LoadGame() публичный статический Метод

public static LoadGame ( string filePath, PlayField playField, Player player ) : void
filePath string
playField PlayField
player Player
Результат void

LoadPlayer() публичный статический Метод

public static LoadPlayer ( ) : string
Результат string

SaveGame() публичный статический Метод

public static SaveGame ( string filePath, PlayField playField, Player player ) : void
filePath string
playField PlayField
player Player
Результат void

SaveHighestScores() публичный статический Метод

public static SaveHighestScores ( string filePath, Player playerCurrent, int topScoreCount ) : void
filePath string
playerCurrent Player
topScoreCount int
Результат void

ScoreField() публичный статический Метод

public static ScoreField ( int x, int y, Player player ) : void
x int
y int
player Player
Результат void

Settings() публичный статический Метод

public static Settings ( int x, int y ) : void
x int
y int
Результат void

ShowTopScores() публичный статический Метод

public static ShowTopScores ( string HIGHSCOREFILEPATH ) : void
HIGHSCOREFILEPATH string
Результат void

VisualizeSound() публичный статический Метод

public static VisualizeSound ( bool soundflag ) : void
soundflag bool
Результат void

isEmpty() публичный статический Метод

public static isEmpty ( bool boxesToRemove ) : bool
boxesToRemove bool
Результат bool