예제 #1
0
  private static Animation getAnimation(Bullet bullet) {
    if (bullet.getType() instanceof ThBullet) {
      Animation ani =
          new ThBullet(
                  ThBulletType.ORB_MEDIUM,
                  ((ThBullet) bullet.getType()).getBulletColor().getBreakAnimationColor())
              .getAnimation();

      return ani;
    } else {
      Animation ani =
          new ThBullet(
                  ThBulletType.ORB_MEDIUM,
                  ThBulletColor.getClosest(
                      ThBulletColor.POSSIBLE_SPAWN, bullet.getType().getEffectColor()))
              .getAnimation();

      return ani;
    }
  }