C# Class Snake.SnakeConsole

Inheritance: SadConsole.Consoles.Console
Afficher le fichier Open project: Thraka/SadConsole Class Usage Examples

Méthodes publiques

Méthode Description
ProcessKeyboard ( SadConsole info ) : bool
SnakeConsole ( ) : System
Update ( ) : void

Private Methods

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

public ProcessKeyboard ( SadConsole info ) : bool
info SadConsole
Résultat bool

SnakeConsole() public méthode

public SnakeConsole ( ) : System
Résultat System

Update() public méthode

public Update ( ) : void
Résultat void