C# Class FBLibrary.Core.Engine

Mostrar archivo Open project: Noxalus/Final-Bomber Class Usage Examples

Public Methods

Method Description
CellToVector ( Point position ) : Vector2
ChangeOrigin ( float x, float y ) : void
ChangeXOrigin ( float x ) : void
ChangeYOrigin ( float y ) : void
Engine ( int tileWidth, int tileHeight, Vector2 origin ) : Microsoft.Xna.Framework
VectorToCell ( Vector2 position ) : Point
VectorToCell ( Vector2 position, Point dimension ) : Point

Method Details

CellToVector() public static method

public static CellToVector ( Point position ) : Vector2
position Microsoft.Xna.Framework.Point
return Microsoft.Xna.Framework.Vector2

ChangeOrigin() public static method

public static ChangeOrigin ( float x, float y ) : void
x float
y float
return void

ChangeXOrigin() public static method

public static ChangeXOrigin ( float x ) : void
x float
return void

ChangeYOrigin() public static method

public static ChangeYOrigin ( float y ) : void
y float
return void

Engine() public method

public Engine ( int tileWidth, int tileHeight, Vector2 origin ) : Microsoft.Xna.Framework
tileWidth int
tileHeight int
origin Microsoft.Xna.Framework.Vector2
return Microsoft.Xna.Framework

VectorToCell() public static method

public static VectorToCell ( Vector2 position ) : Point
position Microsoft.Xna.Framework.Vector2
return Microsoft.Xna.Framework.Point

VectorToCell() public static method

public static VectorToCell ( Vector2 position, Point dimension ) : Point
position Microsoft.Xna.Framework.Vector2
dimension Microsoft.Xna.Framework.Point
return Microsoft.Xna.Framework.Point