public void drawShip(Graphics g)
{
// width
int i = 0;
// height
int j = 0;
foreach (casePlatform cases in shipSize)
{
// affect a new coordinate to cases
cases.X = this.X + (i * this._size);
cases.Y = this.Y + (j * this._size);
j++;
if (i < this.WidthCase && j >= this.HeightCase)
{
i++;
j = 0;
}
cases.DisplayCase(g);
}
}