C# 클래스 geek.GameEngine.GameCore

The main class that governs all inner workings of geek.GameEngine.
파일 보기 프로젝트 열기: impworks/xna.geek.engine

공개 프로퍼티들

프로퍼티 타입 설명
OutputFPS bool

공개 메소드들

메소드 설명
CancelTimedAction ( int id ) : void

Remove the timed action from the timeline.

Draw ( float delta ) : void

The main Draw method for all game components.

DrawLine ( Vector2 from, Vector2 to ) : void

Draws a white line on the screen. Is used for bounding box debugging.

DrawLine ( float x1, float y1, float x2, float y2 ) : void

Draws a white line on the screen. Is used for bounding box debugging.

Init ( Microsoft.Xna.Framework.Game game ) : void

Initialize the game engine for pure XNA application.

Init ( GraphicsDevice device, Microsoft.Xna.Framework.Content.ContentManager content ) : void

Initialize the game engine for silverlight-xna shared application.

InitSpriteBatch ( ) : void

Init the spriteBatch's default mode.

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

Saves the content pointer.

RegisterDeferredAction ( System.Action action ) : void

Register a callback that is invoked after all objects are updated. It's used to manipulate object's position in the list to avoid modifying the collection being traversed.

RegisterTimedAction ( float timeout, System.Action action, string comment = null ) : int

Register an action to occur after the given amount of time.

SetupGraphics ( Microsoft.Xna.Framework.Game game ) : void

Set graphics mode for the game.

Update ( float delta ) : void

The main Update method for all game components.

UpdateBlendingState ( BlendState newState ) : void

Update the blending state of the sprite batch.

비공개 메소드들

메소드 설명
executeDeferredActions ( ) : void

Execute all the deferred actions.

initCommon ( ) : void

Common initialization features that are not project-type-dependent.

updateScreenSize ( DisplayOrientation orientation ) : void

Update screen size depending on orientation

validateStoryBoard ( ) : void

Check if the storyboard contains at least one level.

메소드 상세

CancelTimedAction() 공개 정적인 메소드

Remove the timed action from the timeline.
public static CancelTimedAction ( int id ) : void
id int Timed action's ID.
리턴 void

Draw() 공개 정적인 메소드

The main Draw method for all game components.
public static Draw ( float delta ) : void
delta float
리턴 void

DrawLine() 공개 정적인 메소드

Draws a white line on the screen. Is used for bounding box debugging.
public static DrawLine ( Vector2 from, Vector2 to ) : void
from Vector2 First point.
to Vector2 Second point.
리턴 void

DrawLine() 공개 정적인 메소드

Draws a white line on the screen. Is used for bounding box debugging.
public static DrawLine ( float x1, float y1, float x2, float y2 ) : void
x1 float First point's X coordinate.
y1 float First point's Y coordinate.
x2 float Second point's X coordinate.
y2 float Second point's Y coordinate.
리턴 void

Init() 공개 정적인 메소드

Initialize the game engine for pure XNA application.
public static Init ( Microsoft.Xna.Framework.Game game ) : void
game Microsoft.Xna.Framework.Game Game instance.
리턴 void

Init() 공개 정적인 메소드

Initialize the game engine for silverlight-xna shared application.
public static Init ( GraphicsDevice device, Microsoft.Xna.Framework.Content.ContentManager content ) : void
device GraphicsDevice
content Microsoft.Xna.Framework.Content.ContentManager
리턴 void

InitSpriteBatch() 공개 정적인 메소드

Init the spriteBatch's default mode.
public static InitSpriteBatch ( ) : void
리턴 void

LoadContent() 공개 정적인 메소드

Saves the content pointer.
public static LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
리턴 void

RegisterDeferredAction() 공개 정적인 메소드

Register a callback that is invoked after all objects are updated. It's used to manipulate object's position in the list to avoid modifying the collection being traversed.
public static RegisterDeferredAction ( System.Action action ) : void
action System.Action
리턴 void

RegisterTimedAction() 공개 정적인 메소드

Register an action to occur after the given amount of time.
public static RegisterTimedAction ( float timeout, System.Action action, string comment = null ) : int
timeout float Time to wait before executing the action.
action System.Action Action to execute.
comment string Optional comment for debugging.
리턴 int

SetupGraphics() 공개 정적인 메소드

Set graphics mode for the game.
public static SetupGraphics ( Microsoft.Xna.Framework.Game game ) : void
game Microsoft.Xna.Framework.Game Game instance.
리턴 void

Update() 공개 정적인 메소드

The main Update method for all game components.
public static Update ( float delta ) : void
delta float
리턴 void

UpdateBlendingState() 공개 정적인 메소드

Update the blending state of the sprite batch.
public static UpdateBlendingState ( BlendState newState ) : void
newState Microsoft.Xna.Framework.Graphics.BlendState New blending state.
리턴 void

프로퍼티 상세

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

Outputs FPS into debug console.
public static bool OutputFPS
리턴 bool