Ejemplo n.º 1
0
        public Result(Age a, Sex s, Profession p, Education e, YesNo cit, 
		               List<Technology> tech, Frequency pub, Frequency home,
		               NumPass single, List<PassType> passType, Frequency pChange,
		               YesNo sharePass,YesNo pSecure, YesNo passHome,YesNo pMobile, 
		               YesNo hWifiPass, YesNo hWifiFire, YesNo hVirusSoftware, YesNo softUpdate, 
		               SecureLevel sLevel, SharePersonalInfo postPersonal, Frequency pWifi)
        {
            m_age = a;
            m_sex = s;
            m_profession = p;
            m_education = e;
            m_usCitizen = cit;
            m_technologyList = tech;
            m_publicComputer = pub;
            m_homeComputer = home;
            m_singlePass = single;
            m_passType = passType;
            m_passChangeFreq = pChange;
            m_sharePassword = sharePass;
            m_passSecure = pSecure;
            m_passHomePC = passHome;
            m_passForMobile = pMobile;
            m_homeWifiPass = hWifiPass;
            m_homeWifiFirewall = hWifiFire;
            m_homeVirusSoftware = hVirusSoftware;
            m_softwareUpdates = softUpdate;
            m_securityLevel = sLevel;
            m_postPersonalInfo = postPersonal;
            m_publicWifi = pWifi;
        }
