C# 클래스 MBC.App.FormBattleship.FormBattleShip

파일 보기 프로젝트 열기: aiclub/Mohawk_Battleship

공개 메소드들

메소드 설명
FormBattleShip ( ) : System
NewMatch ( ) : void

This creates a new match.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
AttemptPlayMatch ( ) : void
Form1_Load ( object sender, EventArgs e ) : void
GridAIDrag ( object sender, DragEventArgs e ) : void
GridAIDragDrop ( object sender, DragEventArgs e ) : void

Places the dragged ship onto the grid

GridAIDragLeave ( object sender, EventArgs e ) : void
GridUserClick ( object sender, MouseEventArgs e ) : void
GridUserMouseLeave ( object sender, EventArgs e ) : void
GridUserMove ( object sender, MouseEventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

RoundEnd ( Event ev ) : void
SelectShip ( int size ) : Ship
ShipCanFit ( Coordinates destCoordinates, int size, int modX, int modY ) : bool
UpdateShipDestroyed ( Event ev ) : void
UpdateShot ( Event ev ) : void
UpdateShotHit ( Event ev ) : void
UpdateWinner ( Event ev ) : void
buttonExit_Click ( object sender, EventArgs e ) : void
buttonNShip_MouseDown ( object sender, MouseEventArgs e ) : void
buttonReset_Click ( object sender, EventArgs e ) : void
reset_Board ( ) : void
shiftKey_Down ( int KeyState ) : Boolean
showStats ( ) : void

Show the score between user and computer in labelfire.

timerAI_Tick ( object sender, EventArgs e ) : void

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

FormBattleShip() 공개 메소드

public FormBattleShip ( ) : System
리턴 System

NewMatch() 공개 메소드

This creates a new match.
public NewMatch ( ) : void
리턴 void