C# Class PlatformTest.Map

Datei anzeigen Open project: zmthy/play-dead Class Usage Examples

Public Properties

Property Type Description
height int
width int

Public Methods

Method Description
DrawMap ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D tileSheet ) : void
Map ( GraphicsDevice graphics ) : System
Set ( int y, int x, int currentTile ) : void
getType ( int y, int x ) : int

Private Methods

Method Description
SourcePoint ( int cell, Microsoft.Xna.Framework.Graphics.Texture2D tileSheet ) : Rectangle

Method Details

DrawMap() public method

public DrawMap ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D tileSheet ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
tileSheet Microsoft.Xna.Framework.Graphics.Texture2D
return void

Map() public method

public Map ( GraphicsDevice graphics ) : System
graphics GraphicsDevice
return System

Set() public method

public Set ( int y, int x, int currentTile ) : void
y int
x int
currentTile int
return void

getType() public static method

public static getType ( int y, int x ) : int
y int
x int
return int

Property Details

height public_oe static_oe property

public static int height
return int

width public_oe static_oe property

public static int width
return int