C# 클래스 MBC.App.FormBattleship.Controls.FieldPanel

상속: System.Windows.Forms.Panel
파일 보기 프로젝트 열기: aiclub/Mohawk_Battleship

공개 메소드들

메소드 설명
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