C# 클래스 fliXNA_xbox.FlxCamera

상속: FlxBasic
파일 보기 프로젝트 열기: bpercevic/flixel-XNA 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

보호된 프로퍼티들

프로퍼티 타입 설명
_fxShakeComplete System.Action
_fxShakeDirection uint
_fxShakeDuration float
_fxShakeIntensity float
_fxShakeOffset FlxPoint
_point FlxPoint
_zoom float
angle float

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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

메소드 상세

FlxCamera() 공개 메소드

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
리턴 System

focusOn() 공개 메소드

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

follow() 공개 메소드

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

setBounds() 공개 메소드

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
리턴 void

shake() 공개 메소드

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
리턴 void

stopFX() 공개 메소드

Internal function for stopping any effects, can be called manually
public stopFX ( ) : void
리턴 void

update() 공개 메소드

public update ( ) : void
리턴 void

프로퍼티 상세

_fxShakeComplete 보호되어 있는 프로퍼티

protected Action,System _fxShakeComplete
리턴 System.Action

_fxShakeDirection 보호되어 있는 프로퍼티

protected uint _fxShakeDirection
리턴 uint

_fxShakeDuration 보호되어 있는 프로퍼티

protected float _fxShakeDuration
리턴 float

_fxShakeIntensity 보호되어 있는 프로퍼티

protected float _fxShakeIntensity
리턴 float

_fxShakeOffset 보호되어 있는 프로퍼티

protected FlxPoint _fxShakeOffset
리턴 FlxPoint

_point 보호되어 있는 프로퍼티

protected FlxPoint _point
리턴 FlxPoint

_zoom 보호되어 있는 프로퍼티

protected float _zoom
리턴 float

angle 보호되어 있는 프로퍼티

protected float angle
리턴 float

bounds 공개적으로 프로퍼티

public FlxRect,fliXNA_xbox bounds
리턴 FlxRect

deadzone 공개적으로 프로퍼티

public FlxRect,fliXNA_xbox deadzone
리턴 FlxRect

defaultZoom 공개적으로 정적으로 프로퍼티

public static float defaultZoom
리턴 float

effect 공개적으로 정적으로 프로퍼티

public static Effect,Microsoft.Xna.Framework.Graphics effect
리턴 Microsoft.Xna.Framework.Graphics.Effect

height 공개적으로 프로퍼티

public float height
리턴 float

scroll 공개적으로 프로퍼티

public FlxPoint scroll
리턴 FlxPoint

target 공개적으로 프로퍼티

public FlxObject,fliXNA_xbox target
리턴 FlxObject

transform 공개적으로 프로퍼티

public Matrix transform
리턴 Matrix

width 공개적으로 프로퍼티

public float width
리턴 float

x 공개적으로 프로퍼티

public float x
리턴 float

y 공개적으로 프로퍼티

public float y
리턴 float