C# Class Bricklayer.Client.World.Minimap

Shows a small preview of a map
Mostra file Open project: Cyral/Bricklayer

Public Methods

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

Draws the minimap

Minimap ( Map map, int maxWidth, int maxHeight ) : System

Creates a new minimap

Update ( GameTime gameTime ) : void

Updates the minimap's tile preview and player positions

Method Details

Draw() public method

Draws the minimap
public Draw ( SpriteBatch spriteBatch, GameTime gameTime ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
gameTime Microsoft.Xna.Framework.GameTime
return void

Minimap() public method

Creates a new minimap
public Minimap ( Map map, int maxWidth, int maxHeight ) : System
map Map Map to base the preview off of
maxWidth int Maximum width of the minimap
maxHeight int Maximum height of the minimap
return System

Update() public method

Updates the minimap's tile preview and player positions
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void