Package ch.fusun.baron.player

Examples of ch.fusun.baron.player.Gender


          if (Math.random() < CHILDREN_PROBABILITY) {
            Player husband = marriageService.getSpouse(player);
            if (husband.getAge() >= AGE_FOR_CHILDREN
                && !husband.isDead()) {
              Dynasty dynasty = playerService.getDynasty(husband);
              Gender gender = Gender.random();
              Player child = playerService
                  .generateNewPlayer(gender);
              child.setFather(husband);
              child.setMother(player);
              child.setAge(0);
View Full Code Here

TOP

Related Classes of ch.fusun.baron.player.Gender

Copyright © 2018 www.massapicom. 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.