C# 클래스 BattleShip.Form1

상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: LucienCamuglia/Battleships

공개 메소드들

메소드 설명
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