static { float dp = Rpg.getDp(); imageFormatInfo = new ImageFormatInfo(0, 0, 0, 0, 1, 1); imageFormatInfo.setRedId(R.drawable.soldier_deen_red); imageFormatInfo.setBlueId(R.drawable.soldier_deen_blue); staticAttackerQualities = new AttackerQualities(); staticAttackerQualities.setStaysAtDistanceSquared(0); staticAttackerQualities.setFocusRangeSquared(5000 * dp * dp); staticAttackerQualities.setAttackRangeSquared(Rpg.getMeleeAttackRangeSquared()); staticAttackerQualities.setDamage(40); staticAttackerQualities.setdDamageAge(0); staticAttackerQualities.setdDamageLvl(5); staticAttackerQualities.setROF(800); staticLivingQualities = new LivingQualities(); staticLivingQualities.setRequiresBLvl(10); staticLivingQualities.setRequiresAge(Age.STEEL); staticLivingQualities.setRequiresTcLvl(16); staticLivingQualities.setLevel(1); staticLivingQualities.setFullHealth(250); staticLivingQualities.setHealth(250); staticLivingQualities.setdHealthAge(0); staticLivingQualities.setdHealthLvl(30); staticLivingQualities.setFullMana(0); staticLivingQualities.setMana(0); staticLivingQualities.setHpRegenAmount(1); staticLivingQualities.setRegenRate(1000); staticLivingQualities.setArmor(10); staticLivingQualities.setdArmorAge(0); staticLivingQualities.setdArmorLvl(2); staticLivingQualities.setSpeed(1.0f * dp); }
@Override public void loadImages() { if (redImages == null) redImages = Assets.loadImages(imageFormatInfo.getRedId(), 0, 0, 1, 1); if (orangeImages == null) orangeImages = Assets.loadImages(imageFormatInfo.getOrangeId(), 0, 0, 1, 1); if (blueImages == null) blueImages = Assets.loadImages(imageFormatInfo.getBlueId(), 0, 0, 1, 1); if (greenImages == null) greenImages = Assets.loadImages(imageFormatInfo.getGreenId(), 0, 0, 1, 1); if (whiteImages == null) whiteImages = Assets.loadImages(imageFormatInfo.getWhiteId(), 0, 0, 1, 1); }
static { float dp = Rpg.getDp(); imageFormatInfo = new ImageFormatInfo(0, 0, 2, 0, 4, 2); imageFormatInfo.setID(R.drawable.pigeon); staticAttackerQualities = new AttackerQualities(); staticAttackerQualities.setStaysAtDistanceSquared(0); staticAttackerQualities.setFocusRangeSquared(5000 * dp * dp); staticAttackerQualities.setAttackRangeSquared(Rpg.getMeleeAttackRangeSquared()); staticAttackerQualities.setDamage(5); staticAttackerQualities.setdDamageAge(0); staticAttackerQualities.setdDamageLvl(1); staticAttackerQualities.setROF(1000); staticLivingQualities = new LivingQualities(); staticLivingQualities.setRequiresBLvl(1); staticLivingQualities.setRequiresAge(Age.STONE); staticLivingQualities.setRequiresTcLvl(1); staticLivingQualities.setRangeOfSight(300); staticLivingQualities.setLevel(1); staticLivingQualities.setFullHealth(40); staticLivingQualities.setHealth(40); staticLivingQualities.setdHealthAge(0); staticLivingQualities.setdHealthLvl(10); // staticLivingQualities.setFullMana(0); staticLivingQualities.setMana(0); staticLivingQualities.setHpRegenAmount(1); staticLivingQualities.setRegenRate(10000); staticLivingQualities.setArmor(0); staticLivingQualities.setdArmorAge(3); staticLivingQualities.setdArmorLvl(1); staticLivingQualities.setSpeed(1.5f * dp); }
public static Image[] getWhiteImages() { if (whiteImages == null) { whiteImages = Assets.loadImages(imageFormatInfo.getWhiteId(), 3, 4, 0, 0, 1, 1); } return whiteImages; }
public static Image[] getOrangeImages() { if (orangeImages == null) { orangeImages = Assets.loadImages(imageFormatInfo.getOrangeId(), 3, 4, 0, 0, 1, 1); } return orangeImages; }
public static Image[] getGreenImages() { if (greenImages == null) { greenImages = Assets.loadImages(imageFormatInfo.getGreenId(), 3, 4, 0, 0, 1, 1); } return greenImages; }
public static Image[] getBlueImages() { if (blueImages == null) { blueImages = Assets.loadImages(imageFormatInfo.getBlueId(), 3, 4, 0, 0, 1, 1); } return blueImages; }
public static Image[] getRedImages() { if (redImages == null) { redImages = Assets.loadImages(imageFormatInfo.getRedId(), 3, 4, 0, 0, 1, 1); } return redImages; }