C# Class LifeGame.WorldMapPanel

Inheritance: System.Windows.Forms.Panel
ファイルを表示 Open project: NanQi/demo Class Usage Examples

Public Methods

Method Description
AddCell ( ) : Cell
AddCell ( Cell cell ) : Cell
GetCellByNo ( int no ) : Cell
GetCellByPosition ( Point position ) : Cell
GetLocation ( Point p ) : Point
GetLocation ( int rowIndex, int columnIndex ) : Point
GetVision ( Cell cell ) : void
IsContainForRect ( Point position ) : bool
IsExist ( Point position ) : bool
WorldMapPanel ( ) : System

Protected Methods

Method Description
OnPaint ( PaintEventArgs e ) : void

Method Details

AddCell() public method

public AddCell ( ) : Cell
return Cell

AddCell() public method

public AddCell ( Cell cell ) : Cell
cell Cell
return Cell

GetCellByNo() public method

public GetCellByNo ( int no ) : Cell
no int
return Cell

GetCellByPosition() public method

public GetCellByPosition ( Point position ) : Cell
position Point
return Cell

GetLocation() public static method

public static GetLocation ( Point p ) : Point
p Point
return Point

GetLocation() public static method

public static GetLocation ( int rowIndex, int columnIndex ) : Point
rowIndex int
columnIndex int
return Point

GetVision() public method

public GetVision ( Cell cell ) : void
cell Cell
return void

IsContainForRect() public method

public IsContainForRect ( Point position ) : bool
position Point
return bool

IsExist() public method

public IsExist ( Point position ) : bool
position Point
return bool

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

WorldMapPanel() public method

public WorldMapPanel ( ) : System
return System