C# Class MBC.App.FormBattleship.FormBattleShip

ファイルを表示 Open project: aiclub/Mohawk_Battleship

Public Methods

Method Description
FormBattleShip ( ) : System
NewMatch ( ) : void

This creates a new match.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
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

Method Details

Dispose() protected method

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

FormBattleShip() public method

public FormBattleShip ( ) : System
return System

NewMatch() public method

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