C# Class LifeGame.WorldMapPanel

Inheritance: System.Windows.Forms.Panel
Afficher le fichier Open project: NanQi/demo Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnPaint ( PaintEventArgs e ) : void

Method Details

AddCell() public méthode

public AddCell ( ) : Cell
Résultat Cell

AddCell() public méthode

public AddCell ( Cell cell ) : Cell
cell Cell
Résultat Cell

GetCellByNo() public méthode

public GetCellByNo ( int no ) : Cell
no int
Résultat Cell

GetCellByPosition() public méthode

public GetCellByPosition ( Point position ) : Cell
position Point
Résultat Cell

GetLocation() public static méthode

public static GetLocation ( Point p ) : Point
p Point
Résultat Point

GetLocation() public static méthode

public static GetLocation ( int rowIndex, int columnIndex ) : Point
rowIndex int
columnIndex int
Résultat Point

GetVision() public méthode

public GetVision ( Cell cell ) : void
cell Cell
Résultat void

IsContainForRect() public méthode

public IsContainForRect ( Point position ) : bool
position Point
Résultat bool

IsExist() public méthode

public IsExist ( Point position ) : bool
position Point
Résultat bool

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

WorldMapPanel() public méthode

public WorldMapPanel ( ) : System
Résultat System