C# 클래스 Sharplike.Core.Rendering.AbstractWindow

Abstract class to encapsulate a front-end display for Sharplike roguelikes.
Allows developers to pretty easily swap out frontends and minimize game logic changes (for platform changes--MonoDroid is a primary target for Sharplike).
상속: AbstractRegion, IDisposable
파일 보기 프로젝트 열기: eropple/sharplike 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
GlyphPalette GlyphPalette

보호된 프로퍼티들

프로퍼티 타입 설명
tiles ].DisplayTile[
windowTitle String

공개 메소드들

메소드 설명
AbstractWindow ( Size displayDimensions, GlyphPalette palette ) : System

Constructor.

Invalidate ( ) : void

Force a repaint of all tiles.

Update ( ) : void

Update the Window (paint any changes to screen).

this ( Int32 x, Int32 y ) : DisplayTile

Accessor for the Window's tiles. Allows developer to index tiles without worry about accidentally replacing a tile; they are manipulable but not overwritable.

보호된 메소드들

메소드 설명
WindowTitleChange ( ) : void

Invoked when the user changes the title (is called by the WindowTitle setter).

메소드 상세

AbstractWindow() 공개 메소드

Constructor.
public AbstractWindow ( Size displayDimensions, GlyphPalette palette ) : System
displayDimensions System.Drawing.Size /// The dimensions of the render screen, in pixels. ///
palette GlyphPalette /// The GlyphPalette for the Window. ///
리턴 System

Invalidate() 공개 메소드

Force a repaint of all tiles.
public Invalidate ( ) : void
리턴 void

Update() 공개 메소드

Update the Window (paint any changes to screen).
public Update ( ) : void
리턴 void

WindowTitleChange() 보호된 추상적인 메소드

Invoked when the user changes the title (is called by the WindowTitle setter).
protected abstract WindowTitleChange ( ) : void
리턴 void

this() 공개 메소드

Accessor for the Window's tiles. Allows developer to index tiles without worry about accidentally replacing a tile; they are manipulable but not overwritable.
public this ( Int32 x, Int32 y ) : DisplayTile
x System.Int32 X-coordinate of the tile to retrieve.
y System.Int32 Y-coordinate of the tile to retrieve.
리턴 DisplayTile

프로퍼티 상세

GlyphPalette 공개적으로 프로퍼티

The GlyphPalette for the Window, containing details of the available tiles.
public GlyphPalette,Sharplike.Core.Rendering GlyphPalette
리턴 GlyphPalette

tiles 보호되어 있는 프로퍼티

protected DisplayTile[,] tiles
리턴 ].DisplayTile[

windowTitle 보호되어 있는 프로퍼티

protected String windowTitle
리턴 String