C# 클래스 PlatformerPOC.Domain.GameWorld

"Physical" game world
파일 보기 프로젝트 열기: bramdemoor/MonoGame-PlatformerPOC 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bgLayers List
spawnPointPositions List

공개 메소드들

메소드 설명
BuildWorld ( LevelData data ) : void
GameWorld ( PlatformGame game ) : System
IsInBounds ( Vector2 position ) : bool
IsPlaceFreeOfWalls ( Rectangle collisionRectangle ) : bool
PixelsToTiles ( Vector2 worldCoords ) : Vector2
TilesToPixels ( Vector2 tiles ) : Vector2
Update ( GameTime gameTime ) : void

비공개 메소드들

메소드 설명
IsInBoundsLeft ( Vector2 position ) : bool
IsInBoundsRight ( Vector2 position ) : bool
TilesToPixels ( Rectangle tilesRectangle ) : Rectangle
TilesToPixels ( int tileX, int tileY ) : Vector2
TilesToPixels ( int tiles ) : int

메소드 상세

BuildWorld() 공개 메소드

public BuildWorld ( LevelData data ) : void
data PlatformerPOC.Seeding.LevelData
리턴 void

GameWorld() 공개 메소드

public GameWorld ( PlatformGame game ) : System
game PlatformGame
리턴 System

IsInBounds() 공개 메소드

public IsInBounds ( Vector2 position ) : bool
position Vector2
리턴 bool

IsPlaceFreeOfWalls() 공개 메소드

public IsPlaceFreeOfWalls ( Rectangle collisionRectangle ) : bool
collisionRectangle Microsoft.Xna.Framework.Rectangle
리턴 bool

PixelsToTiles() 공개 정적인 메소드

public static PixelsToTiles ( Vector2 worldCoords ) : Vector2
worldCoords Vector2
리턴 Vector2

TilesToPixels() 공개 정적인 메소드

public static TilesToPixels ( Vector2 tiles ) : Vector2
tiles Vector2
리턴 Vector2

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

프로퍼티 상세

bgLayers 공개적으로 프로퍼티

public List bgLayers
리턴 List

spawnPointPositions 공개적으로 프로퍼티

public List spawnPointPositions
리턴 List