Example #1
0
        //public Vector2 ScaleVector { get; set; }

        // Constructors
        public Card(string name, Texture2D cardTexture, Texture2D cardBack, Dictionary <string, Button> buttons)
        {
            CardTexture    = cardTexture;
            BackTexture    = cardBack;
            CurrentTexture = cardBack;
            Dice           = new BasicDie();
            Name           = name;
            Buttons        = buttons;
            ScaleVector    = new Vector2(.40f, .40f);
            Rng            = new Random();
        }
Example #2
0
        public Player(int armor, int health, int gold, int food, Dictionary <string, Texture2D> spellIcons)
        {
            Armor  = armor;
            Health = health;
            Gold   = gold;
            Food   = food;
            Rank   = 1;

            //DungeonLevel = 1;
            DungeonArea = 1;

            HasFoughtMonster = false;

            playerDice = new BasicDie();
            Spells     = new List <Spell>();
            SpellIcons = spellIcons;
        }