C# Class PacMan.Game

Afficher le fichier Open project: Confirmit/Students Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
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

Method Details

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

Game() public méthode

public Game ( int currentLevel ) : Level.System,
currentLevel int
Résultat Level.System,

IsLevelComplete() public méthode

public IsLevelComplete ( ) : bool
Résultat bool

IsLoose() public méthode

public IsLoose ( ) : bool
Résultat bool

IsWin() public méthode

public IsWin ( ) : bool
Résultat bool

KeyDown() public méthode

public KeyDown ( int directionNumber ) : void
directionNumber int
Résultat void

MakeMovePacMan() public méthode

public MakeMovePacMan ( Point newPacManLocation, Point eyeCoordinate, Point mouthCoordinate ) : void
newPacManLocation Point
eyeCoordinate Point
mouthCoordinate Point
Résultat void

ReadNewLevelOnFile() public méthode

public ReadNewLevelOnFile ( ) : Level
Résultat Level