public PrimaryAttributes(double strength, double agility, double stamina, double intellect, double spirit)
 {
     Strength  = new Strength(strength);
     Agility   = new Agility(agility);
     Stamina   = new Stamina(stamina);
     Intellect = new Intellect(intellect);
     Spirit    = new Spirit(spirit);
 }
Ejemplo n.º 2
0
 public EntityStats(int might, int agility, int fortitude, int intellect, int resolve)
 {
     this.might     = new Might(might);
     this.agility   = new Agility(agility);
     this.fortitude = new Fortitude(fortitude);
     this.intellect = new Intellect(intellect);
     this.resolve   = new Resolve(resolve);
 }
 public PrimaryAttributes(
     Strength strength,
     Agility agility,
     Stamina stamina,
     Intellect intellect,
     Spirit spirit)
 {
     Strength  = strength;
     Agility   = agility;
     Stamina   = stamina;
     Intellect = intellect;
     Spirit    = spirit;
 }
Ejemplo n.º 4
0
        public static bool UploadIntellect(Guid Account_ID, string name, byte[] data, string description)
        {
            if (db.Intellect == null)
            {
                Trace.WriteLine("db.Intellect == null");
            }

            string uniqueBlobName = string.Format("intellects/{0}/{1}", Account_ID.ToString(), name);

            db.AddToIntellect(Intellect.CreateIntellect(Guid.NewGuid(), name, Account_ID, description));
            db.SaveChanges();

            CloudBlockBlob blob = container.GetBlockBlobReference(uniqueBlobName);

            blob.UploadByteArray(data);

            return(true);
        }
Ejemplo n.º 5
0
        public string toString()
        {
            var toString = "";

            if (!String.IsNullOrEmpty(Name))
            {
                toString += Name + "\r\n";
            }
            if (Quality != 0)
            {
                toString += Quality.ToString() + "\r\n";
            }
            if (ItemLevel != 0)
            {
                toString += "Item Level " + ItemLevel + "\r\n";
            }
            if (Armor > 0)
            {
                toString += Slot.ToString() + ":" + ArmorType.ToString() + "\r\n";
                toString += Armor + " Armor\r\n";
            }
            else
            {
                toString += Slot.ToString() + "\r\n";
            }

            if (Strength > 0)
            {
                toString += "+" + Strength.ToString() + " Strength" + "\r\n";
            }
            if (Agility > 0)
            {
                toString += "+" + Agility.ToString() + " Agility" + "\r\n";
            }
            if (Intellect > 0)
            {
                toString += "+" + Intellect.ToString() + " Intellect" + "\r\n";
            }
            if (Stamina > 0)
            {
                toString += "+" + Stamina.ToString() + " Stamina" + "\r\n";
            }
            if (Spirit > 0)
            {
                toString += "+" + Spirit.ToString() + " Spirit" + "\r\n";
            }

            if (ArcaneResist > 0)
            {
                toString += "+" + ArcaneResist.ToString() + " Arcane Resistance" + "\r\n";
            }
            if (FireResist > 0)
            {
                toString += "+" + FireResist.ToString() + " Fire Resistance" + "\r\n";
            }
            if (NatureResist > 0)
            {
                toString += "+" + NatureResist.ToString() + " Nature Resistance" + "\r\n";
            }
            if (FrostResist > 0)
            {
                toString += "+" + FrostResist.ToString() + " Frost Resistance" + "\r\n";
            }
            if (ShadowResist > 0)
            {
                toString += "+" + ShadowResist.ToString() + " Shadow Resistance" + "\r\n";
            }

            if (Classes != 0)
            {
                toString += ((Class)Classes).ToString() + "\r\n";
            }

            if (SpellCrit > 0)
            {
                toString += "Improves your chance to get a critical strike with spells by " + SpellCrit + "%.\r\n";
            }
            if (SpellPower > 0)
            {
                toString += "Increases damage and healing done by magical spells and effects by up to " + SpellPower + ".\r\n";
            }
            if (SpellHit > 0)
            {
                toString += "Improves your chance to hit with spells by " + SpellHit + "%.\r\n";
            }
            if (SpellPen > 0)
            {
                toString += "Decreases the magical resistances of your spell targets by " + SpellPen + ".\r\n";
            }
            if (ManaRegen > 0)
            {
                toString += "Restores " + ManaRegen + " mana per 5 sec.\r\n";
            }

            if (ItemSet != 0)
            {
                toString += ModelHelper.GetEnumDescription(ItemSet);
            }

            return(toString);
        }
Ejemplo n.º 6
0
 public void Init()
 {
     strength  = new Strength(0);
     intellect = new Intellect(0);
     dexterity = new Dexterity(0);
 }
Ejemplo n.º 7
0
    //private readonly GUIContent _patrolPoints       = new GUIContent("Patrol Points", "The nodes, in sequence, which the AI will Patrol");
    //private readonly GUIContent _patrolDeviation    = new GUIContent("Patrol Deviation", "When provoked, the Maximum distance the AI will deviate from a node while patrolling");

    void OnEnable()
    {
        _x = (Intellect)target;
    }