Beispiel #1
0
        public Player()
        {
            //this.HubGuid = id;
            this.Type = PlayerTypes.Player;
            //this.Email = email;
            //this.Password = password;

            ////info
            //this.Name = name;
            //this.Gender = gender;
            //this.Race = race;
            //this.SelectedClass = selectedClass;
            this.Level                 = 1;
            this.Description           = this.Description ?? "You see nothing special about them.";
            this.AlignmentScore        = 0;
            this.TotalExperience       = 0;
            this.Experience            = 0;
            this.ExperienceToNextLevel = 1000; // create class to work out
            this.HitPoints             = 100;  // class to workout
            this.MaxHitPoints          = 100;
            this.ManaPoints            = 50;
            this.MaxManaPoints         = 50;
            this.MovePoints            = 60;
            this.MaxMovePoints         = 60;
            this.Explored              = 1;
            this.HitRoll               = 1;
            this.DamRoll               = 1;
            this.Wimpy                 = 10;
            this.Hours                 = 0;
            this.Weight                = 0;
            this.MaxWeight             = 70;                    // class to workout
            this.Status                = PlayerStatus.Standing; // enum property? 1 standing
            this.Target                = null;
            this.Inventory             = this.Inventory ?? (this.Inventory = new List <Item>());


            var dagger = new Core.Item.Item
            {
                actions    = new Core.Item.Action(),
                name       = "Blunt dagger",
                eqSlot     = Core.Item.Item.EqSlot.Wielded,
                weaponType = Core.Item.Item.WeaponType.ShortBlades,
                stats      = new Core.Item.Stats {
                    damMin = 2, damMax = 4, minUsageLevel = 1, damRoll = 0
                },
                type       = Core.Item.Item.ItemType.Weapon,
                equipable  = true,
                attackType = Core.Item.Item.AttackType.Pierce,
                slot       = Item.EqSlot.Wielded,
                location   = Item.ItemLocation.Inventory
            };



            this.Skills = this.Skills = new List <Skill>();

            var punch = Punch.PunchAb();

            punch.Proficiency = 1;


            this.Skills.Add(punch);
            //this.Skills.Add(shortBlades);



            //kills
            this.MobKills  = 0;
            this.MobDeaths = 0;
            this.Pkills    = 0;
            this.PkDeaths  = 0;
            this.PkPoints  = 0;

            //Money
            this.Gold   = 0;
            this.Silver = 5;
            this.Copper = 100;

            //Location
            this.Region = "Tutorial";
            this.Area   = "Tutorial";
            this.AreaId = 0;

            //Eq
            this.Equipment          = this.Equipment ?? (this.Equipment = new Equipment());
            this.Equipment.Floating = this.Equipment.Floating;
            this.Equipment.Head     = Equipment.Head;
            this.Equipment.Face     = Equipment.Face;
            this.Equipment.Neck     = Equipment.Neck;
            this.Equipment.Neck2    = Equipment.Neck2;
            this.Equipment.Body     = Equipment.Body;
            this.Equipment.Waist    = Equipment.Waist;
            this.Equipment.Legs     = Equipment.Legs;
            this.Equipment.Feet     = Equipment.Feet;

            this.Practices   = 10;
            this.Trains      = 10;
            this.KnownByName = true;

            this.QuestLog = new List <Quest>();

            this.EventWake         = "";
            this.EventOnEnter      = "";
            this.EventOnComunicate = new Dictionary <string, string>();

            var recall = new Recall
            {
                Area   = "Anker",
                AreaId = 0,
                Region = "Anker"
            };


            this.Recall = recall;
        }
