C# Class PlatformerPOC.Domain.GameWorld

"Physical" game world
Afficher le fichier Open project: bramdemoor/MonoGame-PlatformerPOC Class Usage Examples

Méthodes publiques

Свойство Type Description
bgLayers List
spawnPointPositions List

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
IsInBoundsLeft ( Vector2 position ) : bool
IsInBoundsRight ( Vector2 position ) : bool
TilesToPixels ( Rectangle tilesRectangle ) : Rectangle
TilesToPixels ( int tileX, int tileY ) : Vector2
TilesToPixels ( int tiles ) : int

Method Details

BuildWorld() public méthode

public BuildWorld ( LevelData data ) : void
data PlatformerPOC.Seeding.LevelData
Résultat void

GameWorld() public méthode

public GameWorld ( PlatformGame game ) : System
game PlatformGame
Résultat System

IsInBounds() public méthode

public IsInBounds ( Vector2 position ) : bool
position Vector2
Résultat bool

IsPlaceFreeOfWalls() public méthode

public IsPlaceFreeOfWalls ( Rectangle collisionRectangle ) : bool
collisionRectangle Microsoft.Xna.Framework.Rectangle
Résultat bool

PixelsToTiles() public static méthode

public static PixelsToTiles ( Vector2 worldCoords ) : Vector2
worldCoords Vector2
Résultat Vector2

TilesToPixels() public static méthode

public static TilesToPixels ( Vector2 tiles ) : Vector2
tiles Vector2
Résultat Vector2

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

bgLayers public_oe property

public List bgLayers
Résultat List

spawnPointPositions public_oe property

public List spawnPointPositions
Résultat List