public Cendre(int x, int y, int to_x, int to_y, int tm)
{
this._from_x = x;
this._from_y = y;
this.speed = tm;
this._to_x = to_x;
this._to_y = to_y;
this.Location = new System.Drawing.Point(this._from_x, this._from_y);
this._watch = new Stopwatch();
this._watch.Start();
/*image cendre*/
Random rnd = new Random();
switch (rnd.Next(5))
{
case 0:
this.img = Properties.Resources.Cendre3;
break;
case 1:
this.img = Properties.Resources.Cendre;
break;
case 2:
this.img = Properties.Resources.Cendre2;
break;
case 3:
this.img = Properties.Resources.Cendre2Rouge;
break;
case 4:
this.img = Properties.Resources.Cendre2Jaune;
break;
}
this.sz = new System.Drawing.Size(Properties.Resources.Cendre.Width, Properties.Resources.Cendre.Height);
}