Beispiel #2
0
        public Player()
        {
            //this.HubGuid = id;
            this.Type = PlayerTypes.Player;
            //this.Email = email;
            //this.Password = password;

            ////info
            //this.Name = name;
            //this.Gender = gender;
            //this.Race = race;
            //this.SelectedClass = selectedClass;
            this.Level                 = 1;
            this.Description           = this.Description ?? "You see nothing special about them.";
            this.AlignmentScore        = 0;
            this.Experience            = 0;
            this.ExperienceToNextLevel = 1000; // create class to work out
            this.HitPoints             = 100;  // class to workout
            this.MaxHitPoints          = 100;
            this.ManaPoints            = 50;
            this.MaxManaPoints         = 50;
            this.MovePoints            = 60;
            this.MaxMovePoints         = 60;
            this.Explored              = 1;
            this.HitRoll               = 1;
            this.DamRoll               = 1;
            this.Wimpy                 = 10;
            this.Hours                 = 0;
            this.Weight                = 0;
            this.MaxWeight             = 70;                    // class to workout
            this.Status                = PlayerStatus.Standing; // enum property? 1 standing
            this.Target                = null;
            this.Inventory             = this.Inventory ?? (this.Inventory = new List <Item>());



            var dagger = new Core.Item.Item
            {
                actions    = new Core.Item.Action(),
                name       = "Blunt dagger",
                eqSlot     = Core.Item.Item.EqSlot.Wield,
                weaponType = Core.Item.Item.WeaponType.ShortBlades,
                stats      = new Core.Item.Stats {
                    damMin = 2, damMax = 4, minUsageLevel = 1, damRoll = 0
                },
                type       = Core.Item.Item.ItemType.Weapon,
                equipable  = true,
                attackType = Core.Item.Item.AttackType.Pierce,
                slot       = Item.EqSlot.Wield,
                location   = Item.ItemLocation.Inventory
            };

            this.Inventory.Add(dagger);

            this.Skills = this.Skills = new List <Skill>();

            var punch = Punch.PunchAb();

            punch.Proficiency = 0.1;


            this.Skills.Add(punch);
            //this.Skills.Add(shortBlades);



            //kills
            this.MobKills  = 0;
            this.MobDeaths = 0;
            this.Pkills    = 0;
            this.PkDeaths  = 0;
            this.PkPoints  = 0;

            //Money
            this.Gold   = 0;
            this.Silver = 5;
            this.Copper = 100;

            //Location
            this.Region = "Anker";
            this.Area   = "Anker";
            this.AreaId = 0;

            //Eq
            this.Equipment             = this.Equipment ?? (this.Equipment = new Equipment());
            this.Equipment.Floating    = this.Equipment.Floating;
            this.Equipment.Head        = Equipment.Head;
            this.Equipment.Face        = Equipment.Face;
            this.Equipment.Eyes        = Equipment.Eyes;
            this.Equipment.LeftEar     = Equipment.LeftEar;
            this.Equipment.RightEar    = Equipment.RightEar;
            this.Equipment.Neck        = Equipment.Neck;
            this.Equipment.Neck2       = Equipment.Neck2;
            this.Equipment.Cloak       = Equipment.Cloak;
            this.Equipment.AboutBody   = Equipment.AboutBody;
            this.Equipment.Body        = Equipment.Body;
            this.Equipment.Waist       = Equipment.Waist;
            this.Equipment.LeftSheath  = Equipment.LeftSheath;
            this.Equipment.RightSheath = Equipment.RightSheath;
            this.Equipment.BackSheath  = Equipment.BackSheath;
            this.Equipment.Back        = Equipment.Back;
            this.Equipment.LeftWrist   = Equipment.LeftWrist;
            this.Equipment.RightWrist  = Equipment.RightWrist;
            this.Equipment.LeftHand    = Equipment.LeftHand;
            this.Equipment.RightHand   = Equipment.RightHand;
            this.Equipment.LeftRing    = Equipment.LeftRing;
            this.Equipment.RightRing   = Equipment.RightRing;
            this.Equipment.Legs        = Equipment.Legs;
            this.Equipment.Feet        = Equipment.Feet;


            //attributes

            //this.Strength = strength;
            //this.Dexterity = dexterity;
            //this.Constitution = constitution;
            //this.Wisdom = wisdom;
            //this.Intelligence = intelligence;
            //this.Charisma = charisma;
        }