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
Afficher le fichier Open project: SpagAachen/Ballz Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
LoadContent ( ) : void

Private Methods

Méthode Description
GetChargeColor ( float charge ) : Vector4

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

Method Details

Draw() public méthode

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

DrawBall() public méthode

public DrawBall ( Ball ball ) : void
ball Ballz.GameSession.World.Ball
Résultat void

DrawGraphicsEvent() public méthode

public DrawGraphicsEvent ( GraphicsEvent graphicsEvent ) : void
graphicsEvent GraphicsEvent
Résultat void

DrawRope() public méthode

public DrawRope ( Rope rope ) : void
rope Ballz.GameSession.World.Rope
Résultat void

DrawShot() public méthode

public DrawShot ( Shot shot ) : void
shot Ballz.GameSession.World.Shot
Résultat void

DrawStatusOverlay() public méthode

public DrawStatusOverlay ( ) : void
Résultat void

GameRenderer() public méthode

public GameRenderer ( Ballz game ) : Ballz.GameSession.World
game Ballz
Résultat Ballz.GameSession.World

HandleMessage() public méthode

public HandleMessage ( object sender, Message message ) : void
sender object
message Ballz.Messages.Message
Résultat void

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

PostProcess() public méthode

public PostProcess ( ) : void
Résultat void