public Player(string name, AbilityScores abilityScores, string race, string pClass, int level, int xp, int hp, int mp, int hunger, List <Item> inv)
 {
     this.Name          = name;
     this.AbilityScores = abilityScores;
     this.Race          = race;
     this.PClass        = pClass;
     this.Level         = level;
     this.XP            = xp;
     this.HP            = hp;
     this.MP            = mp;
     this.Hunger        = hunger;
     this.Status        = new Status();
     this.Inv           = inv;
     this.Equip         = new Dictionary <string, Item[]>()
     {
         { "Head", new Item[1] },
         { "Face", new Item[1] },
         { "Torso", new Item[1] },
         { "Back", new Item[1] },
         { "Neck", new Item[1] },
         { "Arm", new Item[1] },
         { "Hand", new Item[1] },
         { "Rings", new Item[2] },
         { "Body", new Item[1] },
         { "Waist", new Item[1] },
         { "Legs", new Item[1] },
         { "Main hand", new Item[1] },
         { "Off hand", new Item[1] }
     };
     this.BaseAc      = 10 + abilityScores.ScoreMod("dex");
     this.Coordinates = new int[] { 0, 0, 0 };
     this.Location    = 0;
 }
Beispiel #2
0
        public Player AddPlayer(string name, string race, string pclass, int level, int xp, int hp, int mp, int hunger, List <Item> inv, int str, int dex, int con, int wis, int intel, int chr, int lck)
        {
            AbilityScores abilityScores = new AbilityScores(str, dex, con, wis, intel, chr, lck);
            Player        newPlayer     = new Player(name, abilityScores, race, pclass, level, xp, hp, mp, hunger, inv);

            return(newPlayer);
        }
Beispiel #3
0
        public Monster AddMonster(int id, string name, string mainType, int level, int hp, int mp, List <Item> inv, List <string> behaviors, int str, int dex, int con, int wis, int intel, int chr, int lck, string description)
        {
            AbilityScores abilityScores = new AbilityScores(str, dex, con, wis, intel, chr, lck);
            Monster       newMonster    = new Monster(id, name, abilityScores, mainType, level, hp, mp, inv, behaviors, description);

            return(newMonster);
        }
 public Monster(int id, string name, AbilityScores abilityScores, string mainType, int level, int hp, int mp, List <Item> inv, List <string> behaviors, string description)
 {
     // super();
     this.Id            = id;
     this.Name          = name;
     this.AbilityScores = abilityScores;
     this.Type          = new Dictionary <string, string>()
     {
         { "main", mainType }
     };
     this.Level  = level;
     this.HP     = hp;
     this.MP     = mp;
     this.Status = new Status();
     this.Inv    = inv;
     this.Equip  = new Dictionary <string, Item[]>()
     {
         { "Head", new Item[1] },
         { "Face", new Item[1] },
         { "Torso", new Item[1] },
         { "Back", new Item[1] },
         { "Neck", new Item[1] },
         { "Arm", new Item[1] },
         { "Hand", new Item[1] },
         { "Rings", new Item[2] },
         { "Body", new Item[1] },
         { "Waist", new Item[1] },
         { "Legs", new Item[1] },
         { "Main hand", new Item[1] },
         { "Off hand", new Item[1] }
     };
     this.BaseAc      = 10 + abilityScores.ScoreMod("Dex");
     this.Behaviors   = behaviors;
     this.Description = description;
 }