C# Class Blink.Classes.Map

Show file Open project: dah6ce/Blink Class Usage Examples

Public Methods

Method Description
Draw ( SpriteBatch sB ) : void
Initialize ( Microsoft.Xna.Framework.Graphics.Texture2D mText, String cMap, int tS, int mX, int mY, PlayerClass p, Microsoft.Xna.Framework.Graphics.Texture2D power ) : void
blockInfo ( Vector2 pos ) : int
checkFooting ( Vector2 pos ) : int
checkPowerup ( Rectangle r ) : PowerupEnum
collides ( Vector2 pos, Vector2 oPos, int down, int right, Vector2 charSize, System.Boolean blinked, float hitReduce ) : System.Boolean[]
loopCorrection ( float input, float scale ) : float
mapCollisions ( String cMap ) : void
reset ( ) : void
updatePowerup ( GameTime gt ) : void

Private Methods

Method Description
collidePowerup ( Rectangle p ) : int

Method Details

Draw() public method

public Draw ( SpriteBatch sB ) : void
sB Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Initialize() public method

public Initialize ( Microsoft.Xna.Framework.Graphics.Texture2D mText, String cMap, int tS, int mX, int mY, PlayerClass p, Microsoft.Xna.Framework.Graphics.Texture2D power ) : void
mText Microsoft.Xna.Framework.Graphics.Texture2D
cMap String
tS int
mX int
mY int
p PlayerClass
power Microsoft.Xna.Framework.Graphics.Texture2D
return void

blockInfo() public method

public blockInfo ( Vector2 pos ) : int
pos Vector2
return int

checkFooting() public method

public checkFooting ( Vector2 pos ) : int
pos Vector2
return int

checkPowerup() public method

public checkPowerup ( Rectangle r ) : PowerupEnum
r Microsoft.Xna.Framework.Rectangle
return PowerupEnum

collides() public method

public collides ( Vector2 pos, Vector2 oPos, int down, int right, Vector2 charSize, System.Boolean blinked, float hitReduce ) : System.Boolean[]
pos Vector2
oPos Vector2
down int
right int
charSize Vector2
blinked System.Boolean
hitReduce float
return System.Boolean[]

loopCorrection() public method

public loopCorrection ( float input, float scale ) : float
input float
scale float
return float

mapCollisions() public method

public mapCollisions ( String cMap ) : void
cMap String
return void

reset() public method

public reset ( ) : void
return void

updatePowerup() public method

public updatePowerup ( GameTime gt ) : void
gt Microsoft.Xna.Framework.GameTime
return void