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
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
GlyphPalette GlyphPalette

Защищенные свойства (Protected)

Свойство Тип Описание
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