Add heroes to BattleParameters
This commit is contained in:
parent
84782a9bb3
commit
ba0252298c
10 changed files with 155 additions and 105 deletions
|
|
@ -28,24 +28,6 @@ public enum HCardId {
|
|||
|
||||
public class HeroCardDatabase : CardDatabase<HeroCard>
|
||||
{
|
||||
// TODO: Get rid of this and instead input who owns each card.
|
||||
private static Dictionary<HCardId, HeroId> CARD_TO_HERO = new Dictionary<HCardId, HeroId>() {
|
||||
{HCardId.CrashingPunch, HeroId.Brute},
|
||||
{HCardId.Cover, HeroId.Brute},
|
||||
{HCardId.LightningStrike, HeroId.Shaman},
|
||||
{HCardId.Scarring, HeroId.Brute},
|
||||
{HCardId.Thunderstorm, HeroId.Shaman},
|
||||
{HCardId.BlindFury, HeroId.Brute},
|
||||
{HCardId.Meditate, HeroId.Shaman},
|
||||
{HCardId.LightningHatchet, HeroId.Shaman},
|
||||
{HCardId.IronskinDraught, HeroId.Alchemist},
|
||||
{HCardId.SwordSlash, HeroId.NPCGuard},
|
||||
{HCardId.ShieldBlock, HeroId.NPCGuard},
|
||||
{HCardId.LeadShot, HeroId.Alchemist},
|
||||
{HCardId.SmokeBomb, HeroId.Alchemist},
|
||||
{HCardId.Eagerness, HeroId.Alchemist},
|
||||
};
|
||||
|
||||
public override HeroCard CreateCard(int id, BattleParticipant owner) {
|
||||
HCardId heroCardId = (HCardId) id;
|
||||
switch (heroCardId)
|
||||
|
|
@ -82,8 +64,4 @@ public class HeroCardDatabase : CardDatabase<HeroCard>
|
|||
throw new System.ArgumentException("HCardId unknown", "id");
|
||||
}
|
||||
}
|
||||
|
||||
public static HeroId GetHeroIdOfCard(HCardId id) {
|
||||
return CARD_TO_HERO[id];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue