C# Класс PacMan.Game

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Game ( int currentLevel ) : Level.System,
IsLevelComplete ( ) : bool
IsLoose ( ) : bool
IsWin ( ) : bool
KeyDown ( int directionNumber ) : void
MakeMovePacMan ( Point newPacManLocation, Point eyeCoordinate, Point mouthCoordinate ) : void
ReadNewLevelOnFile ( ) : Level

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
ConsiderNumberLevels ( ) : int
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsNewPacManLocationInMap ( Point newLocation ) : bool
MakeMoveEnemy ( object sender ) : void

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

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

Game() публичный Метод

public Game ( int currentLevel ) : Level.System,
currentLevel int
Результат Level.System,

IsLevelComplete() публичный Метод

public IsLevelComplete ( ) : bool
Результат bool

IsLoose() публичный Метод

public IsLoose ( ) : bool
Результат bool

IsWin() публичный Метод

public IsWin ( ) : bool
Результат bool

KeyDown() публичный Метод

public KeyDown ( int directionNumber ) : void
directionNumber int
Результат void

MakeMovePacMan() публичный Метод

public MakeMovePacMan ( Point newPacManLocation, Point eyeCoordinate, Point mouthCoordinate ) : void
newPacManLocation Point
eyeCoordinate Point
mouthCoordinate Point
Результат void

ReadNewLevelOnFile() публичный Метод

public ReadNewLevelOnFile ( ) : Level
Результат Level