C# Class WarTornLands.World.Level

Afficher le fichier Open project: floAr/WarTornLands Class Usage Examples

Méthodes publiques

Свойство Type Description
AreaIndependentEntities List
Ute Entity

Méthodes publiques

Méthode Description
AddArea ( string name, Area area ) : bool
Clear ( ) : void
Draw ( GameTime gameTime ) : void
GetCurrentAreas ( ) : List
GetEntitiesAt ( Rectangle rect ) : HashSet
GetEntitiesAt ( Vector2 position ) : List
GetEntitiesAt ( Vector2 position, int radius ) : List
IsPositionAccessible ( Vector2 position ) : bool

Queries the Tile Map whether a given pixel position is accessible. Entities are not considered in the collision check. This is done via GetEntitiesAt in the CollisionManager.

IsRectAccessible ( Rectangle rect ) : bool
Level ( ) : System
RemoveArea ( string name ) : bool

Private Methods

Méthode Description
Update ( GameTime gameTime ) : void

Method Details

AddArea() public méthode

public AddArea ( string name, Area area ) : bool
name string
area Area
Résultat bool

Clear() public méthode

public Clear ( ) : void
Résultat void

Draw() public méthode

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

GetCurrentAreas() public méthode

public GetCurrentAreas ( ) : List
Résultat List

GetEntitiesAt() public méthode

public GetEntitiesAt ( Rectangle rect ) : HashSet
rect Microsoft.Xna.Framework.Rectangle
Résultat HashSet

GetEntitiesAt() public méthode

public GetEntitiesAt ( Vector2 position ) : List
position Vector2
Résultat List

GetEntitiesAt() public méthode

public GetEntitiesAt ( Vector2 position, int radius ) : List
position Vector2
radius int
Résultat List

IsPositionAccessible() public méthode

Queries the Tile Map whether a given pixel position is accessible. Entities are not considered in the collision check. This is done via GetEntitiesAt in the CollisionManager.
public IsPositionAccessible ( Vector2 position ) : bool
position Vector2 Pixel position to check.
Résultat bool

IsRectAccessible() public méthode

public IsRectAccessible ( Rectangle rect ) : bool
rect Microsoft.Xna.Framework.Rectangle
Résultat bool

Level() public méthode

public Level ( ) : System
Résultat System

RemoveArea() public méthode

public RemoveArea ( string name ) : bool
name string
Résultat bool

Property Details

AreaIndependentEntities public_oe property

public List AreaIndependentEntities
Résultat List

Ute public_oe static_oe property

public static Entity Ute
Résultat Entity