C# Class CrisisAtSwissStation.PhysicsObject

Mostrar archivo Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
scale float
shapes List
world Box2DX.Dynamics.World

Protected Properties

Property Type Description
boundingBox Microsoft.Xna.Framework.Rectangle
children List
controllers List
horizontalScale float

Public Methods

Method Description
AddToWorld ( ) : void
Die ( ) : void
Draw ( Matrix cameraTransform ) : void
PhysicsObject ( World world ) : System
RemoveFromWorld ( ) : void
SetTransform ( Vector2 position, float rotation ) : void
SetupJoints ( World world ) : void
Update ( CASSWorld world, float dt ) : void
getBBRelativeToWorld ( ) : Rectangle
getCenterPoint ( ) : Point
mapPointOnImage ( Vector2 point ) : Vector2
mapPointOnImage ( float x, float y ) : Vector2

Method Details

AddToWorld() public method

public AddToWorld ( ) : void
return void

Die() public method

public Die ( ) : void
return void

Draw() public method

public Draw ( Matrix cameraTransform ) : void
cameraTransform Matrix
return void

PhysicsObject() public method

public PhysicsObject ( World world ) : System
world Box2DX.Dynamics.World
return System

RemoveFromWorld() public method

public RemoveFromWorld ( ) : void
return void

SetTransform() public method

public SetTransform ( Vector2 position, float rotation ) : void
position Vector2
rotation float
return void

SetupJoints() public method

public SetupJoints ( World world ) : void
world Box2DX.Dynamics.World
return void

Update() public method

public Update ( CASSWorld world, float dt ) : void
world CASSWorld
dt float
return void

getBBRelativeToWorld() public method

public getBBRelativeToWorld ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

getCenterPoint() public method

public getCenterPoint ( ) : Point
return Point

mapPointOnImage() public method

public mapPointOnImage ( Vector2 point ) : Vector2
point Vector2
return Vector2

mapPointOnImage() public method

public mapPointOnImage ( float x, float y ) : Vector2
x float
y float
return Vector2

Property Details

boundingBox protected_oe property

protected Rectangle,Microsoft.Xna.Framework boundingBox
return Microsoft.Xna.Framework.Rectangle

children protected_oe property

protected List children
return List

controllers protected_oe property

protected List controllers
return List

horizontalScale protected_oe property

protected float horizontalScale
return float

scale public_oe property

public float scale
return float

shapes public_oe property

public List shapes
return List

world public_oe property

public World,Box2DX.Dynamics world
return Box2DX.Dynamics.World