Ejemplo n.º 2
0
 public BuildModel(int id,string name,string description,Profession prof,string link,bool valid,string nomCreateur,string role)
 {
     Id = id;
     Name = name;
     Description = description;
     Class = prof;
     Link = link;
 }
        public void SetAvailableProfession(Profession profession, bool value)
        {
            _availableProfessions[profession] = value;

                        if (Game.State == GameState.Playing)
                        {
                                SendUpdateAvailableProfessionsPacket();
                        }
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Initilitation of a new pvpgame object.
 /// </summary>
 /// <param name="id">The game's UUID.</param>
 /// <param name="map_id">The map the match was played on, cross-referenced from /v2/maps.</param>
 /// <param name="started">A timestamp of when the match started.</param>
 /// <param name="ended">A timestamp of when the match ended.</param>
 /// <param name="result">The result of the match.</param>
 /// <param name="team">The team the player was on during the match.</param>
 /// <param name="profession">The profession the player was playing during the match.</param>
 /// <param name="scores">The ending score of the teams.</param>
 public PvpGame(string id, int map_id, DateTime started, DateTime ended, string result, Team team, Profession profession, Score scores)
 {
     Id = id;
     MapId = map_id;
     Started = started;
     Ended = ended;
     Result = result;
     Team = team;
     Profession = profession;
     Score = scores;
 }
Ejemplo n.º 5
0
	void OnProfessionClick(Profession p)
	{
		profession = p;
		foreach (var b in professionSprites)
			b.Value.SetActive(b.Key == profession);
		GameObject.Find("wiDesc").GetComponent<TweenColor>().ResetToBeginning();
		GameObject.Find("wiDesc").GetComponent<TweenPosition>().ResetToBeginning();
		GameObject.Find("wiDesc").GetComponent<TweenColor>().PlayForward();
		GameObject.Find("wiDesc").GetComponent<TweenPosition>().PlayForward();
		CreateAvatar();
	}
Ejemplo n.º 6
0
        /// <summary>Initializes a new instance of the <see cref="T:TrailEntities.Entities.Person" /> class.</summary>
        /// <param name="profession">The profession.</param>
        /// <param name="name">The name.</param>
        /// <param name="leader">The is Leader.</param>
        public Person(Profession profession, string name, bool leader)
        {
            // Person needs a name, profession, and need to know if they are the leader.
            Profession = profession;
            Name = name;
            Leader = leader;

            // Person starts with clean bill of health.
            Infected = false;
            Injured = false;
            Status = (int) HealthStatus.Good;
        }
Ejemplo n.º 7
0
 public static int ProfessionToIndex(Profession p) {
     int                                        s =  0;
     if      (p == Profession.Alchemy       ) { s =  1;
     }else if(p == Profession.Blacksmithing ) { s =  2;
     }else if(p == Profession.Enchanting    ) { s =  3;
     }else if(p == Profession.Engineering   ) { s =  4;
     }else if(p == Profession.Herbalism     ) { s =  5;
     }else if(p == Profession.Inscription   ) { s =  6;
     }else if(p == Profession.Jewelcrafting ) { s =  7;
     }else if(p == Profession.Leatherworking) { s =  8;
     }else if(p == Profession.Mining        ) { s =  9;
     }else if(p == Profession.Skinning      ) { s = 10;
     }else if(p == Profession.Tailoring     ) { s = 11; }
     return s;
 }
Ejemplo n.º 8
0
 public static string ProfessionToString(Profession p) {
     string                                     s = "None";
     if      (p == Profession.Alchemy       ) { s = "Alchemy";
     }else if(p == Profession.Blacksmithing ) { s = "Blacksmithing";
     }else if(p == Profession.Enchanting    ) { s = "Enchanting";
     }else if(p == Profession.Engineering   ) { s = "Engineering";
     }else if(p == Profession.Herbalism     ) { s = "Herbalism";
     }else if(p == Profession.Inscription   ) { s = "Inscription";
     }else if(p == Profession.Jewelcrafting ) { s = "Jewelcrafting";
     }else if(p == Profession.Leatherworking) { s = "Leatherworking";
     }else if(p == Profession.Mining        ) { s = "Mining";
     }else if(p == Profession.Skinning      ) { s = "Skinning";
     }else if(p == Profession.Tailoring     ) { s = "Tailoring"; }
     return s;
 }
Ejemplo n.º 9
0
    public static void Main()
    {
        //declare delegate reference (== null)
        Profession p;
        //instantiate delegate reference
        p = new Profession(ProfessionSpeaker.StaticSpeaker);
        p();

        ProfessionSpeaker s1 = new ProfessionSpeaker();
        ProfessionSpeaker s2 = new ProfessionSpeaker();

        //"instantiate" to specific instances
        Profession p1 = new Profession(s1.InstanceSpeaker);
        Profession p2 = new Profession(s2.InstanceSpeaker);

        p1();
        p2();

        //Won't compile, different signature
        //Profession p3 = new Profession(
        //   s2.DifferentSignature);
        System.Console.ReadKey();
    }
Ejemplo n.º 10
0
 /// <summary>
 /// Updating AllowedSkills property for custom professions
 /// </summary>
 public void UpdateAllowedSkills()
 {
     if (profession.Title == "Custom")
     {
         profession = new Profession(profession.Title);
         profession.AllowedSkills.ClearAll();
         foreach (var skill in laborSkills)
             if (skill.IsAllowed) profession.AllowedSkills.AddSkill(skill.Type);
     }
 }
Ejemplo n.º 11
0
 public void DeleteProfession(Profession profession)
 {
     _context.Entry(profession).State = EntityState.Deleted;
 }
Ejemplo n.º 12
0
        private HonoplayDbContext InitAndGetDbContext(out Guid tenantId, out int adminUserId, out int trainingId, out int trainerUserId, out int classroomId)
        {
            var context = GetDbContext();

            var salt      = ByteArrayExtensions.GetRandomSalt();
            var adminUser = new AdminUser
            {
                Id           = 1,
                Email        = "*****@*****.**",
                Password     = "******".GetSHA512(salt),
                PasswordSalt = salt,
                LastPasswordChangeDateTime = DateTime.Today.AddDays(-5),
            };

            context.AdminUsers.Add(adminUser);

            var tenant = new Tenant
            {
                Name     = "TestTenant#01",
                HostName = "localhost"
            };

            context.Tenants.Add(tenant);

            context.TenantAdminUsers.Add(new TenantAdminUser
            {
                TenantId    = tenant.Id,
                AdminUserId = adminUser.Id,
                UpdatedBy   = adminUser.Id
            });

            var trainingSeries = new TrainingSeries
            {
                TenantId  = tenant.Id,
                UpdatedBy = adminUser.Id,
                Name      = "testSeries"
            };

            context.TrainingSerieses.Add(trainingSeries);

            var trainingCategory = new TrainingCategory
            {
                UpdatedBy   = adminUser.Id,
                Description = "test",
                Name        = "sample",
            };

            context.TrainingCategories.Add(trainingCategory);

            var training = new Training
            {
                UpdatedBy          = adminUser.Id,
                BeginDateTime      = DateTimeOffset.Now,
                Description        = "test",
                EndDateTime        = DateTimeOffset.Now.AddDays(5),
                TrainingCategoryId = trainingCategory.Id,
                TrainingSeriesId   = trainingSeries.Id,
                Name = "sample"
            };

            context.Trainings.Add(training);

            var department = new Department
            {
                TenantId  = tenant.Id,
                UpdatedBy = adminUser.Id,
                Name      = "sampleDepartment"
            };

            context.Departments.Add(department);

            var profession = new Profession
            {
                TenantId  = tenant.Id,
                UpdatedBy = adminUser.Id,
                Name      = "testProfession"
            };

            context.Professions.Add(profession);

            var trainerUser = new TrainerUser
            {
                UpdatedBy    = adminUser.Id,
                Name         = "sample",
                DepartmentId = department.Id,
                Email        = "*****@*****.**",
                PhoneNumber  = "16846546544545",
                ProfessionId = profession.Id,
                Surname      = "test"
            };

            context.TrainerUsers.Add(trainerUser);

            var classroom = new Classroom
            {
                CreatedBy     = adminUser.Id,
                Name          = "test",
                TrainerUserId = trainerUser.Id,
                TrainingId    = training.Id,
            };

            context.Classrooms.Add(classroom);
            context.SaveChanges();

            adminUserId   = adminUser.Id;
            tenantId      = tenant.Id;
            trainingId    = training.Id;
            trainerUserId = trainerUser.Id;
            classroomId   = classroom.Id;

            return(context);
        }
Ejemplo n.º 13
0
 public Profession Add(Profession newProfession)
 {
     _context.Profession.Add(newProfession);
     _context.SaveChanges();
     return(newProfession);
 }
Ejemplo n.º 14
0
 public void SetAvailableProfession(Profession profession, bool value)
 {
     _availableProfessions.SetAvailableProfession(profession, value);
 }
Ejemplo n.º 15
0
        /// <summary>
        /// </summary>
        /// <param name="profession">
        /// </param>
        /// <returns>
        /// </returns>
        public string GetRandomName(Profession profession)
        {
            var random = new Random();
            byte randomNameLength = 0;
            var randomLength = (byte)random.Next(3, 8);
            var sb = new StringBuilder();
            while (randomNameLength <= randomLength)
            {
                if (random.Next(14) > 4)
                {
                    sb.Append(optionalOrdCon.Substring(random.Next(0, 18), 1));
                    randomNameLength++;
                }

                sb.Append(mandatoryVowel.Substring(random.Next(0, 4), 1));
                randomNameLength++;

                if (random.Next(14) <= 4)
                {
                    continue;
                }

                sb.Append(optionalOrdEnd.Substring(random.Next(0, 8), 1));
                randomNameLength++;
            }

            string name = sb.ToString();
            name = char.ToUpper(name[0]) + name.Substring(1);
            return name;
        }
Ejemplo n.º 16
0
 public void Addprofession(Profession profession)
 {
     _unitOfWork.professions.Add(profession);
 }
Ejemplo n.º 17
0
 public PlayerCharacter(string name, Profession profession, IReadOnlyList <LogData> logs)
 {
     Name       = name;
     Profession = profession;
     Logs       = logs;
 }
Ejemplo n.º 18
0
 public static bool SetPriorityDirectly_Prefix(Profession __instance, int priority)
 {
     __instance.SetPropertyValue("priority", Mathf.Clamp(priority, 0, MaxPriority));
     return(false);
 }
Ejemplo n.º 19
0
        public IActionResult GetProffesionById([FromForm] Profession proffesion)
        {
            var data = _saveData.GetProffesionById(proffesion.Guid);

            return(Ok(data));
        }
Ejemplo n.º 20
0
        /// <summary>
        /// 登录操作
        /// </summary>
        /// <param name="stuAccount"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        public Student Login(string stuAccount, string pwd)
        {
            DataSet dds = dao.Select(stuAccount);

            //string  stuPwd = ds.Tables[0].Rows[0]["stuPwd"].ToString();
            if (dds != null && dds.Tables[0].Rows.Count == 1)
            {
                DataRow          row = dds.Tables[0].Rows[0];
                RSACryptoService rsa = new RSACryptoService();
                if (row["stuAccount"].ToString() == stuAccount && rsa.Decrypt(row["stuPwd"].ToString()) == pwd)
                {
                    Student    student    = new Student();
                    Profession profession = new Profession();
                    College    college    = new College();
                    DataSet    ds         = dao.GetStudent(stuAccount);
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        if (ds.Tables[0].Rows[0]["stuAccount"].ToString() != "")
                        {
                            student.StuAccount = ds.Tables[0].Rows[0]["stuAccount"].ToString();
                        }
                        if (ds.Tables[0].Rows[0]["stuPwd"].ToString() != "")
                        {
                            student.StuPwd = rsa.Decrypt(ds.Tables[0].Rows[0]["stuPwd"].ToString());
                        }
                        if (ds.Tables[0].Rows[0]["realName"].ToString() != "")
                        {
                            student.RealName = ds.Tables[0].Rows[0]["realName"].ToString();
                        }
                        if (ds.Tables[0].Rows[0]["sex"].ToString() != "")
                        {
                            student.Sex = ds.Tables[0].Rows[0]["sex"].ToString();
                        }
                        if (ds.Tables[0].Rows[0]["phone"].ToString() != "")
                        {
                            student.Phone = ds.Tables[0].Rows[0]["phone"].ToString();
                        }
                        if (ds.Tables[0].Rows[0]["Email"].ToString() != "")
                        {
                            student.Email = ds.Tables[0].Rows[0]["Email"].ToString();
                        }
                        if (ds.Tables[0].Rows[0]["proId"].ToString() != "")
                        {
                            profession.ProId = int.Parse(ds.Tables[0].Rows[0]["proId"].ToString());
                        }
                        if (ds.Tables[0].Rows[0]["proName"].ToString() != "")
                        {
                            profession.ProName = ds.Tables[0].Rows[0]["proName"].ToString();
                        }
                        if (ds.Tables[0].Rows[0]["collegeId"].ToString() != "")
                        {
                            college.ColID = int.Parse(ds.Tables[0].Rows[0]["collegeId"].ToString());
                        }
                        if (ds.Tables[0].Rows[0]["collegeName"].ToString() != "")
                        {
                            college.ColName = ds.Tables[0].Rows[0]["collegeName"].ToString();
                        }
                        if (profession != null)
                        {
                            student.profession = profession;
                        }
                        if (college != null)
                        {
                            student.college = college;
                        }
                    }
                    //填充属性
                    return(student);
                }
            }
            return(null);
        }
