C# 클래스 fliXNA_xbox.FlxG

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

공개 프로퍼티들

프로퍼티 타입 설명
bgColor Color
camera FlxCamera
cameras List
console FlxConsole
content Microsoft.Xna.Framework.Content.ContentManager
defaultFont Microsoft.Xna.Framework.Graphics.SpriteFont
defaultWholeScreenViewport Microsoft.Xna.Framework.Graphics.Viewport
elapsed float
globalSeed float
graphics GraphicsDeviceManager
graphicsDevice GraphicsDevice
height float
hud FlxGroup
keys FlxKeyboard
mouse FlxMouse
mute bool
pad1 FlxGamepad
pad2 FlxGamepad
pad3 FlxGamepad
pad4 FlxGamepad
rotation float
safeZone FlxRect
sounds FlxGroup
storage Microsoft.Xna.Framework.Storage.StorageDevice
viewport Microsoft.Xna.Framework.Graphics.Viewport
viewports List
volume float
width float
zoom float

공개 메소드들

메소드 설명
addCamera ( FlxCamera NewCamera ) : FlxCamera
collide ( FlxObject ObjectOrGroup1 = null, FlxObject ObjectOrGroup2 = null, Func NotifyCallback = null ) : System.Boolean

Returns true if the two FlxObjects collide. Optional callback function of return type bool with two FlxObject parameters will be called if true.

log ( Object data ) : bool

Log something to the debugger console in Visual Studio

overlap ( FlxObject ObjectOrGroup1 = null, FlxObject ObjectOrGroup2 = null, Func NotifyCallback = null, Func ProcessCallback = null ) : System.Boolean

Returns true if the two FlxObjects overlap. Optional Callback function of return type bool with two FlxObject parameters will be called if true.

play ( SoundEffect EmbeddedSound, float Volume = 1.0f, bool Looped = false ) : FlxSound

Play a sound, not with FlxSound but with SoundEffect from the XNA framework because the sound is disposed of properly by the xbox itself. CURRENTLY NOT WORKING The sound starts but cuts off in about half of a second.

switchState ( FlxState State ) : void

Call this to switch to a new state @use FlxG.switchState(new NewState());

비공개 메소드들

메소드 설명
gametime ( GameTime dt ) : void
init ( ) : void

Initiate all the things needed by the engine

loadSound ( SoundEffect EmbeddedSound, float Volume, bool Looped, bool AutoDestroy, bool AutoPlay ) : FlxSound
random ( ) : float

Internal random float from 0 to 1

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

Shake the screen

snap ( float XorY, float Grid ) : float
update ( GameTime dt ) : void

Internal function for updating Camera, State, Console, and Elapsed Time

updateCameras ( ) : void
updateInputs ( ) : void

Internal function for keeping input states current

메소드 상세

addCamera() 공개 정적인 메소드

public static addCamera ( FlxCamera NewCamera ) : FlxCamera
NewCamera FlxCamera
리턴 FlxCamera

collide() 공개 정적인 메소드

Returns true if the two FlxObjects collide. Optional callback function of return type bool with two FlxObject parameters will be called if true.
public static collide ( FlxObject ObjectOrGroup1 = null, FlxObject ObjectOrGroup2 = null, Func NotifyCallback = null ) : System.Boolean
ObjectOrGroup1 FlxObject
ObjectOrGroup2 FlxObject
NotifyCallback Func
리턴 System.Boolean

log() 공개 정적인 메소드

Log something to the debugger console in Visual Studio
public static log ( Object data ) : bool
data Object
리턴 bool

overlap() 공개 정적인 메소드

Returns true if the two FlxObjects overlap. Optional Callback function of return type bool with two FlxObject parameters will be called if true.
public static overlap ( FlxObject ObjectOrGroup1 = null, FlxObject ObjectOrGroup2 = null, Func NotifyCallback = null, Func ProcessCallback = null ) : System.Boolean
ObjectOrGroup1 FlxObject
ObjectOrGroup2 FlxObject
NotifyCallback Func
ProcessCallback Func
리턴 System.Boolean

play() 공개 정적인 메소드

