C# Class Shooter2D.Map

显示文件 Open project: CodeTreeCommunity/Shooter2D Class Usage Examples

Public Properties

Property Type Description
Bullets List
Camera EzGame.Perspective.Planar.Camera
Pathfinder Pathfinder
Speed Vector2
Tiles ].Tile[
Waypoints List[]

Public Methods

Method Description
AFore ( Point Point ) : ushort
BFore ( Point Point ) : ushort
ClearBack ( int x, int y, bool Self = false ) : bool
ClearFore ( int x, int y, bool Self = false ) : bool
Draw ( ) : void
Draw ( Batch Batch ) : void
GetSpawn ( byte Team ) : Point
GetWaypoint ( byte Team ) : Point
InBounds ( int x, int y ) : bool
LFore ( Point Point ) : ushort
Load ( string Path ) : Map
Map ( int Width, int Height ) : System
OffCamera ( int x, int y, sbyte Offset ) : bool
PlaceBack ( byte ID, int x, int y, bool Self = false ) : bool
PlaceFore ( byte ID, int x, int y, byte Angle = null, bool Self = false ) : bool
RFore ( Point Point ) : ushort
Save ( string Path ) : void
Update ( GameTime Time ) : void

Method Details

AFore() public method

public AFore ( Point Point ) : ushort
Point Point
return ushort

BFore() public method

public BFore ( Point Point ) : ushort
Point Point
return ushort

ClearBack() public method

public ClearBack ( int x, int y, bool Self = false ) : bool
x int
y int
Self bool
return bool

ClearFore() public method

public ClearFore ( int x, int y, bool Self = false ) : bool
x int
y int
Self bool
return bool

Draw() public method

public Draw ( ) : void
return void

Draw() public method

public Draw ( Batch Batch ) : void
Batch EzGame.Perspective.Planar.Batch
return void

GetSpawn() public method

public GetSpawn ( byte Team ) : Point
Team byte
return Point

GetWaypoint() public method

public GetWaypoint ( byte Team ) : Point
Team byte
return Point

InBounds() public method

public InBounds ( int x, int y ) : bool
x int
y int
return bool

LFore() public method

public LFore ( Point Point ) : ushort
Point Point
return ushort

Load() public static method

public static Load ( string Path ) : Map
Path string
return Map

Map() public method

public Map ( int Width, int Height ) : System
Width int
Height int
return System

OffCamera() public method

public OffCamera ( int x, int y, sbyte Offset ) : bool
x int
y int
Offset sbyte
return bool

PlaceBack() public method

public PlaceBack ( byte ID, int x, int y, bool Self = false ) : bool
ID byte
x int
y int
Self bool
return bool

PlaceFore() public method

public PlaceFore ( byte ID, int x, int y, byte Angle = null, bool Self = false ) : bool
ID byte
x int
y int
Angle byte
Self bool
return bool

RFore() public method

public RFore ( Point Point ) : ushort
Point Point
return ushort

Save() public method

public Save ( string Path ) : void
Path string
return void

Update() public method

public Update ( GameTime Time ) : void
Time Microsoft.Xna.Framework.GameTime
return void

Property Details

Bullets public_oe property

public List Bullets
return List

Camera public_oe property

public Camera,EzGame.Perspective.Planar Camera
return EzGame.Perspective.Planar.Camera

Pathfinder public_oe property

public Pathfinder Pathfinder
return Pathfinder

Speed public_oe property

public Vector2 Speed
return Vector2

Tiles public_oe property

public Tile[,] Tiles
return ].Tile[

Waypoints public_oe property

public List[] Waypoints
return List[]