Implement emotions

This commit is contained in:
henriquenakashima 2020-09-26 18:24:46 -04:00
parent 08c395cf51
commit 11df4f1164
25 changed files with 369 additions and 40 deletions

View file

@ -23,10 +23,12 @@ public enum HCardId {
ShieldBlock,
LeadShot,
SmokeBomb,
Eagerness,
}
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},
@ -41,6 +43,7 @@ public class HeroCardDatabase : CardDatabase<HeroCard>
{HCardId.ShieldBlock, HeroId.NPCGuard},
{HCardId.LeadShot, HeroId.Alchemist},
{HCardId.SmokeBomb, HeroId.Alchemist},
{HCardId.Eagerness, HeroId.Alchemist},
};
public override HeroCard CreateCard(int id, BattleParticipant owner) {
@ -73,6 +76,8 @@ public class HeroCardDatabase : CardDatabase<HeroCard>
return new LeadShotHCard(owner);
case HCardId.SmokeBomb:
return new SmokeBombHCard(owner);
case HCardId.Eagerness:
return new EagernessHCard(owner);
default:
throw new System.ArgumentException("HCardId unknown", "id");
}