示例#1
0
  public Bille(Environnement env, int numero) {
    super(env, 0, 0);
    Random random = new Random();

    this.x = random.nextInt(env.getTailleX());
    this.y = random.nextInt(env.getTailleY());

    this.couleur = randomColor();

    this.numero = numero;
    // this.vitesse = random.nextInt(9) + 1; //retirer le 0
    this.vitesse = 1;
    this.sens = random.nextInt(7) + 1;
  }