C# 클래스 BalloonsPop.GraphicUserInterface.MainWindowController

Implements the IEventBasedUserInterface and updates the view on command of the engine.
상속: IEventBasedUserInterface
파일 보기 프로젝트 열기: Baloons-Pop-4/Main 1 사용 예제들

공개 메소드들

메소드 설명
MainWindowController ( BalloonsView window, IBalloonsWpfResourceProvider resources ) : System

Initializes a new instance of the MainWindowController class with view and resource provider.

PrintField ( IBalloon matrix ) : void

Introduces updates on the view bases on the provided IBalloon two-dimensional array.

PrintHighscore ( IHighscoreTable table ) : void

Updates the ranking of the view based on the provided IHighscoreTable instance.

PrintMessage ( string message ) : void

Updates the view's message section.

PrintPlayerMoves ( string moves ) : void

Draws the passed string as player moves on the view.

Show ( ) : void

Displays the view and returns without waiting for the view to close.

비공개 메소드들

메소드 설명
InitializeBalloonImageMatrix ( int rowsCount, int colsCount ) : void

메소드 상세

MainWindowController() 공개 메소드

Initializes a new instance of the MainWindowController class with view and resource provider.
public MainWindowController ( BalloonsView window, IBalloonsWpfResourceProvider resources ) : System
window BalloonsView The view which the newly created instance is responsible for managing.
resources IBalloonsWpfResourceProvider The resource provider which the newly created instance will query for resources.
리턴 System

PrintField() 공개 메소드

Introduces updates on the view bases on the provided IBalloon two-dimensional array.
public PrintField ( IBalloon matrix ) : void
matrix IBalloon The array which is used as a blueprint for introducing changes to the view.
리턴 void

PrintHighscore() 공개 메소드

Updates the ranking of the view based on the provided IHighscoreTable instance.
public PrintHighscore ( IHighscoreTable table ) : void
table IHighscoreTable The highscore table on which the introduced changes are based.
리턴 void

PrintMessage() 공개 메소드

Updates the view's message section.
public PrintMessage ( string message ) : void
message string The message to be shown to the user.
리턴 void

PrintPlayerMoves() 공개 메소드

Draws the passed string as player moves on the view.
public PrintPlayerMoves ( string moves ) : void
moves string
리턴 void

Show() 공개 메소드

Displays the view and returns without waiting for the view to close.
public Show ( ) : void
리턴 void