C# Класс Ballz.GameSession.Renderer.GameRenderer

Render system performs all rendering of the Game and is inteded as a module.
Наследование: Microsoft.Xna.Framework.DrawableGameComponent
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Draw ( GameTime time ) : void

Draw the game for the specified _time.

DrawBall ( Ball ball ) : void
DrawGraphicsEvent ( GraphicsEvent graphicsEvent ) : void
DrawRope ( Rope rope ) : void
DrawShot ( Shot shot ) : void
DrawStatusOverlay ( ) : void
GameRenderer ( Ballz game ) : Ballz.GameSession.World
HandleMessage ( object sender, Message message ) : void
PostProcess ( ) : void

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

Метод Описание
LoadContent ( ) : void

Приватные методы

Метод Описание
GetChargeColor ( float charge ) : Vector4

Returns a nice color between red and green for given inputs from [0..1].

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

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

Draw the game for the specified _time.
public Draw ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime time since start of game (cf BallzGame draw).
Результат void

DrawBall() публичный Метод

public DrawBall ( Ball ball ) : void
ball Ballz.GameSession.World.Ball
Результат void

DrawGraphicsEvent() публичный Метод

public DrawGraphicsEvent ( GraphicsEvent graphicsEvent ) : void
graphicsEvent GraphicsEvent
Результат void

DrawRope() публичный Метод

public DrawRope ( Rope rope ) : void
rope Ballz.GameSession.World.Rope
Результат void

DrawShot() публичный Метод

public DrawShot ( Shot shot ) : void
shot Ballz.GameSession.World.Shot
Результат void

DrawStatusOverlay() публичный Метод

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

GameRenderer() публичный Метод

public GameRenderer ( Ballz game ) : Ballz.GameSession.World
game Ballz
Результат Ballz.GameSession.World

HandleMessage() публичный Метод

public HandleMessage ( object sender, Message message ) : void
sender object
message Ballz.Messages.Message
Результат void

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

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

PostProcess() публичный Метод

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