C# Class MBC.App.FormBattleship.Controls.FieldPanel

Inheritance: System.Windows.Forms.Panel
Afficher le fichier Open project: aiclub/Mohawk_Battleship

Méthodes publiques

Méthode Description
FieldPanel ( ) : System
GetCoordinatesFromMouse ( int mouseX, int mouseY ) : Coordinates
SetCellShip ( Coordinates coordinates, ShipPiece shipPiece, int section, ShipOrientation orientation ) : void
SetCellState ( Coordinates coordinates, CellState state ) : void

Méthodes protégées

Méthode Description
OnPaint ( PaintEventArgs e ) : void

Private Methods

Méthode Description
DrawCellHover ( Graphics g ) : void
DrawCellStateAndShips ( Graphics g ) : void
GetShipImage ( ShipPiece piece ) : Image
GetShipImage ( ShipPiece piece, int section ) : Image

Method Details

FieldPanel() public méthode

public FieldPanel ( ) : System
Résultat System

GetCoordinatesFromMouse() public méthode

public GetCoordinatesFromMouse ( int mouseX, int mouseY ) : Coordinates
mouseX int
mouseY int
Résultat Coordinates

OnPaint() protected méthode

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

SetCellShip() public méthode

public SetCellShip ( Coordinates coordinates, ShipPiece shipPiece, int section, ShipOrientation orientation ) : void
coordinates Coordinates
shipPiece ShipPiece
section int
orientation ShipOrientation
Résultat void

SetCellState() public méthode

public SetCellState ( Coordinates coordinates, CellState state ) : void
coordinates Coordinates
state CellState
Résultat void