C# Class fliXNA_xbox.FlxCamera

Inheritance: FlxBasic
Afficher le fichier Open project: bpercevic/flixel-XNA Class Usage Examples

Méthodes publiques

Свойство Type Description
bounds FlxRect
deadzone FlxRect
defaultZoom float
effect Microsoft.Xna.Framework.Graphics.Effect
height float
scroll FlxPoint
target FlxObject
transform Matrix
width float
x float
y float

Protected Properties

Свойство Type Description
_fxShakeComplete System.Action
_fxShakeDirection uint
_fxShakeDuration float
_fxShakeIntensity float
_fxShakeOffset FlxPoint
_point FlxPoint
_zoom float
angle float

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
FlxCamera ( float X, float Y, float Width, float Height, float Zoom = 1.0f ) : System
focusOn ( FlxPoint Point ) : void

Shift the camera's focus onto a specific point in the game-world.

follow ( FlxObject Target, uint Style = STYLE_LOCKON ) : void

Make the camera follow an object with a specified follow-style

setBounds ( float X, float Y, float Width, float Height, System.Boolean UpdateWorld = false ) : void

Set the boundaries of the camera. Useful for preventing the camera from scrolling past the edge of a map.

shake ( float Intensity = 0.05f, float Duration = 0.5f, System.Action OnComplete = null, bool Force = true, uint Direction = SHAKE_BOTH_AXES ) : void

Shake the screen

stopFX ( ) : void

Internal function for stopping any effects, can be called manually

update ( ) : void

Method Details

FlxCamera() public méthode

public FlxCamera ( float X, float Y, float Width, float Height, float Zoom = 1.0f ) : System
X float
Y float
Width float
Height float
Zoom float
Résultat System

focusOn() public méthode

Shift the camera's focus onto a specific point in the game-world.
public focusOn ( FlxPoint Point ) : void
Point FlxPoint
Résultat void

follow() public méthode

Make the camera follow an object with a specified follow-style
public follow ( FlxObject Target, uint Style = STYLE_LOCKON ) : void
Target FlxObject
Style uint
Résultat void

setBounds() public méthode

Set the boundaries of the camera. Useful for preventing the camera from scrolling past the edge of a map.
public setBounds ( float X, float Y, float Width, float Height, System.Boolean UpdateWorld = false ) : void
X float
Y float
Width float
Height float
UpdateWorld System.Boolean
Résultat void

shake() public méthode

Shake the screen
public shake ( float Intensity = 0.05f, float Duration = 0.5f, System.Action OnComplete = null, bool Force = true, uint Direction = SHAKE_BOTH_AXES ) : void
Intensity float
Duration float
OnComplete System.Action
Force bool
Direction uint
Résultat void

stopFX() public méthode

Internal function for stopping any effects, can be called manually
public stopFX ( ) : void
Résultat void

update() public méthode

public update ( ) : void
Résultat void

Property Details

_fxShakeComplete protected_oe property

protected Action,System _fxShakeComplete
Résultat System.Action

_fxShakeDirection protected_oe property

protected uint _fxShakeDirection
Résultat uint

_fxShakeDuration protected_oe property

protected float _fxShakeDuration
Résultat float

_fxShakeIntensity protected_oe property

protected float _fxShakeIntensity
Résultat float

_fxShakeOffset protected_oe property

protected FlxPoint _fxShakeOffset
Résultat FlxPoint

_point protected_oe property

protected FlxPoint _point
Résultat FlxPoint

_zoom protected_oe property

protected float _zoom
Résultat float

angle protected_oe property

protected float angle
Résultat float

bounds public_oe property

public FlxRect,fliXNA_xbox bounds
Résultat FlxRect

deadzone public_oe property

public FlxRect,fliXNA_xbox deadzone
Résultat FlxRect

defaultZoom public_oe static_oe property

public static float defaultZoom
Résultat float

effect public_oe static_oe property

public static Effect,Microsoft.Xna.Framework.Graphics effect
Résultat Microsoft.Xna.Framework.Graphics.Effect

height public_oe property

public float height
Résultat float

scroll public_oe property

public FlxPoint scroll
Résultat FlxPoint

target public_oe property

public FlxObject,fliXNA_xbox target
Résultat FlxObject

transform public_oe property

public Matrix transform
Résultat Matrix

width public_oe property

public float width
Résultat float

x public_oe property

public float x
Résultat float

y public_oe property

public float y
Résultat float