C# Class EtherDuels.Game.View.GameView

The GameView is responsible for drawing all the components needed in the game.
Mostra file Open project: julius/pse_spacewar Class Usage Examples

Public Methods

Method Description
Draw ( Viewport viewport, SpriteBatch spriteBatch, GameTime gameTime ) : void

Draws the GameView, all its subcomponents and the HUD (Head-Up-Display).

GameView ( GameModel gameModel, WorldView worldView ) : System

Creates a new GameView object.

Private Methods

Method Description
DrawHUD ( Viewport viewport, SpriteBatch spriteBatch ) : void

Method Details

Draw() public method

Draws the GameView, all its subcomponents and the HUD (Head-Up-Display).
public Draw ( Viewport viewport, SpriteBatch spriteBatch, GameTime gameTime ) : void
viewport Microsoft.Xna.Framework.Graphics.Viewport The used Viewport.
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch The used SpriteBatch.
gameTime Microsoft.Xna.Framework.GameTime The frame's time object.
return void

GameView() public method

Creates a new GameView object.
public GameView ( GameModel gameModel, WorldView worldView ) : System
gameModel EtherDuels.Game.Model.GameModel The assigned GameModel..
worldView WorldView The view of the World.
return System