Beispiel #1
0
        public Character(ETalisman eTalisman)
            : base(eTalisman)
        {
            this.eTalisman = eTalisman;

            stats = new Stats(eTalisman);
        }
Beispiel #2
0
 public void Copy(Stats from)
 {
     // broken here!?
     //attributes = (Stats.Attribute[])from.attributes.Clone();
     for (int i = (int)Attributes._BEGIN + 1; i < (int)Attributes._END - 1; i++)
         attributes[i].value = from.attributes[i].value;
     health = from.health;
     mana = from.mana;
     availableAttributePoints = from.availableAttributePoints;
 }
Beispiel #3
0
 public Class(Stats stats, String name)
 {
     this.stats = stats;
     this.name = name;
 }
Beispiel #4
0
        public Creator(ETalisman eTalisman)
            : base(eTalisman)
        {
            this.eTalisman = eTalisman;
            spriteBatch = eTalisman.spriteBatch;
            step = Step.PICK_CLASS;

            character = new Character(eTalisman);
            newStats = new Stats(eTalisman);

            // info text
            font = eTalisman.Content.Load<SpriteFont>("font/Arial");

            background = eTalisman.Content.Load<Texture2D>("gfx/background/106702_Starlightss1");

            // class
            Class amazon = new Class(new Stats(eTalisman), "Yahaua Indian");
            amazon.stats.health = 150;
            amazon.stats.mana = 100;
            amazon.stats.attributes[(int)Stats.Attributes.STRENGTH].value = 10;
            amazon.stats.attributes[(int)Stats.Attributes.DEXTERITY].value = 20;
            amazon.stats.attributes[(int)Stats.Attributes.VITALITY].value = 15;
            amazon.stats.attributes[(int)Stats.Attributes.ENERGY].value = 10;
            amazon.stats.availableAttributePoints = 11;
            amazon.texture = eTalisman.Content.Load<Texture2D>("gfx/amazon/amazon3");
            amazon.bounds = new Rectangle(-30, 170, 800, 439);

            Class warrior = new Class(new Stats(eTalisman), "Dingo Warrior");
            warrior.stats.health = 200;
            warrior.stats.mana = 50;
            warrior.stats.attributes[(int)Stats.Attributes.STRENGTH].value = 20;
            warrior.stats.attributes[(int)Stats.Attributes.DEXTERITY].value = 12;
            warrior.stats.attributes[(int)Stats.Attributes.VITALITY].value = 17;
            warrior.stats.attributes[(int)Stats.Attributes.ENERGY].value = 5;
            warrior.stats.availableAttributePoints = 10;
            warrior.texture = eTalisman.Content.Load<Texture2D>("gfx/warrior/warrior3");
            warrior.bounds = new Rectangle(290, 0, 270, 355);

            Class sorceress = new Class(new Stats(eTalisman), "Mary Kate");
            sorceress.stats.health = 100;
            sorceress.stats.mana = 200;
            sorceress.stats.attributes[(int)Stats.Attributes.STRENGTH].value = 10;
            sorceress.stats.attributes[(int)Stats.Attributes.DEXTERITY].value = 10;
            sorceress.stats.attributes[(int)Stats.Attributes.VITALITY].value = 12;
            sorceress.stats.attributes[(int)Stats.Attributes.ENERGY].value = 20;
            sorceress.stats.availableAttributePoints = 12;
            sorceress.texture = eTalisman.Content.Load<Texture2D>("gfx/sorceress/sorceress3");
            sorceress.bounds = new Rectangle(550, 0, 242, 600);

            Class eTMichael = new Class(new Stats(eTalisman), "E.T. and Michael Jackson");
            eTMichael.stats.health = 150;
            eTMichael.stats.mana = 150;
            eTMichael.stats.attributes[(int)Stats.Attributes.STRENGTH].value = 12;
            eTMichael.stats.attributes[(int)Stats.Attributes.DEXTERITY].value = 13;
            eTMichael.stats.attributes[(int)Stats.Attributes.VITALITY].value = 13;
            eTMichael.stats.attributes[(int)Stats.Attributes.ENERGY].value = 19;
            eTMichael.stats.availableAttributePoints = 13;
            eTMichael.texture = eTalisman.Content.Load<Texture2D>("gfx/etandmichaeljackson/etandmichaeljackson3");
            eTMichael.bounds = new Rectangle(290, 260, 362, 400);

            Class[] classes = new Class[] { warrior, sorceress, amazon, eTMichael };

            // GUIs used in different steps
            classGUI = new ClassGUI(eTalisman, this, classes);
            statsGUI = new StatsGUI(eTalisman, this);
        }