Ejemplo n.º 21
0
        /// <summary>
        /// 得到学生实体对象
        /// </summary>
        /// <param name="TeaAccount">学生账号</param>
        /// <returns>学生实体</returns>
        public Student GetModel(String stuAccount)
        {
            Student          student    = new Student();
            Profession       profession = new Profession();
            College          college    = new College();
            DataSet          ds         = dao.GetStudent(stuAccount);
            RSACryptoService rsa        = new RSACryptoService();

            if (ds.Tables[0].Rows.Count > 0)
            {
                if (ds.Tables[0].Rows[0]["stuAccount"].ToString() != "")
                {
                    student.StuAccount = ds.Tables[0].Rows[0]["stuAccount"].ToString();
                }
                if (ds.Tables[0].Rows[0]["stuPwd"].ToString() != "")
                {
                    student.StuPwd = rsa.Decrypt(ds.Tables[0].Rows[0]["stuPwd"].ToString());
                }
                if (ds.Tables[0].Rows[0]["realName"].ToString() != "")
                {
                    student.RealName = ds.Tables[0].Rows[0]["realName"].ToString();
                }
                if (ds.Tables[0].Rows[0]["sex"].ToString() != "")
                {
                    student.Sex = ds.Tables[0].Rows[0]["sex"].ToString();
                }
                if (ds.Tables[0].Rows[0]["phone"].ToString() != "")
                {
                    student.Phone = ds.Tables[0].Rows[0]["phone"].ToString();
                }
                if (ds.Tables[0].Rows[0]["Email"].ToString() != "")
                {
                    student.Email = ds.Tables[0].Rows[0]["Email"].ToString();
                }
                if (ds.Tables[0].Rows[0]["proId"].ToString() != "")
                {
                    profession.ProId = int.Parse(ds.Tables[0].Rows[0]["proId"].ToString());
                }
                if (ds.Tables[0].Rows[0]["proName"].ToString() != "")
                {
                    profession.ProName = ds.Tables[0].Rows[0]["proName"].ToString();
                }
                if (ds.Tables[0].Rows[0]["collegeId"].ToString() != "")
                {
                    college.ColID = int.Parse(ds.Tables[0].Rows[0]["collegeId"].ToString());
                }
                if (ds.Tables[0].Rows[0]["collegeName"].ToString() != "")
                {
                    college.ColName = ds.Tables[0].Rows[0]["collegeName"].ToString();
                }
                if (profession != null)
                {
                    student.profession = profession;
                }
                if (college != null)
                {
                    student.college = college;
                }
            }
            return(student);
        }
Ejemplo n.º 22
0
        public async Task <ActionResult <List <BasicEmployeeDetailsDTO> > > GetEmployees([FromQuery] Profession profession, Specialization?specialization)
        {
            var employees = await _employeeService.GetUsers(profession, specialization);

            return(Ok(employees));
        }
Ejemplo n.º 23
0
 public GnomeProfession(Profession profession)
 {
     Name = profession.Title;
     Skills = profession.AllowedSkills.AllowedSkills.ToArray();
 }
Ejemplo n.º 24
0
		public static TableAvatar Where(Profession profession, bool sexman)
		{
			var pro = (uint)profession;
			var sex = sexman ? 1 : 2;
			return (from i in Table.Query<TableAvatar>() where i.profession == pro && i.sex == sex select i).First();
		}
Ejemplo n.º 25
0
 public void Updateprofession(int professionId, Profession profession)
 {
     _unitOfWork.professions.Update(professionId, profession);
 }
Ejemplo n.º 26
0
 public Person(String name, String value, int age, Profession job) {
    this.name = name;
    this.value = value;
    this.age  = age;
    this.job = job;
 }
Ejemplo n.º 27
0
 /// <summary>
 /// Created to save Profesion. Since cant save a derived class will create a prof instance and will
 /// copy all attribute
 /// </summary>
 void SaveProfesion(Person personToSave)
 {
     ProfessionProp = new Profession(personToSave.ProfessionProp);
 }
