C# Class CrisisAtSwissStation.ScrollingWorld

Inheritance: CASSWorld
Mostra file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
backgroundName string
drawLimit float
laser LaserObject
musicName string
numDrawLeft float

Public Methods

Method Description
Draw ( GraphicsDevice device, Matrix camera ) : void
GetVisualTargetPosition ( ) : Vector2
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
ScrollingWorld ( string backgroundname = "background" ) : System
ScrollingWorld ( string savedroomname, bool loadingWorldFromFile ) : System
Simulate ( float dt ) : void
getCameraCoords ( ) : Vector2
getGameCoords ( Vector2 myScreenCoords ) : Vector2
getScreenCoords ( Vector2 myGameCoords ) : Vector2
getScreenOrigin ( ) : Vector2
reloadNonSerializedAssets ( ) : void

Private Methods

Method Description
DrawCrosshair ( ) : void

Method Details

Draw() public method

public Draw ( GraphicsDevice device, Matrix camera ) : void
device GraphicsDevice
camera Matrix
return void

GetVisualTargetPosition() public method

public GetVisualTargetPosition ( ) : Vector2
return Vector2

LoadContent() public static method

public static LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

ScrollingWorld() public method

public ScrollingWorld ( string backgroundname = "background" ) : System
backgroundname string
return System

ScrollingWorld() public method

public ScrollingWorld ( string savedroomname, bool loadingWorldFromFile ) : System
savedroomname string
loadingWorldFromFile bool
return System

Simulate() public method

public Simulate ( float dt ) : void
dt float
return void

getCameraCoords() public method

public getCameraCoords ( ) : Vector2
return Vector2

getGameCoords() public method

public getGameCoords ( Vector2 myScreenCoords ) : Vector2
myScreenCoords Vector2
return Vector2

getScreenCoords() public method

public getScreenCoords ( Vector2 myGameCoords ) : Vector2
myGameCoords Vector2
return Vector2

getScreenOrigin() public method

public getScreenOrigin ( ) : Vector2
return Vector2

reloadNonSerializedAssets() public method

public reloadNonSerializedAssets ( ) : void
return void

Property Details

backgroundName public_oe property

public string backgroundName
return string

drawLimit public_oe static_oe property

public static float drawLimit
return float

laser public_oe property

public LaserObject,CrisisAtSwissStation laser
return LaserObject

musicName public_oe property

public string musicName
return string

numDrawLeft public_oe static_oe property

public static float numDrawLeft
return float