C# 클래스 TraceRacer.WorldObject

Keeps track of the world that the user builds.
상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: alexcoco/trace_racer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
player PlayerObject

공개 메소드들

메소드 설명
IsColliding ( PlayerObject playerObject ) : bool

Collision detection between world and player.

WorldObject ( Microsoft.Xna.Framework.Game g, SpriteBatch sb ) : System
addLine ( int height ) : void

Adds a specific line to the end of the world.

addLine ( int pos, int height ) : void

Adds a specific line to the specified position of the world.

createGates ( ) : void
fillBegin ( int pos, int height ) : void
getClosestGate ( PlayerObject player ) : Gate

Gets the closest gate that intersects with the player.

getGates ( ) : List
getLine ( int lineNum ) : WorldLine

Gets a specific line from the world.

getLineQueue ( ) : List
getPlayer ( ) : PlayerObject
getPositionDifference ( ) : int
removeLine ( int pos ) : void
updateGates ( ) : void

비공개 메소드들

메소드 설명
IsTouching ( PlayerObject playerObject ) : bool

Checks if player touches the top of the world.

메소드 상세

IsColliding() 공개 메소드

Collision detection between world and player.
public IsColliding ( PlayerObject playerObject ) : bool
playerObject PlayerObject
리턴 bool

WorldObject() 공개 메소드

public WorldObject ( Microsoft.Xna.Framework.Game g, SpriteBatch sb ) : System
g Microsoft.Xna.Framework.Game
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 System

addLine() 공개 메소드

Adds a specific line to the end of the world.
public addLine ( int height ) : void
height int
리턴 void

addLine() 공개 메소드

Adds a specific line to the specified position of the world.
public addLine ( int pos, int height ) : void
pos int
height int
리턴 void

createGates() 공개 메소드

public createGates ( ) : void
리턴 void

fillBegin() 공개 메소드

public fillBegin ( int pos, int height ) : void
pos int
height int
리턴 void

getClosestGate() 공개 메소드

Gets the closest gate that intersects with the player.
public getClosestGate ( PlayerObject player ) : Gate
player PlayerObject
리턴 Gate

getGates() 공개 메소드

public getGates ( ) : List
리턴 List

getLine() 공개 메소드

Gets a specific line from the world.
public getLine ( int lineNum ) : WorldLine
lineNum int
리턴 WorldLine

getLineQueue() 공개 메소드

public getLineQueue ( ) : List
리턴 List

getPlayer() 공개 메소드

public getPlayer ( ) : PlayerObject
리턴 PlayerObject

getPositionDifference() 공개 메소드

public getPositionDifference ( ) : int
리턴 int

removeLine() 공개 메소드

public removeLine ( int pos ) : void
pos int
리턴 void

updateGates() 공개 메소드

public updateGates ( ) : void
리턴 void

프로퍼티 상세

player 공개적으로 프로퍼티

public PlayerObject,TraceRacer player
리턴 PlayerObject