Ejemplo n.º 28
0
        /// <summary>This overload is used from optimizer and is optimized for performance, do not modify</summary>
        public Character(Character baseCharacter, object[] items, int count)
        {
            IsLoading = true;
            _name = baseCharacter._name;
            _realm = baseCharacter._realm;
            _region = baseCharacter._region;
            _race = baseCharacter._race;
            _currentModel = baseCharacter._currentModel;
            _calculationOptions = baseCharacter._calculationOptions;
            _primaryProfession = baseCharacter._primaryProfession;
            _secondaryProfession = baseCharacter._secondaryProfession;
            _class = baseCharacter._class;
            AssignAllTalentsFromCharacter(baseCharacter, false);
            CalculationToOptimize = baseCharacter.CalculationToOptimize;
            OptimizationRequirements = baseCharacter.OptimizationRequirements;
            _bossOptions = baseCharacter._bossOptions;
            _faction = baseCharacter._faction;

            _item = new ItemInstance[SlotCount];
            Array.Copy(items, _item, count);

            IsLoading = false;
            ActiveBuffs = new List<Buff>(baseCharacter.ActiveBuffs);
            RecalculateSetBonuses();
        }
Ejemplo n.º 29
0
        public string GetTinyProfessionIconUrl(Profession profession, EliteSpecialization specialization)
        {
            if (specialization == EliteSpecialization.None)
            {
                switch (profession)
                {
                case Profession.Warrior:
                    return("https://wiki.guildwars2.com/images/4/43/Warrior_tango_icon_20px.png");

                case Profession.Guardian:
                    return("https://wiki.guildwars2.com/images/8/8c/Guardian_tango_icon_20px.png");

                case Profession.Revenant:
                    return("https://wiki.guildwars2.com/images/b/b5/Revenant_tango_icon_20px.png");

                case Profession.Ranger:
                    return("https://wiki.guildwars2.com/images/4/43/Ranger_tango_icon_20px.png");

                case Profession.Thief:
                    return("https://wiki.guildwars2.com/images/7/7a/Thief_tango_icon_20px.png");

                case Profession.Engineer:
                    return("https://wiki.guildwars2.com/images/2/27/Engineer_tango_icon_20px.png");

                case Profession.Necromancer:
                    return("https://wiki.guildwars2.com/images/4/43/Necromancer_tango_icon_20px.png");

                case Profession.Elementalist:
                    return("https://wiki.guildwars2.com/images/a/aa/Elementalist_tango_icon_20px.png");

                case Profession.Mesmer:
                    return("https://wiki.guildwars2.com/images/6/60/Mesmer_tango_icon_20px.png");

                default:
                    throw new ArgumentOutOfRangeException(nameof(profession));
                }
            }

            switch (specialization)
            {
            case EliteSpecialization.Berserker:
                return("https://wiki.guildwars2.com/images/d/da/Berserker_tango_icon_20px.png");

            case EliteSpecialization.Spellbreaker:
                return("https://wiki.guildwars2.com/images/e/ed/Spellbreaker_tango_icon_20px.png");

            case EliteSpecialization.Dragonhunter:
                return("https://wiki.guildwars2.com/images/c/c9/Dragonhunter_tango_icon_20px.png");

            case EliteSpecialization.Firebrand:
                return("https://wiki.guildwars2.com/images/0/02/Firebrand_tango_icon_20px.png");

            case EliteSpecialization.Herald:
                return("https://wiki.guildwars2.com/images/6/67/Herald_tango_icon_20px.png");

            case EliteSpecialization.Renegade:
                return("https://wiki.guildwars2.com/images/7/7c/Renegade_tango_icon_20px.png");

            case EliteSpecialization.Druid:
                return("https://wiki.guildwars2.com/images/d/d2/Druid_tango_icon_20px.png");

            case EliteSpecialization.Soulbeast:
                return("https://wiki.guildwars2.com/images/7/7c/Soulbeast_tango_icon_20px.png");

            case EliteSpecialization.Daredevil:
                return("https://wiki.guildwars2.com/images/e/e1/Daredevil_tango_icon_20px.png");

            case EliteSpecialization.Deadeye:
                return("https://wiki.guildwars2.com/images/c/c9/Deadeye_tango_icon_20px.png");

            case EliteSpecialization.Scrapper:
                return("https://wiki.guildwars2.com/images/b/be/Scrapper_tango_icon_20px.png");

            case EliteSpecialization.Holosmith:
                return("https://wiki.guildwars2.com/images/2/28/Holosmith_tango_icon_20px.png");

            case EliteSpecialization.Reaper:
                return("https://wiki.guildwars2.com/images/1/11/Reaper_tango_icon_20px.png");

            case EliteSpecialization.Scourge:
                return("https://wiki.guildwars2.com/images/0/06/Scourge_tango_icon_20px.png");

            case EliteSpecialization.Tempest:
                return("https://wiki.guildwars2.com/images/4/4a/Tempest_tango_icon_20px.png");

            case EliteSpecialization.Weaver:
                return("https://wiki.guildwars2.com/images/f/fc/Weaver_tango_icon_20px.png");

            case EliteSpecialization.Chronomancer:
                return("https://wiki.guildwars2.com/images/f/f4/Chronomancer_tango_icon_20px.png");

            case EliteSpecialization.Mirage:
                return("https://wiki.guildwars2.com/images/d/df/Mirage_tango_icon_20px.png");

            default:
                throw new ArgumentOutOfRangeException(nameof(specialization));
            }
        }
Ejemplo n.º 30
0
 /// <summary>
 /// 获取职业地图信息
 /// 必须先填充List ProfessionDtInfo
 /// </summary>
 /// <param name="pro">职业</param>
 /// <returns>职业地图信息</returns>
 public ProfessionDtInfo GetProfessionDtInfo(Profession pro)
 {
     //ProDtInfoList.Find(delegate(ProfessionDtInfo p) {return p.pro==pro; });
     return ProDtInfoList.Find(pInfo => pInfo.pro == pro);
 }
Ejemplo n.º 31
0
        public List <Profession> GetP()
        {
            Profession P = new Profession();

            return(P.Read());
        }
 public ProfessionData GetProfessionData(Profession profession)
 {
     return(professionDatas[profession.GetType()]);
 }
