C# Class GameGraphics.WorldGraphics

Afficher le fichier Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Méthodes publiques

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

Returns the GraphicsModel object that this class is using
public GetGraphicsModel ( ) : GraphicsModel
Résultat GraphicsModel

GetSpriteStore() public méthode

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

Render() public méthode

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

SetGraphicsModel() public méthode

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

SetSpriteStore() public méthode

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