C# 클래스 TraceRacer.PlayerObject

This is the player game component.
상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: alexcoco/trace_racer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Position Vector2
Speed Vector2
airtime int
gameOver bool

공개 메소드들

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

Draws the player on the screen.

Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

PlayerObject ( Microsoft.Xna.Framework.Game game, SpriteBatch givenSpriteBatch, WorldObject world ) : System

Constructor initializes everything.

Update ( GameTime gameTime ) : void

Allows the game component to update itself.

setActive ( ) : void
setPosition ( Vector2 v ) : void

비공개 메소드들

메소드 설명
adjustSpeed ( int difference ) : void

메소드 상세

Draw() 공개 메소드

Draws the player on the screen.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

Initialize() 공개 메소드

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
리턴 void

PlayerObject() 공개 메소드

Constructor initializes everything.
public PlayerObject ( Microsoft.Xna.Framework.Game game, SpriteBatch givenSpriteBatch, WorldObject world ) : System
game Microsoft.Xna.Framework.Game
givenSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
world WorldObject
리턴 System

Update() 공개 메소드

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
리턴 void

setActive() 공개 메소드

public setActive ( ) : void
리턴 void

setPosition() 공개 메소드

public setPosition ( Vector2 v ) : void
v Vector2
리턴 void

프로퍼티 상세

Position 공개적으로 프로퍼티

public Vector2 Position
리턴 Vector2

Speed 공개적으로 프로퍼티

public Vector2 Speed
리턴 Vector2

airtime 공개적으로 프로퍼티

public int airtime
리턴 int

gameOver 공개적으로 프로퍼티

public bool gameOver
리턴 bool