Examples of Skill


Examples of cz.muni.fi.pa165.ddtroops.entities.Skill

        verify(mockDao).getById(skill.getId());
    }

    @Test
    public void testGetAll(){
        Skill skill2 = new EntityBuilder<Skill>(Skill.class)
                .withProperty("Name", "Umeni ohne")
                .withProperty("Description", "druhe nejsilnejsi kouzlisko")
                .withProperty("Profession", "RUMburak")
                .withProperty("minXP", 0L)
                .Build();
View Full Code Here

Examples of domain.Skill

      model.put("domains", domains);

      List levels = lmng.getAllLevels();
      model.put("levels", levels);
      for (Iterator iter = folder.getSkills().iterator(); iter.hasNext();) {
        Skill skill = (Skill) iter.next();
        System.out.println(skill.getId() + " skill avec comment : "
            + skill.getComment());

      }
    } else if (page == 5 || page == 6) {
      model.put("folder", folder);
View Full Code Here

Examples of domain.Skill

    }
    /***/
    pdmng.savePromoDetails(folder.getPromodetails());

    for (Iterator iter = folder.getSkills().iterator(); iter.hasNext();) {
      Skill s = (Skill) iter.next();
      s.setPersonalinfo_ref(folder.getPi().getId());
    }
    /***/
    smng.saveSkills(folder.getSkills());

    /** Sends an email to the student */
 
View Full Code Here

Examples of edu.drexel.goodwin.cpd.domain.Skill

  public Set<Skill> getRandomSkills(Random random) {
    Set<Skill> skills = new HashSet<Skill>();
    int count = random.nextInt(8);
    for (int i = 0; i < count; i++) {
      int number = random.nextInt(8) + 15;
      Skill skill = Skill.findSkill((long) number);
      if (skill != null && !skills.contains(skill)) {
        skills.add(skill);
      }
    }
    return skills;
View Full Code Here

Examples of edu.drexel.goodwin.cpd.domain.Skill

        return "redirect:/skill/" + skill.getId();       
    }

  @RequestMapping(value = "/skill/form", method = RequestMethod.GET)   
    public String createForm(ModelMap modelMap) {   
        modelMap.addAttribute("skill", new Skill());       
        return "skill/create";       
    }
View Full Code Here

Examples of gwlpr.database.entities.Skill

            for (Character characterCollectionCharacter : skill.getCharacterCollection()) {
                characterCollectionCharacter.getSkillCollection().add(skill);
                characterCollectionCharacter = em.merge(characterCollectionCharacter);
            }
            for (EquippedSkill equippedSkillCollectionEquippedSkill : skill.getEquippedSkillCollection()) {
                Skill oldSkillOfEquippedSkillCollectionEquippedSkill = equippedSkillCollectionEquippedSkill.getSkill();
                equippedSkillCollectionEquippedSkill.setSkill(skill);
                equippedSkillCollectionEquippedSkill = em.merge(equippedSkillCollectionEquippedSkill);
                if (oldSkillOfEquippedSkillCollectionEquippedSkill != null) {
                    oldSkillOfEquippedSkillCollectionEquippedSkill.getEquippedSkillCollection().remove(equippedSkillCollectionEquippedSkill);
                    oldSkillOfEquippedSkillCollectionEquippedSkill = em.merge(oldSkillOfEquippedSkillCollectionEquippedSkill);
                }
            }
            em.getTransaction().commit();
        } finally {
View Full Code Here

Examples of lineage2.gameserver.model.Skill

    }
    final int s_energy_wave = 20;
    final int s_earth_quake = 20;
    final int s_group_hold = (actor.getCurrentHpPercents() > 50) ? 0 : 20;
    final int s_thunderbolt = (actor.getCurrentHpPercents() > 25) ? 0 : 20;
    Skill r_skill = null;
    if (actor.isMovementDisabled())
    {
      r_skill = thunderbolt;
    }
    else if (!Rnd.chance(100 - s_thunderbolt - s_group_hold - s_energy_wave - s_earth_quake))
    {
      final Map<Skill, Integer> d_skill = new HashMap<>();
      final double distance = actor.getDistance(target);
      addDesiredSkill(d_skill, target, distance, energy_wave);
      addDesiredSkill(d_skill, target, distance, earth_quake);
      if (s_group_hold > 0)
      {
        addDesiredSkill(d_skill, target, distance, group_hold);
      }
      if (s_thunderbolt > 0)
      {
        addDesiredSkill(d_skill, target, distance, thunderbolt);
      }
      r_skill = selectTopSkill(d_skill);
    }
    if (r_skill == null)
    {
      r_skill = baium_normal_attack;
    }
    else if (r_skill.getTargetType() == Skill.SkillTargetType.TARGET_SELF)
    {
      target = actor;
    }
    addTaskCast(target, r_skill);
    r_skill = null;
View Full Code Here

Examples of org.apache.struts2.showcase.model.Skill

  public Employee setSkills(Employee employee, List<String> skillNames) {
    if (employee != null && skillNames != null) {
      employee.setOtherSkills(new ArrayList());
      for (int i = 0, j = skillNames.size(); i < j; i++) {
        Skill skill = (Skill) skillDao.get(skillNames.get(i));
        employee.getOtherSkills().add(skill);
      }
    }
    return employee;
  }
View Full Code Here

Examples of org.apache.struts2.showcase.model.Skill

   * Creating a default employee and main skill, since the JSF EL can't handle
   * creating new objects as necessary
   */
  public JsfEmployeeAction() {
    Employee e = new Employee();
    e.setMainSkill(new Skill());
    setCurrentEmployee(e);
  }
View Full Code Here

Examples of org.apache.struts2.showcase.model.Skill

   * Converting the Skill object list into a map
   */
  public Map<String, String> getAvailableSkills() {
    Map<String, String> map = new HashMap<String, String>();
    for (Object val : skillDao.findAll()) {
      Skill skill = (Skill) val;
      map.put(skill.getDescription(), skill.getName());
    }
    return map;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.