C# 클래스 SmartboyDevelopments.Haxxit.MonoGame.HaxxitEngine

This is the main type for your game
상속: Microsoft.Xna.Framework.Game
파일 보기 프로젝트 열기: smartboyathome/Haxxit 1 사용 예제들

공개 메소드들

메소드 설명
ChangeState ( HaxxitGameState state ) : void

Removes all states currently on the stack then adds passed in state to the stack.

ChangeStateListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void

A listener for notifications to change states sent through haxxit.engine.state.change.

ClearAllStateListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void

A listener for notifications to clear the state stack sent through haxxit.engine.state.clear_all

ClearChangeStateListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void

A listener for notifications to clear the state stack then push a new state onto it, sent through haxxit.engine.state.clear_change.

ClearStates ( ) : void

Clears the state stack.

HaxxitEngine ( ) : System
PopState ( ) : void

Pops a state from the stack.

PopStateListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void

A listener for notifications to pop states sent through haxxit.engine.state.pop.

PushState ( HaxxitGameState state ) : void

Pushes a state onto the stack.

PushStateListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void

A listener for notifications to push states sent through haxxit.engine.state.push.

보호된 메소드들

메소드 설명
Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

Initialize ( ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.

LoadContent ( ) : void

LoadContent will be called once per game and is the place to load all of your content.

UnloadContent ( ) : void

UnloadContent will be called once per game and is the place to unload all content.

Update ( GameTime gameTime ) : void

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

메소드 상세

ChangeState() 공개 메소드

Removes all states currently on the stack then adds passed in state to the stack.
public ChangeState ( HaxxitGameState state ) : void
state HaxxitGameState The state to add to the stack after all other states are dropped.
리턴 void

ChangeStateListener() 공개 메소드

A listener for notifications to change states sent through haxxit.engine.state.change.
public ChangeStateListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void
notifiable SimplePubSub
channel string The channel the notification is being sent through (haxxit.engine.state.change).
sender object The sender object of this notification.
args System.EventArgs The arguments for this notification (only takes ChangeStateEventArgs).
리턴 void

ClearAllStateListener() 공개 메소드

A listener for notifications to clear the state stack sent through haxxit.engine.state.clear_all
public ClearAllStateListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void
notifiable SimplePubSub
channel string The channel the notification is being sent through (haxxit.engine.state.clear_all).
sender object The sender object of this notification.
args System.EventArgs The arguments for this notification (requires no arguments).
리턴 void

ClearChangeStateListener() 공개 메소드

A listener for notifications to clear the state stack then push a new state onto it, sent through haxxit.engine.state.clear_change.
public ClearChangeStateListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void
notifiable SimplePubSub
channel string The channel the notification is being sent through (haxxit.engine.state.clear_change).
sender object The sender object of this notification.
args System.EventArgs The arguments for this notification (only takes ChangeStateEventArgs).
리턴 void

ClearStates() 공개 메소드

Clears the state stack.
public ClearStates ( ) : void
리턴 void

Draw() 보호된 메소드

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
리턴 void

HaxxitEngine() 공개 메소드

public HaxxitEngine ( ) : System
리턴 System

Initialize() 보호된 메소드

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
protected Initialize ( ) : void
리턴 void

LoadContent() 보호된 메소드

LoadContent will be called once per game and is the place to load all of your content.
protected LoadContent ( ) : void
리턴 void

PopState() 공개 메소드

Pops a state from the stack.
public PopState ( ) : void
리턴 void

PopStateListener() 공개 메소드

A listener for notifications to pop states sent through haxxit.engine.state.pop.
public PopStateListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void
notifiable SimplePubSub
channel string The channel the notification is being sent through (haxxit.engine.state.pop).
sender object The sender object of this notification.
args System.EventArgs The arguments for this notification (requires no arguments).
리턴 void

PushState() 공개 메소드

Pushes a state onto the stack.
public PushState ( HaxxitGameState state ) : void
state HaxxitGameState The state to push onto the top of the stack.
리턴 void

PushStateListener() 공개 메소드

A listener for notifications to push states sent through haxxit.engine.state.push.
public PushStateListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void
notifiable SimplePubSub
channel string The channel the notification is being sent through (haxxit.engine.state.push).
sender object The sender object of this notification.
args System.EventArgs The arguments for this notification (only takes ChangeStateEventArgs).
리턴 void

UnloadContent() 보호된 메소드

UnloadContent will be called once per game and is the place to unload all content.
protected UnloadContent ( ) : void
리턴 void

Update() 보호된 메소드

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
리턴 void