Esempio n. 1
0
        // overload operator +
        public static MoneySet operator +(MoneySet a, MoneySet b)
        {
            var c = new MoneySet();

            for (int coin = Money.Copper; coin <= Money.Jewelry; coin++)
            {
                c.money[coin] = a.money[coin] + b.money[coin];
            }

            return(c);
        }
Esempio n. 2
0
        // overload operator +
        public static MoneySet operator +(MoneySet a, MoneySet b)
        {
            var c = new MoneySet();

            for (int coin = Money.Copper; coin <= Money.Jewelry; coin++)
            {
                c.money[coin] = a.money[coin] + b.money[coin];
            }

            return c;
        }
Esempio n. 3
0
        private void Init()
        {
            spellCastCount = new byte[3, 5];
            //stats = new StatValue[6];
            stats2 = new PlayerStats();

            name    = string.Empty;
            items   = new List <Item>();
            affects = new List <Affect>();

            actions   = null;
            Money     = new MoneySet();
            spellList = new SpellList();
        }
Esempio n. 4
0
        private void Init()
        {
            spellCastCount = new byte[3, 5];
            //stats = new StatValue[6];
            stats2 = new PlayerStats();

            name = string.Empty;
            items = new List<Item>();
            affects = new List<Affect>();

            actions = null;
            Money = new MoneySet();
            spellList = new SpellList();
        }