Package com.hobbitsadventure.model

Examples of com.hobbitsadventure.model.PlayerCharacter


*/
public class CharacterGenerator {
  private Random random = new Random();
 
  public PlayerCharacter generatePlayerCharacter() {
    PlayerCharacter pc = new PlayerCharacter();
   
    pc.setLevel(1);
    pc.setExperience(0);
   
    int strength = rollDice();
    pc.setStrength(strength);
   
    int intelligence = rollDice();
    pc.setIntelligence(intelligence);
   
    int health = rollDice();
    pc.setHealth(health);
   
    return pc;
  }
View Full Code Here

TOP

Related Classes of com.hobbitsadventure.model.PlayerCharacter

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.