Beispiel #1
0
    void onCardAdded(Player p, CardData c)
    {
        switch (c.Type)
        {
        case CardType.Healing_Card:
            if (!p.HasGotCardHealing)
            {
                p.HasGotCardHealing = true;
                TutorialPanel.Instance().Tutor(_GameStateHolder._ActivePlayer.Type,
                                               "Cards",
                                               "Healing cards can be used to heal your units at any time.\n" +
                                               "The number of units the can be healed is written on the card.",
                                               false);
            }
            break;

        case CardType.Scout_Card:
            if (!p.HasGotCardScout)
            {
                p.HasGotCardScout = true;
                TutorialPanel.Instance().Tutor(_GameStateHolder._ActivePlayer.Type,
                                               "Cards",
                                               "Scout cards allows you to make use of the scouts in your army.\n" +
                                               "Using this card allows you can move further in a turn without alerting anybody.\n" +
                                               "Having more scouts allows you to move further.",
                                               false);
            }
            break;

        case CardType.Resource_Card:
            if (!p.HasGotCardResource)
            {
                p.HasGotCardResource = true;
                TutorialPanel.Instance().Tutor(_GameStateHolder._ActivePlayer.Type,
                                               "Cards",
                                               "Resource cards give you resources so you can purchase things in the Armoury located in the centre of Nekark." +
                                               "Your resources are shown in the top left of the screen.",
                                               false);
            }
            break;

        case CardType.Battle_Card:
            if (!p.HasGotCardBattle)
            {
                p.HasGotCardBattle = true;
                TutorialPanel.Instance().Tutor(_GameStateHolder._ActivePlayer.Type,
                                               "Cards",
                                               "Battle cards... Aargh! An enemy appeared out of nowhere!",
                                               false);
            }
            break;

        case CardType.Tactic_Card:
            if (!p.HasGotCardTactic)
            {
                p.HasGotCardTactic = true;
                TutorialPanel.Instance().Tutor(_GameStateHolder._ActivePlayer.Type,
                                               "Cards",
                                               "Tactic cards temporarily increase the strength of a unit in battle.\n" +
                                               "It only lasts for one attack, so use wisely.",
                                               false);
            }
            break;

        case CardType.Alliance_Card:
            if (!p.HasGotCardAlliance)
            {
                p.HasGotCardAlliance = true;
                TutorialPanel.Instance().Tutor(_GameStateHolder._ActivePlayer.Type,
                                               "Cards",
                                               "Alliance cards call forth a new unit to fight for you.",
                                               false);
            }
            break;

        case CardType.Priority_Card:
            if (!p.HasGotCardPriority)
            {
                p.HasGotCardPriority = true;
                TutorialPanel.Instance().Tutor(_GameStateHolder._ActivePlayer.Type,
                                               "Cards",
                                               "Priority cards will give you a speed advantage at the beginning of upcoming battles.",
                                               false);
            }
            break;

        case CardType.Upgrade_Card:
            if (!p.HasGotCardPriority)
            {
                p.HasGotCardPriority = true;
                TutorialPanel.Instance().Tutor(_GameStateHolder._ActivePlayer.Type,
                                               "Cards",
                                               "Resource cards increase the strength of a unit.\n" +
                                               "Be careful though, as it will wear off if the unit is knocked out!",
                                               false);
            }
            break;

        default:
            break;
        }
    }