C# Класс MBC.App.FormBattleship.Controls.FieldPanel

Наследование: System.Windows.Forms.Panel
Показать файл Открыть проект

Открытые методы

Метод Описание
FieldPanel ( ) : System
GetCoordinatesFromMouse ( int mouseX, int mouseY ) : Coordinates
SetCellShip ( Coordinates coordinates, ShipPiece shipPiece, int section, ShipOrientation orientation ) : void
SetCellState ( Coordinates coordinates, CellState state ) : void

Защищенные методы

Метод Описание
OnPaint ( PaintEventArgs e ) : void

Приватные методы

Метод Описание
DrawCellHover ( Graphics g ) : void
DrawCellStateAndShips ( Graphics g ) : void
GetShipImage ( ShipPiece piece ) : Image
GetShipImage ( ShipPiece piece, int section ) : Image

Описание методов

FieldPanel() публичный Метод

public FieldPanel ( ) : System
Результат System

GetCoordinatesFromMouse() публичный Метод

public GetCoordinatesFromMouse ( int mouseX, int mouseY ) : Coordinates
mouseX int
mouseY int
Результат Coordinates

OnPaint() защищенный Метод

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

SetCellShip() публичный Метод

public SetCellShip ( Coordinates coordinates, ShipPiece shipPiece, int section, ShipOrientation orientation ) : void
coordinates Coordinates
shipPiece ShipPiece
section int
orientation ShipOrientation
Результат void

SetCellState() публичный Метод

public SetCellState ( Coordinates coordinates, CellState state ) : void
coordinates Coordinates
state CellState
Результат void