C# Class GameGraphics.WorldGraphics

Exibir arquivo Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Public Methods

Method Description
GetGraphicsModel ( ) : GraphicsModel

Returns the GraphicsModel object that this class is using

GetSpriteStore ( ) : SpriteStore

Gets the SpriteStore object that this class uses when rendering.

Render ( SpriteBatch spriteBatch ) : void

Renders the game world this method is called during the games Draw method.

SetGraphicsModel ( GraphicsModel model ) : void

Sets the GraphicsModel that this class will reference and use to render the game world.

SetSpriteStore ( SpriteStore store ) : void

Sets the SpriteStore object that will hold all the sprites WorldGraphics will reference.

Method Details

GetGraphicsModel() public method

Returns the GraphicsModel object that this class is using
public GetGraphicsModel ( ) : GraphicsModel
return GraphicsModel

GetSpriteStore() public method

Gets the SpriteStore object that this class uses when rendering.
public GetSpriteStore ( ) : SpriteStore
return SpriteStore

Render() public method

Renders the game world this method is called during the games Draw method.
public Render ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch Contains graphics contexts for rendering on the game screen
return void

SetGraphicsModel() public method

Sets the GraphicsModel that this class will reference and use to render the game world.
public SetGraphicsModel ( GraphicsModel model ) : void
model GraphicsModel The GraphicsModel object that this class will use
return void

SetSpriteStore() public method

Sets the SpriteStore object that will hold all the sprites WorldGraphics will reference.
public SetSpriteStore ( SpriteStore store ) : void
store SpriteStore The SpriteStore object to be used
return void