Play a sound, not with FlxSound but with SoundEffect from the XNA framework because the sound is disposed of properly by the xbox itself. CURRENTLY NOT WORKING The sound starts but cuts off in about half of a second.
public static play ( SoundEffect EmbeddedSound, float Volume = 1.0f, bool Looped = false ) : FlxSound
EmbeddedSound Microsoft.Xna.Framework.Audio.SoundEffect
Volume float
Looped bool
리턴 FlxSound

switchState() 공개 정적인 메소드

Call this to switch to a new state @use FlxG.switchState(new NewState());
public static switchState ( FlxState State ) : void
State FlxState
리턴 void

프로퍼티 상세

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

Controls the background color of the Game
public static Color bgColor
리턴 Color

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

Reference to the Game Camera
public static FlxCamera,fliXNA_xbox camera
리턴 FlxCamera

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

Array of cameras, used for splitscreen
public static List cameras
리턴 List

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

Unused Console reference Not yet implemented
public static FlxConsole,fliXNA_xbox console
리턴 FlxConsole

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

Reference to the ContentManager, important for retrieving Content such as images and sound
public static ContentManager,Microsoft.Xna.Framework.Content content
리턴 Microsoft.Xna.Framework.Content.ContentManager

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

The default font that you can use for text
public static SpriteFont,Microsoft.Xna.Framework.Graphics defaultFont
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont

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

A viewport that references the whole screen, used to render the HUD
public static Viewport,Microsoft.Xna.Framework.Graphics defaultWholeScreenViewport
리턴 Microsoft.Xna.Framework.Graphics.Viewport

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

Time elapsed since last frame
public static float elapsed
리턴 float

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

Internal random number helper
public static float globalSeed
리턴 float

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

Reference to the GraphicsDeviceManager
public static GraphicsDeviceManager graphics
리턴 GraphicsDeviceManager

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

Reference to the GraphicsDevice
public static GraphicsDevice graphicsDevice
리턴 GraphicsDevice

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

Reference to the Height of the Viewport
public static float height
리턴 float

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

Built-In FlxGroup to handle HUD elements since scrollFactor is not yet working
public static FlxGroup,fliXNA_xbox hud
리턴 FlxGroup

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

Reference to Keyboard input
public static FlxKeyboard,fliXNA_xbox keys
리턴 FlxKeyboard

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

Reference to Mouse input
public static FlxMouse mouse
리턴 FlxMouse

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

Whether all the sounds are mute
public static bool mute
리턴 bool

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

Reference to Gamepad input for Player One
public static FlxGamepad,fliXNA_xbox pad1
리턴 FlxGamepad

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

Reference to Gamepad input for Player Two
public static FlxGamepad,fliXNA_xbox pad2
리턴 FlxGamepad

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

Reference to Gamepad input for Player Three
public static FlxGamepad,fliXNA_xbox pad3
리턴 FlxGamepad

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

Reference to Gamepad input for Player Four
public static FlxGamepad,fliXNA_xbox pad4
리턴 FlxGamepad

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

Can be used to rotate the camera
public static float rotation
리턴 float

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

Reference of the Safe Zone, useful for making sure your objects are visible across various televisions
public static FlxRect,fliXNA_xbox safeZone
리턴 FlxRect

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

A list of all the sounds being played in the game
public static FlxGroup,fliXNA_xbox sounds
리턴 FlxGroup

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

Reference to a storage device, perhaps the harddrive on the Xbox? Not yet implemented
public static StorageDevice,Microsoft.Xna.Framework.Storage storage
리턴 Microsoft.Xna.Framework.Storage.StorageDevice

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

The current viewport
public static Viewport,Microsoft.Xna.Framework.Graphics viewport
리턴 Microsoft.Xna.Framework.Graphics.Viewport

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

Array of viewports, could be used for splitscreen
public static List viewports
리턴 List

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

Can be used to change volume of all sounds, default is 1.0f which equals 100%
public static float volume
리턴 float

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

Reference to the Width of the Viewport
public static float width
리턴 float

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

Can be used to zoom the camera
public static float zoom
리턴 float