C# Class WarTornLands.World.Area

ファイルを表示 Open project: floAr/WarTornLands Class Usage Examples

Public Properties

Property Type Description
TileSets TileSetBox

Public Methods

Method 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

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

Method Details

AddEntityLayer() public method

public AddEntityLayer ( WarTornLands.World.Layers.EntityLayer layer ) : void
layer WarTornLands.World.Layers.EntityLayer
return void

AddHighLayer() public method

public AddHighLayer ( TileLayer layer ) : void
layer WarTornLands.World.Layers.TileLayer
return void

AddLowLayer() public method

public AddLowLayer ( TileLayer layer ) : void
layer WarTornLands.World.Layers.TileLayer
return void

Area() public method

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

Contains() public method

public Contains ( Rectangle rect ) : bool
rect Microsoft.Xna.Framework.Rectangle
return bool

Contains() public method

public Contains ( Vector2 position ) : bool
position Vector2
return bool

GetEntitiesAt() public method

public GetEntitiesAt ( Rectangle rect ) : HashSet
rect Microsoft.Xna.Framework.Rectangle
return HashSet

GetEntitiesAt() public method

public GetEntitiesAt ( Vector2 position ) : List
position Vector2
return List

GetEntitiesAt() public method

public GetEntitiesAt ( Vector2 position, int radius ) : List
position Vector2
radius int
return List

IsRectAccessible() public method

public IsRectAccessible ( Rectangle rect ) : bool
rect Microsoft.Xna.Framework.Rectangle
return bool

Property Details

TileSets public_oe property

public TileSetBox,WarTornLands.World TileSets
return TileSetBox