C# Class WarTornLands.World.Area

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

Méthodes publiques

Свойство Type Description
TileSets TileSetBox

Méthodes publiques

Méthode Description
AddEntityLayer ( WarTornLands.World.Layers.EntityLayer layer ) : void
AddHighLayer ( TileLayer layer ) : void
AddLowLayer ( TileLayer layer ) : void
Area ( Rectangle bounds, string name, string id, bool isDungeon ) : System
Contains ( Rectangle rect ) : bool
Contains ( Vector2 position ) : bool
GetEntitiesAt ( Rectangle rect ) : HashSet
GetEntitiesAt ( Vector2 position ) : List
GetEntitiesAt ( Vector2 position, int radius ) : List
IsRectAccessible ( Rectangle rect ) : bool

Private Methods

Méthode Description
CopyRec ( Rectangle original ) : Rectangle
Draw ( GameTime gameTime ) : void
GetAllEntities ( ) : List
IsPositionAccessible ( Vector2 position ) : bool
Update ( GameTime gameTime ) : void

Method Details

AddEntityLayer() public méthode

public AddEntityLayer ( WarTornLands.World.Layers.EntityLayer layer ) : void
layer WarTornLands.World.Layers.EntityLayer
Résultat void

AddHighLayer() public méthode

public AddHighLayer ( TileLayer layer ) : void
layer WarTornLands.World.Layers.TileLayer
Résultat void

AddLowLayer() public méthode

public AddLowLayer ( TileLayer layer ) : void
layer WarTornLands.World.Layers.TileLayer
Résultat void

Area() public méthode

public Area ( Rectangle bounds, string name, string id, bool isDungeon ) : System
bounds Microsoft.Xna.Framework.Rectangle
name string
id string
isDungeon bool
Résultat System

Contains() public méthode

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

Contains() public méthode

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

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

IsRectAccessible() public méthode

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

Property Details

TileSets public_oe property

public TileSetBox,WarTornLands.World TileSets
Résultat TileSetBox