C# Class CastleEscape.DrawableMap

A scriptable map that can be drawn to the screen. Author: Dennis Honeyman
Inheritance: ScriptableMap
Show file Open project: Daminvar/CastleEscape Class Usage Examples

Public Methods

Method Description
DrawBase ( SpriteBatch spriteBatch, int xPos, int yPos ) : void

Renders the base of the map (everything below the player) at the specified coordinates.

DrawTop ( SpriteBatch spriteBatch, int xPos, int yPos ) : void

Renders the top of the map (everything above the player) at the specified coordinates.

DrawableMap ( Microsoft.Xna.Framework.Game game ) : System

Private Methods

Method Description
drawLayers ( List layers, SpriteBatch spriteBatch, int xPos, int yPos ) : void

Method Details

DrawBase() public method

Renders the base of the map (everything below the player) at the specified coordinates.
public DrawBase ( SpriteBatch spriteBatch, int xPos, int yPos ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
xPos int
yPos int
return void

DrawTop() public method

Renders the top of the map (everything above the player) at the specified coordinates.
public DrawTop ( SpriteBatch spriteBatch, int xPos, int yPos ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
xPos int
yPos int
return void

DrawableMap() public method

public DrawableMap ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System