C# 클래스 Ballz.Renderer.BaseRenderer

상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: SpagAachen/Ballz

보호된 프로퍼티들

프로퍼티 타입 설명
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