C# 클래스 ArcadeRPG.GameEngine

This is the GameEngine
파일 보기 프로젝트 열기: jkeech/Super-Space-Escape 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
currTime TimeSpan
gameEnded bool
hurt_time int
levelnum int
livesRemaining int

공개 메소드들

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

This is called when the game should draw itself.

GameEngine ( ArcadeRPG.TimeExpired t, GameOver g ) : System
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 ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void

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

LoadLevel ( int level_num ) : void
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.

die ( ) : void
drawItems ( SpriteBatch sb, SpriteFont sf ) : void
hasMoreLives ( ) : Boolean
hasTimeLeft ( ) : bool
resetTimer ( ) : void
testAtExit ( int x, int y ) : bool

메소드 상세

Draw() 공개 메소드

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

GameEngine() 공개 메소드

public GameEngine ( ArcadeRPG.TimeExpired t, GameOver g ) : System
t ArcadeRPG.TimeExpired
g GameOver
리턴 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.
public Initialize ( ) : void
리턴 void

LoadContent() 공개 메소드

LoadContent will be called once per game and is the place to load all of your content.
public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager
리턴 void

LoadLevel() 공개 메소드

public LoadLevel ( int level_num ) : void
level_num int
리턴 void

UnloadContent() 공개 메소드

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

Update() 공개 메소드

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

die() 공개 메소드

public die ( ) : void
리턴 void

drawItems() 공개 메소드

public drawItems ( SpriteBatch sb, SpriteFont sf ) : void
sb SpriteBatch
sf SpriteFont
리턴 void

hasMoreLives() 공개 메소드

public hasMoreLives ( ) : Boolean
리턴 Boolean

hasTimeLeft() 공개 메소드

public hasTimeLeft ( ) : bool
리턴 bool

resetTimer() 공개 메소드

public resetTimer ( ) : void
리턴 void

testAtExit() 공개 메소드

public testAtExit ( int x, int y ) : bool
x int
y int
리턴 bool

프로퍼티 상세

currTime 공개적으로 프로퍼티

public TimeSpan currTime
리턴 TimeSpan

gameEnded 공개적으로 프로퍼티

public bool gameEnded
리턴 bool

hurt_time 공개적으로 프로퍼티

public int hurt_time
리턴 int

levelnum 공개적으로 프로퍼티

public int levelnum
리턴 int

livesRemaining 공개적으로 프로퍼티

public int livesRemaining
리턴 int