C# Class Snake.SnakeConsole

Inheritance: SadConsole.Consoles.Console
Show file Open project: Thraka/SadConsole Class Usage Examples

Public Methods

Method Description
ProcessKeyboard ( SadConsole info ) : bool
SnakeConsole ( ) : System
Update ( ) : void

Private Methods

Method Description
AstrickKeyAnimationCb ( CodeInstruction codeInstruction ) : void
ClearScreen ( ) : void
CollisionDetection ( Point target ) : bool
CollisionDetectionSelf ( Point target ) : bool
CollisionDetectionWall ( Point target ) : bool
CreateFadeAnimation ( ) : SadConsole.Effects.Fade
CreateMenu ( ) : void
CreateRandomWaferLocation ( ) : void
CreateStartMessage ( ) : void
DownKeyAnimationCb ( CodeInstruction codeInstruction ) : void
DrawGameBorder ( ) : void
DrawPhoneButton ( int x, int y, String text ) : void
DrawScore ( int score ) : void
EndGame ( ) : void
LeftKeyAnimationCb ( CodeInstruction codeInstruction ) : void
ProcessKeyboardGameOver ( SadConsole info ) : bool
ProcessKeyboardMenu ( SadConsole info ) : bool
ProcessKeyboardRunning ( SadConsole info ) : bool
ResetGame ( ) : void
RightKeyAnimationCb ( CodeInstruction codeInstruction ) : void
RunGameLogic ( ) : void
UpKeyAnimationCb ( CodeInstruction codeInstruction ) : void
UpdateGame ( ) : void

Method Details

ProcessKeyboard() public method

public ProcessKeyboard ( SadConsole info ) : bool
info SadConsole
return bool

SnakeConsole() public method

public SnakeConsole ( ) : System
return System

Update() public method

public Update ( ) : void
return void