C# Class VeeGen.VGArea

显示文件 Open project: SuperV1234/VeeGen Class Usage Examples

Public Methods

Method Description
Clear ( int mValue ) : void
Clone ( ) : VGArea
Contains ( int mX, int mY ) : bool
GetBorderTiles ( int mOffset ) : List
GetRandomBorderTile ( int mOffset ) : VGTile
GetRandomTile ( int mOffset ) : VGTile
GetTileCountByValue ( List mTiles, int mValue ) : int
GetTileNeighbors ( int mX, int mY, int mRadius = 1 ) : List
GetTileNeighborsCountByValue ( int mX, int mY, int mValue, int mRadius = 1 ) : int
GetTileNodeNeighbors ( int mX, int mY, int mRadius = 1 ) : List
SetBorder ( int mValue, int mOffset ) : void
ToArray ( ) : ].int[
ToString ( ) : string
VGArea ( VGWorld mWorld, int mXStart, int mYStart, int mXEnd, int mYEnd ) : System
this ( int mX, int mY ) : VGTile

Method Details

Clear() public method

public Clear ( int mValue ) : void
mValue int
return void

Clone() public method

public Clone ( ) : VGArea
return VGArea

Contains() public method

public Contains ( int mX, int mY ) : bool
mX int
mY int
return bool

GetBorderTiles() public method

public GetBorderTiles ( int mOffset ) : List
mOffset int
return List

GetRandomBorderTile() public method

public GetRandomBorderTile ( int mOffset ) : VGTile
mOffset int
return VGTile

GetRandomTile() public method

public GetRandomTile ( int mOffset ) : VGTile
mOffset int
return VGTile

GetTileCountByValue() public method

public GetTileCountByValue ( List mTiles, int mValue ) : int
mTiles List
mValue int
return int

GetTileNeighbors() public method

public GetTileNeighbors ( int mX, int mY, int mRadius = 1 ) : List
mX int
mY int
mRadius int
return List

GetTileNeighborsCountByValue() public method

public GetTileNeighborsCountByValue ( int mX, int mY, int mValue, int mRadius = 1 ) : int
mX int
mY int
mValue int
mRadius int
return int

GetTileNodeNeighbors() public method

public GetTileNodeNeighbors ( int mX, int mY, int mRadius = 1 ) : List
mX int
mY int
mRadius int
return List

SetBorder() public method

public SetBorder ( int mValue, int mOffset ) : void
mValue int
mOffset int
return void

ToArray() public method

public ToArray ( ) : ].int[
return ].int[

ToString() public method

public ToString ( ) : string
return string

VGArea() public method

public VGArea ( VGWorld mWorld, int mXStart, int mYStart, int mXEnd, int mYEnd ) : System
mWorld VGWorld
mXStart int
mYStart int
mXEnd int
mYEnd int
return System

this() public method

public this ( int mX, int mY ) : VGTile
mX int
mY int
return VGTile