Ejemplo n.º 33
0
        public void Post([FromBody] Profession proffObj)
        {
            Profession P = new Profession();

            P.insertP(proffObj);
        }
Ejemplo n.º 34
0
    void InItData()
    {
        string     groupName = "";
        List <int> keys      = new List <int> ();

        prof = Profession.get((JobType)GamePlayer.Instance.GetIprop(PropertyType.PT_Profession), GamePlayer.Instance.GetIprop(PropertyType.PT_ProfessionLevel));
        bool isdeyi = false;

        foreach (int key in SkillData.GetAllData().Keys)
        {
            keys.Add(key);
        }
        for (int i = 0; i < keys.Count; i++)
        {
            groupName = SkillData.GetMinxiLevelData(keys[i])._Name;
            isdeyi    = prof.isProudSkill(GamePlayer.Instance.GetIprop(PropertyType.PT_Profession), keys[i], GamePlayer.Instance.GetIprop(PropertyType.PT_ProfessionLevel));

            if (groupName.Equals("null"))
            {
                continue;
            }
            if (SkillData.GetMinxiLevelData(keys[i])._Level != 1)
            {
                continue;
            }
            SkillData sdd = SkillData.GetMinxiLevelData(keys[i]);
            int       lev = prof.getSkilMaxLevel(sdd._Id);
            if (lev == 0)
            {
                continue;
            }
            if (isdeyi)
            {
                Pskillist.Add(SkillData.GetMinxiLevelData(keys[i]));
                //continue;
            }
            skillist.Add(SkillData.GetMinxiLevelData(keys[i]));
        }

        for (int i = 0; i < skillist.Count; i++)
        {
            if (skillist[i]._LearnGroup == 1)
            {
                ATskillist.Add(skillist[i]);
            }
            if (skillist[i]._LearnGroup == 2)
            {
                AMskillist.Add(skillist[i]);
            }
            if (skillist[i]._LearnGroup == 3)
            {
                Sskillist.Add(skillist[i]);
            }
            if (skillist[i]._LearnGroup == 4)
            {
                Askillist.Add(skillist[i]);
            }
//            if(skillist[i].LearnGroup_ == 5)
//            {
//                Pskillist.Add(skillist[i]);
//
//            }
//            if(skillist[i].LearnGroup_ == 6)
//            {
//                Fskillist.Add(skillist[i]);
//            }
        }
        ATskillist.Sort(SortPSkill);
        AMskillist.Sort(SortPSkill);
        Sskillist.Sort(SortPSkill);
        Askillist.Sort(SortPSkill);

        ATskillist.Sort(SortSkill);
        AMskillist.Sort(SortSkill);
        Sskillist.Sort(SortSkill);
        Askillist.Sort(SortSkill);



        ButtonToSelect(4);
        AddItem(Pskillist);
    }
Ejemplo n.º 35
0
 private async Task SaveReference(Profession Profession)
 {
 }
