Implement emotions
This commit is contained in:
parent
08c395cf51
commit
11df4f1164
25 changed files with 369 additions and 40 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue