Exemplo n.º 1
0
    public void testCost()
    {
        DictionaryOfStringAndString d = new DictionaryOfStringAndString();

        d.Add("red", "1");
        d.Add("green", "1");
        d.Add("blue", "1");
        cost.Add(d);
    }
Exemplo n.º 2
0
    public void addCostSingle(string type, string amt)
    {
        DictionaryOfStringAndString d = new DictionaryOfStringAndString();

        d.Add(type, amt);
        cost.Add(d);
    }
Exemplo n.º 3
0
 public void ParseData(List <Dictionary <string, string> > dataCSV)
 {
     currentLanguageStrings.Clear();
     if (currentLanguageStrings == null)
     {
         currentLanguageStrings = new DictionaryOfStringAndString();
     }
     for (int i = 0; i < dataCSV.Count; i++)
     {
         currentLanguageStrings.Add(dataCSV[i][CsvKeyConstant.LOCALIZE_KEY], dataCSV[i][CsvKeyConstant.LOCALIIZE_VALUE]);
     }
 }
Exemplo n.º 4
0
    public CardCost deepCopy()
    {
        CardCost c = new CardCost();

        foreach (DictionaryOfStringAndString cos in cost)
        {
            DictionaryOfStringAndString newD = new DictionaryOfStringAndString();

            foreach (KeyValuePair <string, string> attach in cos)
            {
                newD.Add(attach.Key, attach.Value);
            }
            c.addCostDict(newD);
        }
        return(c);
    }
Exemplo n.º 5
0
 public void addResistType(string type)
 {
     if (!resistType.ContainsKey(type))
     {
         resistType.Add(type, "100");
     }
     if (!resistTypeTemp.ContainsKey(type))
     {
         string newAdd = "0";
         if (baseStats.ContainsKey("resistTypeStart"))
         {
             newAdd = baseStats["resistTypeStart"];
         }
         resistTypeTemp.Add(type, newAdd);
     }
 }
Exemplo n.º 6
0
    void basicStats()
    {
        baseStats      = new DictionaryOfStringAndString();
        damageType     = new DictionaryOfStringAndString();
        resistType     = new DictionaryOfStringAndString();
        baseStatsTemp  = new DictionaryOfStringAndString();
        damageTypeTemp = new DictionaryOfStringAndString();
        resistTypeTemp = new DictionaryOfStringAndString();
        startDeck      = new DictionaryOfStringAndString();

        baseStats.Add("maxhealth", "100");
        baseStats.Add("initiative", "0");
        baseStats.Add("luck", "0");
        baseStats.Add("handsize", "10");
        baseStats.Add("damage", "100");
        baseStats.Add("resist", "100");
        baseStats.Add("resistTypeStart", "0");
        setStat(baseStats, "health", getStat(baseStats, "maxhealth"));
        basicResist();
        basicDeck();
    }
Exemplo n.º 7
0
Arquivo: Action.cs Projeto: tbrax/cd0
 public void addActionStat(string type, string val)
 {
     actionStats.Add(type, val);
 }
Exemplo n.º 8
0
 void basicResist()
 {
     resistType.Add("fire", "100");
     resistType.Add("cold", "150");
     resistType.Add("energy", "50");
 }
Exemplo n.º 9
0
 void basicDeck()
 {
     startDeck.Add("Fire Blast", "5");
     startDeck.Add("Ice Storm", "5");
     startDeck.Add("Lightning Strike", "5");
 }
Exemplo n.º 10
0
 void addTempStat(DictionaryOfStringAndString loc, string st)
 {
     loc.Add(st, "0");
 }