C# Class Ballz.GameSession.Renderer.GameRenderer

Render system performs all rendering of the Game and is inteded as a module.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Datei anzeigen Open project: SpagAachen/Ballz Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
LoadContent ( ) : void

Private Methods

Method Description
GetChargeColor ( float charge ) : Vector4

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

Method Details

Draw() public method

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).
return void

DrawBall() public method

public DrawBall ( Ball ball ) : void
ball Ballz.GameSession.World.Ball
return void

DrawGraphicsEvent() public method

public DrawGraphicsEvent ( GraphicsEvent graphicsEvent ) : void
graphicsEvent GraphicsEvent
return void

DrawRope() public method

public DrawRope ( Rope rope ) : void
rope Ballz.GameSession.World.Rope
return void

DrawShot() public method

public DrawShot ( Shot shot ) : void
shot Ballz.GameSession.World.Shot
return void

DrawStatusOverlay() public method

public DrawStatusOverlay ( ) : void
return void

GameRenderer() public method

public GameRenderer ( Ballz game ) : Ballz.GameSession.World
game Ballz
return Ballz.GameSession.World

HandleMessage() public method

public HandleMessage ( object sender, Message message ) : void
sender object
message Ballz.Messages.Message
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

PostProcess() public method

public PostProcess ( ) : void
return void