コード例 #1
0
 ///<summary>
 ///Test si l'hexagone est touché et traite le cas si il l'est
 ///</summary>
 ///<param name="x">La position x où l'on clique</param>
 ///<param name="y">La position y où l'on clique</param>
 ///<param name="form">Le formulaire sur lequel on clique</param>
 public void TestIsHit(int x, int y, FormHexagones form)
 {
     if (IsHit(x, y))
     {
         form.OnHexaHit(this);
     }
 }
コード例 #2
0
ファイル: Hexagone.cs プロジェクト: GaeDLLD/TableauLEDDMX
 public void TestIsHit(int x, int y, int id, FormHexagones form)
 {
     if (IsHit(x, y))
     {
         this.id = id;
         form.OnHexaHit(this);
     }
 }