Ejemplo n.º 36
0
        /// <summary>
        /// 获得一个选题记录信息
        /// </summary>
        /// <param name="recordId">要获得的选题记录ID</param>
        /// <returns>返回一个类型为TitleRecord的选题记录对象</returns>
        public TitleRecord GetTitleRecord(int recordId)
        {
            try
            {
                string   cmdText = "select * from V_TitleRecord where titleRecordId = @titleRecordId";
                string[] param   = { "@titleRecordId" };
                object[] values  = { recordId };
                DataSet  ds      = db.FillDataSet(cmdText, param, values);

                TitleRecord titleRecord = new TitleRecord();
                Student     student     = new Student();
                Title       title       = new Title();
                Plan        plan        = new Plan();
                Profession  prodession  = new Profession();
                Teacher     teacher     = new Teacher();
                College     college     = new College();
                if (ds != null && ds.Tables[0].Rows.Count > 0)
                {
                    int i = ds.Tables[0].Rows.Count - 1;
                    if (ds.Tables[0].Rows[i]["titleRecordId"].ToString() != "" && ds.Tables[0].Rows[i]["titleRecordId"].ToString() == recordId.ToString())
                    {
                        titleRecord.TitleRecordId = int.Parse(ds.Tables[0].Rows[i]["titleRecordId"].ToString());
                        if (ds.Tables[0].Rows[i]["stuAccount"].ToString() != "")
                        {
                            student.StuAccount = ds.Tables[0].Rows[i]["stuAccount"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["titleId"].ToString() != "")
                        {
                            title.TitleId = int.Parse(ds.Tables[0].Rows[i]["titleId"].ToString());
                        }
                        if (ds.Tables[0].Rows[i]["realName"].ToString() != "")
                        {
                            student.RealName = ds.Tables[0].Rows[i]["realName"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["sex"].ToString() != "")
                        {
                            student.Sex = ds.Tables[0].Rows[i]["sex"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["phone"].ToString() != "")
                        {
                            student.Phone = ds.Tables[0].Rows[i]["phone"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["Email"].ToString() != "")
                        {
                            student.Email = ds.Tables[0].Rows[i]["Email"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["proId"].ToString() != "")
                        {
                            prodession.ProId = int.Parse(ds.Tables[0].Rows[i]["proId"].ToString());
                        }
                        if (ds.Tables[0].Rows[i]["proName"].ToString() != "")
                        {
                            prodession.ProName = ds.Tables[0].Rows[i]["proName"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["title"].ToString() != "")
                        {
                            title.title = ds.Tables[0].Rows[i]["title"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["titleContent"].ToString() != "")
                        {
                            title.TitleContent = ds.Tables[0].Rows[i]["titleContent"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["createTime"].ToString() != "")
                        {
                            title.CreateTime = DateTime.Parse(ds.Tables[0].Rows[i]["createTime"].ToString());
                        }
                        if (ds.Tables[0].Rows[i]["selected"].ToString() != "")
                        {
                            title.Selected = int.Parse(ds.Tables[0].Rows[i]["selected"].ToString());
                        }
                        if (ds.Tables[0].Rows[i]["limit"].ToString() != "")
                        {
                            title.Limit = int.Parse(ds.Tables[0].Rows[i]["limit"].ToString());
                        }
                        if (ds.Tables[0].Rows[i]["planId"].ToString() != "")
                        {
                            plan.PlanId = int.Parse(ds.Tables[0].Rows[i]["planId"].ToString());
                        }
                        if (ds.Tables[0].Rows[i]["planName"].ToString() != "")
                        {
                            plan.PlanName = ds.Tables[0].Rows[i]["planName"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["teaAccount"].ToString() != "")
                        {
                            teacher.TeaAccount = ds.Tables[0].Rows[i]["teaAccount"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["teaName"].ToString() != "")
                        {
                            teacher.TeaName = ds.Tables[0].Rows[i]["teaName"].ToString();
                        }
                        if (ds.Tables[0].Rows[i]["recordCreateTime"].ToString() != "")
                        {
                            titleRecord.recordCreateTime = DateTime.Parse(ds.Tables[0].Rows[i]["recordCreateTime"].ToString());
                        }
                        if (ds.Tables[0].Rows[i]["collegeId"].ToString() != "")
                        {
                            college.ColID = int.Parse(ds.Tables[0].Rows[i]["collegeId"].ToString());
                        }
                        if (ds.Tables[0].Rows[i]["collegeName"].ToString() != "")
                        {
                            college.ColName = ds.Tables[0].Rows[i]["collegeName"].ToString();
                        }
                        if (student != null && title != null && plan != null && prodession != null && teacher != null)
                        {
                            titleRecord.student    = student;
                            titleRecord.title      = title;
                            titleRecord.plan       = plan;
                            titleRecord.profession = prodession;
                            titleRecord.teacher    = teacher;
                            return(titleRecord);
                        }
                    }
                }
                return(null);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 37
0
 public void SetProfession(int _profession)
 {
     Profession = (Profession)_profession;
 }
Ejemplo n.º 38
0
 public Gnome(Character gnome, int level, int row, int column, int mapCellPosition, int realIndex)
 {
     this.name = gnome.Name();
     this.id = realIndex;
     this.level = level;
     this.row = row;
     this.column = column;
     this.position = mapCellPosition;
     this.profession = gnome.Mind.Profession;
     this.mining = gnome.SkillLevel(CharacterSkillType.Mining);
     foreach (var skill in SkillDef.AllLaborSkills())
         this.laborSkills.Add(new SkillEntry(skill, gnome.SkillLevel(skill), gnome.Mind.IsSkillAllowed(skill)));
     foreach (var skill in SkillDef.AllCombatSkills())
         this.combatSkills.Add(new SkillEntry(skill, gnome.SkillLevel(skill), gnome.Mind.IsSkillAllowed(skill)));
     foreach (var attribute in Enum.GetValues(typeof(CharacterAttributeType)))
         this.attributes.Add(new AttributeEntry((CharacterAttributeType)attribute, gnome.AttributeLevel((CharacterAttributeType)attribute)));
 }
Ejemplo n.º 39
0
 public void SetProfession(Profession p)
 {
     this.Class = p;
     OnTurn    += Class.ClassLogic;
 }
Ejemplo n.º 40
0
 /**
  * 職業を設定する
  */
 public void setProfession(Profession.Profession profession)
 {
     professions.Add(profession);
 }
Ejemplo n.º 41
0
 public void EditProfession(Profession profession)
 {
     _context.Entry(profession).State = EntityState.Modified;
 }
Ejemplo n.º 42
0
		/// <summary>
		/// 得到和给定职业相符合的所有技能ID列表
		/// </summary>
		/// <param name="profession"></param>
		/// <returns></returns>
		public static IEnumerable<uint> Where(Profession profession)
		{
			return
				from s in Table.Query<table.TableSkill>()
				where s.Profession == profession
				group s by s.id into g
				select g.Key;
		}
 public ProfessionViewModel(Profession profession)
 {
     Id   = profession.Id;
     Name = profession.Name;
 }
Ejemplo n.º 44
0
    private void PopulateMemberVariables()
    {

        //if(ViewingMember.AccountType == (int)AccountType.Personal)
        if (ViewingMember.AccountType == 0)
        {
            AboutTitle = "About me";

            Field1Title = "My Life";
            Field2Title = "Music";
            Field3Title = "Books";
            Field4Title = "Movies";
            Field5Title = "";
            Field6Title = "";

            MyLife = HTMLUtility.AutoLink(ViewingMember.MemberProfile[0].MyLife.Replace("\r\n", "<br/>").Replace("\r", "<br/>").Replace("\n", "<br/>"));
            Gender = GetGender(ViewingMember.Gender);
            LastActive = TimeDistance.TimeAgo(ViewingMember.LastOnline);
            ProfileViews = ViewingMember.MemberProfile[0].NumberOfViews.ToString();

            Hometown = HTMLUtility.AutoLink(ViewingMember.MemberProfile[0].HomeTown);
            Country = HTMLUtility.AutoLink(ViewingMember.CountryName);
            Nick = ViewingMember.NickName;
            DirectUrl = WebRoot + "users/" + ViewingMember.NickName;
            DirectUrlText = WebRoot + "users/" + ViewingMember.NickName;

            Movies = HTMLUtility.AutoLink(ViewingMember.MemberProfile[0].Movies.Replace("\r\n", "<br/>").Replace("\r", "<br/>").Replace("\n", "<br/>"));
            Books = HTMLUtility.AutoLink(ViewingMember.MemberProfile[0].Books.Replace("\r\n", "<br/>").Replace("\r", "<br/>").Replace("\n", "<br/>"));
            Music = HTMLUtility.AutoLink(ViewingMember.MemberProfile[0].Music.Replace("\r\n", "<br/>").Replace("\r", "<br/>").Replace("\n", "<br/>"));

            MemberSince = ViewingMember.CreatedDT.ToString("dd MMMM yyyy");
            RelationshipStatus = GetRelationShipStatus(ViewingMember.MemberProfile[0].RelationshipStatus);

            if (ViewingMember.MemberProfile[0].OtherHalfID != -1)
            {
                // Married
                if (ViewingMember.MemberProfile[0].RelationshipStatus == 2)
                {
                    RelationshipStatus += " To";
                }
                //Kinda have a thing
                else if (ViewingMember.MemberProfile[0].RelationshipStatus == 6)
                {
                    RelationshipStatus += " With";
                }
            }

            OtherHalf = GetOtherHalf(ViewingMember.MemberProfile[0].OtherHalfID);

            BlogFeedURL = QualifyURL(ViewingMember.MemberProfile[0].BlogFeedURL);
            BlogFeedURLText = BreakText(BlogFeedURL);

            BlogURL = QualifyURL(ViewingMember.MemberProfile[0].BlogURL);
            BlogURLText = BreakText(BlogURL);

            MySpaceURL = QualifyURL(ViewingMember.MemberProfile[0].MySpaceURL);
            MySpaceURLText = BreakText(MySpaceURL);

            FaceBookURL = QualifyURL(ViewingMember.MemberProfile[0].FaceBookURL);
            FaceBookURLText = BreakText(FaceBookURL);

            try
            {
                DayJobID = ViewingMember.MemberProfile[0].DayProfessionID;
                NightJobID = ViewingMember.MemberProfile[0].NightProfessionID;
                HobbyID = ViewingMember.MemberProfile[0].HobbyID;

                if (DayJobID != -1)
                {
                    DayJob = new Profession(DayJobID).Name;
                }

                if (NightJobID != -1)
                {
                    NightJob = new Profession(NightJobID).Name;
                }

                if (HobbyID != -1)
                {
                    Hobby = new Hobby(HobbyID).Name;
                }
            }
            catch { }


        }
        //else if(ViewingMember.AccountType == (int)AccountType.Business)
        else if (ViewingMember.AccountType == 1)
        {
           
            Business business = ViewingMember.Business[0];

            AboutTitle = "About us";

            Field1Title = "Our Company";
            Field2Title = "Our Products / Services";
            Field3Title = "What we offer";
            Field4Title = "Where you can find us";
            Field5Title = "What sets us apart";
            Field6Title = "";

            MyLife = HTMLUtility.AutoLink(business.OurCompany.Replace("\r\n", "<br/>").Replace("\r", "<br/>").Replace("\n", "<br/>"));
            Music = HTMLUtility.AutoLink(business.BusinessDescription1.Replace("\r\n", "<br/>").Replace("\r", "<br/>").Replace("\n", "<br/>"));
            Books = HTMLUtility.AutoLink(business.BusinessDescription2.Replace("\r\n", "<br/>").Replace("\r", "<br/>").Replace("\n", "<br/>"));
            Movies = HTMLUtility.AutoLink(business.BusinessDescription3.Replace("\r\n", "<br/>").Replace("\r", "<br/>").Replace("\n", "<br/>"));

            Nick = ViewingMember.NickName;
            DirectUrl = WebRoot + "users/" + ViewingMember.NickName;
            DirectUrlText = WebRoot + "users/" + ViewingMember.NickName;

            MemberSince = ViewingMember.CreatedDT.ToString("dd MMMM yyyy");

            BasicInfo=HTMLUtility.AutoLink(business.BasicInfo);
            CompanyName = HTMLUtility.AutoLink(business.CompanyName);
            CompanyWebsite=HTMLUtility.AutoLink(business.CompanyWebsite);
            CompanyTagLine=HTMLUtility.AutoLink(business.TagLine);
            ContactFirst=HTMLUtility.AutoLink(business.ContactFirst);
            ContactLast=HTMLUtility.AutoLink(business.ContactLast);
            IndustrySector=HTMLUtility.AutoLink(business.IndustrySector);
            YearFounded=business.YearFounded;
            CompanySize=HTMLUtility.AutoLink(business.CompanySize);
            CompanyStreetAddress=HTMLUtility.AutoLink(business.StreetAddress);
            CompanyState=HTMLUtility.AutoLink(business.State);
            CompanyCity=HTMLUtility.AutoLink(business.City);

           
            CompanyCountry = HTMLUtility.AutoLink((new ISOCountry(ViewingMember.ISOCountry)).CountryText);
       


            CompanyZipCode=HTMLUtility.AutoLink(business.ZipCode);

            

            BlogFeedURL = QualifyURL(business.BlogFeedURL);
            BlogFeedURLText = BreakText(BlogFeedURL);

            BlogURL = QualifyURL(business.BlogURL);
            BlogURLText = BreakText(BlogURL);

            MySpaceURL = QualifyURL(business.MySpaceURL);
            MySpaceURLText = BreakText(MySpaceURL);

            FaceBookURL = QualifyURL(business.FaceBookURL);
            FaceBookURLText = BreakText(FaceBookURL);

        }


    }
 public static ProfessionViewModel GetProfessionViewModelOrNull(Profession profession)
 {
     return(profession == null ? null : new ProfessionViewModel(profession));
 }
 public static Attribute[] AttributesForProfession(Profession profession)
 {
     switch (profession)
                 {
                         case Profession.None:
                                 return new Attribute[0];
                         case Profession.Warrior:
                                 return new[]
                                         {
                                                 Attribute.Strength,
                                                 Attribute.AxeMastery,
                                                 Attribute.HammerMastery,
                                                 Attribute.Swordsmanship,
                                                 Attribute.Tactics
                                         };
                         case Profession.Ranger:
                                 return new[]
                                         {
                                                 Attribute.BeastMastery,
                                                 Attribute.Expertise,
                                                 Attribute.WildernessSurvival,
                                                 Attribute.Marksmanship
                                         };
                         case Profession.Monk:
                                 return new[]
                                         {
                                                 Attribute.HealingPrayers,
                                                 Attribute.SmitingPrayers,
                                                 Attribute.ProtectionPrayers,
                                                 Attribute.DivineFavor
                                         };
                         case Profession.Necromancer:
                                 return new[]
                                         {
                                                 Attribute.BloodMagic,
                                                 Attribute.DeathMagic,
                                                 Attribute.SoulReaping,
                                                 Attribute.Curses
                                         };
                         case Profession.Mesmer:
                                 return new[]
                                         {
                                                 Attribute.FastCasting,
                                                 Attribute.IllusionMagic,
                                                 Attribute.DominationMagic,
                                                 Attribute.InspirationMagic
                                         };
                         case Profession.Elementalist:
                                 return new[]
                                         {
                                                 Attribute.AirMagic,
                                                 Attribute.EarthMagic,
                                                 Attribute.FireMagic,
                                                 Attribute.WaterMagic,
                                                 Attribute.EnergyStorage
                                         };
                         case Profession.Assassin:
                                 return new[]
                                         {
                                                 Attribute.DaggerMastery,
                                                 Attribute.DeadlyArts,
                                                 Attribute.ShadowArts,
                                                 Attribute.CriticalStrikes
                                         };
                         case Profession.Ritualist:
                                 return new[]
                                         {
                                                 Attribute.Communing,
                                                 Attribute.RestorationMagic,
                                                 Attribute.ChannelingMagic,
                                                 Attribute.SpawningPower
                                         };
                         case Profession.Paragon:
                                 return new[]
                                         {
                                                 Attribute.SpearMastery,
                                                 Attribute.Command,
                                                 Attribute.Motivation,
                                                 Attribute.Leadership
                                         };
                         case Profession.Dervish:
                                 return new[]
                                         {
                                                 Attribute.ScytheMastery,
                                                 Attribute.WindPrayers,
                                                 Attribute.EarthPrayers,
                                                 Attribute.Mysticism
                                         };
                         default:
                                 throw new ArgumentOutOfRangeException("profession");
                 }
 }
Ejemplo n.º 47
0
        /// <summary>
        /// 完成日志记录
        /// </summary>
        /// <param name="name"></param>
        /// <param name="instituteId"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        public IActionResult Create([Required] String name, [Required] int instituteId, ProfessionType type)
        {
            if (ModelState.IsValid)
            {
                if (!_analysis.GetLoginUserConfig(HttpContext).Power.SystemInfoManager)
                {
                    return(Json(new
                    {
                        isOk = false,
                        error = "你并无信息管理操作权限"
                    }));
                }
                if (_context.Institute.Any(val => val.InstituteId == instituteId))
                {
                    if (_context.Professions.Any(pro => pro.Name.Equals(name) && pro.ProfessionType == type))  //同一类型下的
                    {
                        return(Json(new
                        {
                            isOk = false,
                            error = "此专业已经存在,名称重复"
                        }));
                    }
                    else
                    {
                        LogPricipalOperation log =
                            _logger.GetDefaultLogPricipalOperation(
                                PrincpalOperationCode.ProfessionAdd,
                                $"添加一个新的专业",
                                $"新专业名称: {name}");
                        log.PrincpalOperationStatus = PrincpalOperationStatus.Success;
                        _context.LogPricipalOperations.Add(log);

                        Profession profession = new Profession();
                        profession.Name           = name;
                        profession.InstituteId    = instituteId;
                        profession.ProfessionType = type;
                        _context.Professions.Add(profession);
                        _context.SaveChanges();
                        return(Json(new
                        {
                            isOk = true,
                            info = "添加成功"
                        }));
                    }
                }
                else
                {
                    return(Json(new
                    {
                        isOk = false,
                        error = "所属学院不存在"
                    }));
                }
            }
            else
            {
                return(Json(new
                {
                    isOk = false,
                    error = "参数错误! 传递了错误的参数!"
                }));
            }
        }
Ejemplo n.º 48
0
 /// <summary>
 /// Convenience function, checks both PrimaryProfession and SecondaryProfession for a match to provided profession check
 /// </summary>
 /// <param name="p">The Profession to match</param>
 /// <returns>True if one of the two professions matches, false if no match on either</returns>
 public bool HasProfession(Profession p)
 {
     if (PrimaryProfession == p) { return true; }
     if (SecondaryProfession == p) { return true; }
     return false;
 }
Ejemplo n.º 49
0
 public QAAutomation(string firstName, string lastName, int age, int room, Profession profession) : base(firstName, lastName, age, room, profession)
 {
 }
Ejemplo n.º 50
0
 public ProfessionRow(Profession profession)
 {
     Profession = profession;
 }
Ejemplo n.º 51
0
 private static int ProfessionButtonWidth(Profession profession)
 {
     return(Game1.dialogueFont.MeasureString(string.Join(Environment.NewLine, profession.DisplayName.Split(' '))).X.Ceiling() + Offset * 2);
 }
Ejemplo n.º 52
0
        /// <summary>
        /// 綁定窗口DM,获取客户端大小,启动提示消除Timer,获取人物职业
        /// </summary>
        /// <param name="className">類名</param>
        /// <returns>0失敗,1成功</returns>
        public int BindDM(string className, int pid, int handle)
        {
            Log("BindDM:" + className + ",pid:" + pid.ToString() + ",handle:" + handle.ToString());
            int ret = 0;
            IntPtr p = IntPtr.Zero;
            if (pid == 0 && handle == 0)
            {
                p = FindWindow(className, null);
                if (p == IntPtr.Zero)
                {
                    Log("BindDM:" + "找不到窗口,类名:" + className);
                    throw new Exception("找不到窗口,类名:" + className);
                }
            }
            else
            {
                if (handle != 0)
                    p = new IntPtr(handle);
                else
                {
                    p = GetMainWindowHandle(pid);
                }
            }
            hwnd = p.ToInt32();
            //dm.SetWindowState(p.ToInt32(), 1);//激活窗口
            Thread.Sleep(200);
            //ret = dm.BindWindow(p.ToInt32(), "normal", "windows", "windows", 0);
            ret = dm.BindWindow(hwnd, "dx2", "dx", "dx", 0);
            Log("BindWindow");
            if (ret == 0)
            {
                throw new Exception("绑定失败");
            }

            //ret = dm.LockInput(1);
            object w, h;
            ret = dm.GetClientSize(hwnd, out w, out h);
            if (ret == 0)
            {
                throw new Exception("获取窗口客户区失败");
            }
            clientH = (int)h;
            clientW = (int)w;
            Thread.Sleep(200);
            Log("客户区域,W:" + clientW.ToString() + ";H:" + clientH.ToString());
            pro = GetUserProfession();
            ProDtInfo = GetProfessionDtInfo(pro);
            Log("职业:" + pro.ToString());
            //CNoticeTimer.Start();
            return ret;
        }
Ejemplo n.º 53
0
 public void generate_test_characters()
 {
     Guinevere = new Character("Guinevere", Gender.Female, Prof.Knight);
     Alric     = new Character("Alric", Gender.Male, Prof.Knight);
     Knight    = ProfessionDAO.GetProfession(Prof.Knight);
 }
Ejemplo n.º 54
0
 public LevelUpMessageDialogWithProfession(Rectangle bounds, string message, Skill skill, Profession profession) : base(bounds, message, skill)
 {
     _profession = profession;
 }
Ejemplo n.º 55
0
 private static string GetTitle(Profession model)
 {
     return(Htmls.CommonTitle(model.Name));
 }