Esempio n. 1
0
 public Monster(SerializationInfo info, StreamingContext context)
 {
     Name = info.GetValue("Name", typeof(String)) as String;
     mSprite = info.GetValue("mSprite", typeof(Sprite)) as Sprite;
     Stats = info.GetValue("Stats", typeof(CharactStats)) as CharactStats;
     Attacks = info.GetValue("Attacks", typeof(List<SpecialAttack>)) as List<SpecialAttack>;
     Drop = info.GetValue("Drop", typeof(ItemObject)) as ItemObject;
     DropRate = (Int32)info.GetValue("DropRate", typeof(Int32));
 }
Esempio n. 2
0
 public Monster()
 {
     Name = "Monstre";
     mSprite = new Sprite();
     Stats = new CharactStats();
     Attacks = new List<SpecialAttack>();
     Drop = new ItemObject();
     DropRate = 0;
 }
Esempio n. 3
0
        public void SetStats(CharactStats stats)
        {
            NUM_HP.Value = stats.HP;
            NUM_MP.Value = stats.MP;
            NUM_STR.Value = stats.STR;
            NUM_DEF.Value = stats.DEF;
            NUM_INT.Value = stats.INT;
            NUM_RES.Value = stats.RES;

            Element_Select_Primary.CurrentElement = stats.PrimaryElement;
            Element_Select_Weakness.CurrentElement = stats.WeaknessElement;

            NUM_EXP.Value = stats.EXP;
            NUM_MONEY.Value = stats.MONEY;
        }
Esempio n. 4
0
        public CharactStats GenerateStats()
        {
            CharactStats stats = new CharactStats();

            stats.HP = Convert.ToInt32(NUM_HP.Value);
            stats.MP = Convert.ToInt32(NUM_MP.Value);
            stats.STR = Convert.ToInt32(NUM_STR.Value);
            stats.DEF = Convert.ToInt32(NUM_DEF.Value);
            stats.INT = Convert.ToInt32(NUM_INT.Value);
            stats.RES = Convert.ToInt32(NUM_RES.Value);

            stats.PrimaryElement = Element_Select_Primary.CurrentElement;
            stats.WeaknessElement = Element_Select_Weakness.CurrentElement;

            stats.EXP = Convert.ToInt32(NUM_EXP.Value);
            stats.MONEY = Convert.ToInt32(NUM_MONEY.Value);

            return stats;
        }
Esempio n. 5
0
        public ItemObject()
        {
            Name = "Nouvel Objet";
            Description = "Objet inconnu";

            HPPercent = 0;
            HPRecovery = 0;
            MPPercent = 0;
            MPRecovery = 0;

            Ephemeral = true;
            Price = 500;
            Unique = false;
            Weight = 5;

            Target = TargetType.Attaquant;
            StatusClear = new List<StatusEffect>();

            PermaChange = new CharactStats();
        }
Esempio n. 6
0
        public ItemObject(SerializationInfo info, StreamingContext context)
        {
            Name = (String)info.GetValue("Name", typeof(String));
            Description = (String)info.GetValue("Desc", typeof(String));
            Icon = (pIcon)info.GetValue("Icon", typeof(pIcon));

            HPRecovery = (Int32)info.GetValue("HPRecovery", typeof(Int32));
            MPRecovery = (Int32)info.GetValue("MPRecovery", typeof(Int32));
            HPPercent = (Int32)info.GetValue("HPPercent", typeof(Int32));
            MPPercent = (Int32)info.GetValue("MPPercent", typeof(Int32));

            Ephemeral = (Boolean)info.GetValue("Ephemeral", typeof(Boolean));
            Price = (Int32)info.GetValue("Price", typeof(Int32));
            Unique = (Boolean)info.GetValue("Unique", typeof(Boolean));
            Weight = (Int32)info.GetValue("Weight", typeof(Int32));

            Target = (TargetType)info.GetValue("Target", typeof(TargetType));
            StatusClear = (List<StatusEffect>)info.GetValue("StatusClear", typeof(List<StatusEffect>));

            PermaChange = (CharactStats)info.GetValue("PermaChange", typeof(CharactStats));
        }