C# Класс MBC.App.FormBattleship.FormBattleShip

Показать файл Открыть проект

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

Метод Описание
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