Метод | Описание | |
---|---|---|
Form1 ( ) : System |
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Nettoyage des ressources utilisées.
|
Метод | Описание | |
---|---|---|
CreateCendre ( ) : void | ||
Form1_Load ( object sender, |
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
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true si les ressources managées doivent être supprimées ; sinon, false. |
Результат | void |