Beispiel #1
0
 public void copyFromTower(Tower t) {
   setAnimationPreAttack(t.getAnimationPreAttack());
   setAnimationPreAttackDuration(t.getAnimationPreAttackDuration());
   setAnimationPostAttack(t.getAnimationPostAttack());
   setAnimationPostAttackDuration(t.getAnimationPostAttackDuration());
   setAnimationStand(t.getAnimationStand());
   setAnimationStandDuration(t.getAnimationStandDuration());
   setAttackSpeed(t.getAttackSpeed());
   setDamage(t.getDamage());
   setProjectileAnimationDeath(t.getProjectileAnimationDeath());
   setProjectileAnimationStand(t.getProjectileAnimationStand());
   setProjectileAnimationDeathDuration(t.getProjectileAnimationDeathDuration());
   setProjectileAnimationStandDuration(t.getProjectileAnimationStandDuration());
   setProjectileSpeed(t.getProjectileSpeed());
   setRange(t.getRange());
   setShootingAir(t.isShootingAir());
   setShootingGround(t.isShootingGround());
 }
Beispiel #2
0
  public Tower(Main m, int x, int y, TowerType towerType) {
    this.m = m;
    this.towerType = towerType;
    setX(x);
    setY(y);

    setAttackSpeed(0.0D);
    setDamage(0.0D);
    setRange(0.0D);
    setAAcd(0.0D);
    setProjectileAnimationDeath(null);
    setProjectileAnimationStand(null);
    setProjectileAnimationDeathDuration(1);
    setProjectileAnimationStandDuration(1);
    setProjectileSpeed(0.0D);
    setSprite(null);
    setAnimation(ANIMATION_STAND);
    setAnimationTime(0);
    setShootingAir(true);
    setShootingGround(true);
    setBuffs(new ArrayList<Buff>());
  }