Esempio n. 1
0
  public static Card droneCard() {
    Card drone = new Card();
    int index = (int) (Math.random() * prefixes.length);
    drone.name = prefixes[index] + "Laser Buggy";

    drone.effect = Card.LASERBUDDY;
    // health.amount = index*10 + 10;
    return drone;
  }
Esempio n. 2
0
  public static Card healthCard() {
    Card health = new Card();
    int index = (int) (Math.random() * prefixes.length);
    health.name = prefixes[index] + "Repair Kit";

    health.effect = Card.HEALTH;
    health.amount = index * 10 + 10;
    return health;
  }
Esempio n. 3
0
  public static Card speedBoostCard() {
    Card speedUp = new Card();
    int index = (int) (Math.random() * prefixes.length);
    speedUp.name = prefixes[index] + "Speed Boost";

    speedUp.effect = Card.SPEED;
    speedUp.amount = 1.5;
    speedUp.duration = 200;
    return speedUp;
  }