C# Класс BattleShip.Form1

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

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

Метод Описание
Form1 ( ) : System

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

Метод Описание
Dispose ( bool disposing ) : void

Nettoyage des ressources utilisées.

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

Метод Описание
CreateCendre ( ) : void
Form1_Load ( object sender, EventArgs e ) : void

create the different gameboard with the label associate, add the game button add the boats

Form1_MouseDown ( object sender, MouseEventArgs e ) : void

test which mouse clic is used left clic : In enemy platform put a cross if the clic touch a case Give the autorisation to a ship to move Right clic : rotate the boat

Form1_MouseMove ( object sender, MouseEventArgs e ) : void

get the values of the cursor movement of the ship

Form1_MouseUp ( object sender, MouseEventArgs e ) : void

stop the movement of a ship

Form1_Paint ( object sender, PaintEventArgs e ) : void

Display each platform + ship

GameFinish ( string text, Color couleur ) : void

Permet d'afficher en gros le texte "Défaite" ou "Victoire"

InitializeComponent ( ) : void

Méthode requise pour la prise en charge du concepteur - ne modifiez pas le contenu de cette méthode avec l'éditeur de code.

btnRestart_Click ( object sender, EventArgs e ) : void
button_Click ( object sender, EventArgs e ) : void

begin the game

create_game ( object sender, EventArgs e ) : void
gameButton ( ) : void
tmr_Tick ( object sender, EventArgs e ) : void

call the methods paint each 100ms

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

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

Nettoyage des ressources utilisées.
protected Dispose ( bool disposing ) : void
disposing bool true si les ressources managées doivent être supprimées ; sinon, false.
Результат void

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

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