C# Class PacMan.Game

Mostrar archivo Open project: Confirmit/Students Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method 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 method

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

Game() public method

public Game ( int currentLevel ) : Level.System,
currentLevel int
return Level.System,

IsLevelComplete() public method

public IsLevelComplete ( ) : bool
return bool

IsLoose() public method

public IsLoose ( ) : bool
return bool

IsWin() public method

public IsWin ( ) : bool
return bool

KeyDown() public method

public KeyDown ( int directionNumber ) : void
directionNumber int
return void

MakeMovePacMan() public method

public MakeMovePacMan ( Point newPacManLocation, Point eyeCoordinate, Point mouthCoordinate ) : void
newPacManLocation Point
eyeCoordinate Point
mouthCoordinate Point
return void

ReadNewLevelOnFile() public method

public ReadNewLevelOnFile ( ) : Level
return Level