C# Класс Ballz.Renderer.BaseRenderer

Наследование: Microsoft.Xna.Framework.DrawableGameComponent
Показать файл Открыть проект

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

Свойство Тип Описание
CloudSpeed float
CloudTexture Microsoft.Xna.Framework.Graphics.Texture2D
ElapsedTime System.TimeSpan
Font Microsoft.Xna.Framework.Graphics.SpriteFont
Game Ballz
MipFont Microsoft.Xna.Framework.Graphics.SpriteFont[]
Quad Microsoft.Xna.Framework.Graphics.VertexPositionTexture[]
SkyColor Color
SkyTexture Microsoft.Xna.Framework.Graphics.Texture2D
SpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
WhiteTexture Microsoft.Xna.Framework.Graphics.Texture2D

Открытые методы

Метод Описание
BaseRenderer ( Ballz game ) : System
Draw ( GameTime gameTime ) : void
DrawMessageOverlay ( MessageOverlay overlay ) : void
DrawMessageOverlay ( string header, string longtext = null, string footer = null ) : void
DrawSky ( ) : void
DrawText ( string _text, Vector2 position, float size, Color color, int shadowOffset = 2, bool centerVertical = false, bool centerHorizontal = false ) : void

Draws the text.

WorldToScreen ( Vector2 Position ) : Vector2
WorldToScreen ( Vector3 Position ) : Vector2

Защищенные методы

Метод Описание
CheckLetters ( string toCheck ) : string
LoadContent ( ) : void
LoadFonts ( ) : void
LoadTextures ( ) : void

Описание методов

BaseRenderer() публичный метод

public BaseRenderer ( Ballz game ) : System
game Ballz
Результат System

CheckLetters() защищенный метод

protected CheckLetters ( string toCheck ) : string
toCheck string
Результат string

Draw() публичный метод

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

DrawMessageOverlay() публичный метод

public DrawMessageOverlay ( MessageOverlay overlay ) : void
overlay MessageOverlay
Результат void

DrawMessageOverlay() публичный метод

public DrawMessageOverlay ( string header, string longtext = null, string footer = null ) : void
header string
longtext string
footer string
Результат void

DrawSky() публичный метод

public DrawSky ( ) : void
Результат void

DrawText() публичный метод

Draws the text.
public DrawText ( string _text, Vector2 position, float size, Color color, int shadowOffset = 2, bool centerVertical = false, bool centerHorizontal = false ) : void
_text string
position Vector2 Position.
size float Size as a multiple of 48pt.
color Color Color.
shadowOffset int Shadow offset.
centerVertical bool If set to true center vertical.
centerHorizontal bool If set to true center horizontal.
Результат void

LoadContent() защищенный метод

protected LoadContent ( ) : void
Результат void

LoadFonts() защищенный метод

protected LoadFonts ( ) : void
Результат void

LoadTextures() защищенный метод

protected LoadTextures ( ) : void
Результат void

WorldToScreen() публичный метод

public WorldToScreen ( Vector2 Position ) : Vector2
Position Vector2
Результат Vector2

WorldToScreen() публичный метод

public WorldToScreen ( Vector3 Position ) : Vector2
Position Vector3
Результат Vector2

Описание свойств

CloudSpeed защищенное свойство

protected float CloudSpeed
Результат float

CloudTexture защищенное свойство

protected Texture2D,Microsoft.Xna.Framework.Graphics CloudTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D

ElapsedTime защищенное свойство

protected TimeSpan,System ElapsedTime
Результат System.TimeSpan

Font защищенное свойство

protected SpriteFont,Microsoft.Xna.Framework.Graphics Font
Результат Microsoft.Xna.Framework.Graphics.SpriteFont

Game защищенное свойство

protected Ballz Game
Результат Ballz

MipFont защищенное свойство

protected SpriteFont[],Microsoft.Xna.Framework.Graphics MipFont
Результат Microsoft.Xna.Framework.Graphics.SpriteFont[]

Quad защищенное свойство

protected VertexPositionTexture[],Microsoft.Xna.Framework.Graphics Quad
Результат Microsoft.Xna.Framework.Graphics.VertexPositionTexture[]

SkyColor защищенное свойство

protected Color SkyColor
Результат Color

SkyTexture защищенное свойство

protected Texture2D,Microsoft.Xna.Framework.Graphics SkyTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D

SpriteBatch защищенное свойство

protected SpriteBatch,Microsoft.Xna.Framework.Graphics SpriteBatch
Результат Microsoft.Xna.Framework.Graphics.SpriteBatch

WhiteTexture защищенное свойство

protected Texture2D,Microsoft.Xna.Framework.Graphics WhiteTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D