C# Class Ballz.Renderer.BaseRenderer

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: SpagAachen/Ballz

Protected Properties

Свойство Type Description
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

Méthodes publiques

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

Méthodes protégées

Méthode Description
CheckLetters ( string toCheck ) : string
LoadContent ( ) : void
LoadFonts ( ) : void
LoadTextures ( ) : void

Method Details

BaseRenderer() public méthode

public BaseRenderer ( Ballz game ) : System
game Ballz
Résultat System

CheckLetters() protected méthode

protected CheckLetters ( string toCheck ) : string
toCheck string
Résultat string

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

DrawMessageOverlay() public méthode

public DrawMessageOverlay ( MessageOverlay overlay ) : void
overlay MessageOverlay
Résultat void

DrawMessageOverlay() public méthode

public DrawMessageOverlay ( string header, string longtext = null, string footer = null ) : void
header string
longtext string
footer string
Résultat void

DrawSky() public méthode

public DrawSky ( ) : void
Résultat void

DrawText() public méthode

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.
Résultat void

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

LoadFonts() protected méthode

protected LoadFonts ( ) : void
Résultat void

LoadTextures() protected méthode

protected LoadTextures ( ) : void
Résultat void

WorldToScreen() public méthode

public WorldToScreen ( Vector2 Position ) : Vector2
Position Vector2
Résultat Vector2

WorldToScreen() public méthode

public WorldToScreen ( Vector3 Position ) : Vector2
Position Vector3
Résultat Vector2

Property Details

CloudSpeed protected_oe property

protected float CloudSpeed
Résultat float

CloudTexture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics CloudTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

ElapsedTime protected_oe property

protected TimeSpan,System ElapsedTime
Résultat System.TimeSpan

Font protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics Font
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

Game protected_oe property

protected Ballz Game
Résultat Ballz

MipFont protected_oe property

protected SpriteFont[],Microsoft.Xna.Framework.Graphics MipFont
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont[]

Quad protected_oe property

protected VertexPositionTexture[],Microsoft.Xna.Framework.Graphics Quad
Résultat Microsoft.Xna.Framework.Graphics.VertexPositionTexture[]

SkyColor protected_oe property

protected Color SkyColor
Résultat Color

SkyTexture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics SkyTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

SpriteBatch protected_oe property

protected SpriteBatch,Microsoft.Xna.Framework.Graphics SpriteBatch
Résultat Microsoft.Xna.Framework.Graphics.SpriteBatch

WhiteTexture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics WhiteTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D