private void loadBuildersAndConstructors() { cardBuilder = new CardBuilder(); cardConstructor = new CardConstructor(); deckBuilder = new DeckBuilder(); deckConstructor = new DeckConstructor(); }
public void Assemble(CardConstructor constructor, int identifier) { if (identifier == 0) { constructor.setFieldUnit(identifier); Race[] cost = { Race.Elf, Race.Elf }; constructor.setCost(new Cost(2, cost)); constructor.setPower(3); constructor.setRace(Race.Elf); constructor.setDefense(3); constructor.setRarity(Rarity.Bronze); constructor.setName("Elf"); constructor.addAbility(new Exhaust()); /**/ } else if (identifier == 1) { constructor.setGeneral(identifier); Race[] cost = { Race.Human }; constructor.setCost(new Cost(3, cost)); constructor.setPower(0); constructor.setRace(Race.Human); constructor.setDefense(4); constructor.setRarity(Rarity.Bronze); constructor.setName("Guy"); constructor.addAbility(new TargetDamage(2, 1)); constructor.addAbility(new TargetDamage(5, -2)); constructor.addAbility(new TargetDamage(12, -8)); } else if (identifier == 2) { constructor.setArmy(identifier); constructor.setPower(2); constructor.setRace(Race.Orc); constructor.setDefense(4); constructor.setRarity(Rarity.Bronze); constructor.setName("Batallion"); } else if (identifier == 3) { constructor.setFieldUnit(identifier); Race[] cost = { Race.Orc }; constructor.setCost(new Cost(0, cost)); constructor.setPower(5); constructor.setRace(Race.Orc); constructor.setDefense(2); constructor.setRarity(Rarity.Bronze); constructor.setName("Orc Pawn"); } else if (identifier == 4) { constructor.setGeneral(identifier); Race[] cost = { Race.Orc }; constructor.setCost(new Cost(2, cost)); constructor.setPower(0); constructor.setRace(Race.Orc); constructor.setDefense(2); constructor.setRarity(Rarity.Bronze); constructor.setName("Revealer"); constructor.addAbility(new Reveal(2)); constructor.addAbility(new RowDamage(1, -1)); constructor.addAbility(new RowDamage(12, -10)); } else if (identifier == 5) { constructor.setGeneral(identifier); Race[] cost = { Race.Orc, Race.Orc }; constructor.setCost(new Cost(0, cost)); constructor.setPower(0); constructor.setRace(Race.Orc); constructor.setDefense(1); constructor.setRarity(Rarity.Bronze); constructor.setName("Spawner General"); constructor.addAbility(new SpawnCard(10, +2, "4/1 field unit.")); constructor.addAbility(new SpawnCard(11, -2, "1/1 army.")); constructor.addAbility(new SpawnCard(5, -5, "a copy of this.")); } else if (identifier == 6) { constructor.setGeneral(identifier); Race[] cost = { Race.Orc, Race.Orc }; constructor.setCost(new Cost(0, cost)); constructor.setPower(0); constructor.setRace(Race.Orc); constructor.setDefense(6); constructor.setRarity(Rarity.Bronze); constructor.setName("Jess's General"); constructor.addAbility(new BothSidesDrawCard(1, +2)); constructor.addAbility(new SpawnCard(6, -5, "a copy of this.")); constructor.addAbility(new LifeDamage(12, -8)); } else if (identifier == 7) { constructor.setManuever(identifier); Race[] cost = { }; constructor.setCost(new Cost(2, cost)); constructor.setRace(Race.Orc); constructor.setName("Heavy Research"); constructor.setRarity(Rarity.Bronze); constructor.addAbility(new CreateSpell(1003, "a multi-target spell.")); } else if (identifier == 8) { constructor.setManuever(identifier); Race[] cost = { Race.Orc, Race.Orc }; constructor.setCost(new Cost(3, cost)); constructor.setRace(Race.Orc); constructor.setName("War Crime"); constructor.setRarity(Rarity.Bronze); constructor.addAbility(new LifeDamage(8)); } else if (identifier == 9) { constructor.setFieldUnit(identifier); Race[] cost = { Race.Orc }; constructor.setCost(new Cost(1, cost)); constructor.setPower(3); constructor.setRace(Race.Orc); constructor.setDefense(1); constructor.setRarity(Rarity.Bronze); constructor.setName("Transmorpher"); constructor.addAbility(new SpawnCard(9, "a copy of this.")); constructor.addAbility(new SpawnCard(5, "a Spawner General.")); } else if (identifier == 10) { constructor.setFieldUnit(identifier); constructor.setPower(2); constructor.setRace(Race.Orc); constructor.setDefense(1); constructor.setRarity(Rarity.Bronze); constructor.setName("Spawned"); constructor.addAbility(new TargetDamage(1)); constructor.addEffect(new Effect(new Reveal(), Effect.Trigger.OnTurnStart)); constructor.addEffect(new Effect(new CreateSpell(10, "a copy of this."), Effect.Trigger.OnAttack)); } else if (identifier == 11) { constructor.setArmy(identifier); constructor.setPower(1); constructor.setRace(Race.Orc); constructor.setDefense(1); constructor.setRarity(Rarity.Bronze); constructor.setName("Spawn Army"); } else if (identifier == 12) { constructor.setArmy(identifier); constructor.setPower(0); constructor.setRace(Race.Orc); constructor.setDefense(4); constructor.setRarity(Rarity.Bronze); constructor.setName("Patriotic Men"); constructor.addEffect(new Effect(new LifeDamage(1), Effect.Trigger.OnEnterPlay)); } else if (identifier == 1003) { constructor.setManuever(identifier); Race[] cost = { }; constructor.setCost(new Cost(2, cost)); constructor.setRace(Race.Orc); constructor.setName("Outsourced Weapon"); constructor.setRarity(Rarity.Bronze); constructor.addAbility(new KillTarget()); constructor.addAbility(new LifeDamage(2)); } }
public void passDown(CardImageStorage library, CardConstructor constructor) { cardConstructor = constructor; this.library = library; }
public Card cardConstruct(CardConstructor constructor, int identifier) { Assemble(constructor, identifier); return(constructor.getCard()); }