Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package objects;
- import java.util.Map;
- import java.util.TreeMap;
- import java.util.Map.Entry;
- public class Breed {
- private final int id;
- private final int startLife;
- private final int startPA;
- private final int startPM;
- private final int startInitiative;
- private final int startProspecting;
- private final int startMap;
- private final int startCell;
- private final BreedStat intelligence;
- private final BreedStat wisdom;
- private final BreedStat chance;
- private final BreedStat agility;
- private final BreedStat strenght;
- private final BreedStat vitality;
- public Breed(int id, int startLife, int startPA, int startPM, int startInitiative, int startProspecting, int startMap, int startCell,
- String intelligence, String wisdom, String chance, String agility, String strenght, String vitality)
- {
- this.id = id;
- this.startLife = startLife;
- this.startPA = startPA;
- this.startPM = startPM;
- this.startInitiative = startInitiative;
- this.startProspecting = startProspecting;
- this.startMap = startMap;
- this.startCell = startCell;
- this.intelligence = BreedStat.parse(intelligence);
- this.wisdom = BreedStat.parse(wisdom);
- this.chance = BreedStat.parse(chance);
- this.agility = BreedStat.parse(agility);
- this.strenght = BreedStat.parse(strenght);
- this.vitality = BreedStat.parse(vitality);
- }
- public int getId()
- {
- return id;
- }
- public int getStartLife()
- {
- return startLife;
- }
- public int getStartPA()
- {
- return startPA;
- }
- public int getStartPM()
- {
- return startPM;
- }
- public int getStartInitiative()
- {
- return startInitiative;
- }
- public int getStartProspecting()
- {
- return startProspecting;
- }
- public BreedStat getIntelligence()
- {
- return intelligence;
- }
- public BreedStat getWisdom()
- {
- return wisdom;
- }
- public BreedStat getChance()
- {
- return chance;
- }
- public BreedStat getAgility()
- {
- return agility;
- }
- public BreedStat getStrenght()
- {
- return strenght;
- }
- public BreedStat getVitality()
- {
- return vitality;
- }
- public int getStartMap()
- {
- return startMap;
- }
- public int getStartCell()
- {
- return startCell;
- }
- /**
- *
- *Début d'une classe qui gère les paliers de stats.
- */
- public static class BreedStat
- {
- private Object floors; //Utilisation d'une classe BreedFloor ou d'une Map ?
- public BreedStat()
- {
- floors = new Object();
- }
- /**
- *@param Points de caractéristiques de base déjà acquit (ex: _baseStats.getEffect(Constants.STAT_ADD_FORC);)
- *@return Points requis pour up une caractéristique
- */
- public int getCost(int val)
- {
- //TODO: Système qui calcul le coût pour monter le stat.
- return -1;
- }
- public static BreedStat parse(String data)
- {
- BreedStat stats = new BreedStat();
- //TODO: Parser le palier de stats.
- return stats;
- }
- public Object getFloors()
- {
- return floors;
- }
- }
- public static class BreedSpell
- {
- private final int breed;
- private final int lvl;
- private final int spellId;
- private final int pos;
- public BreedSpell(int race, int lvl, int spellId, int pos)
- {
- this.breed = race;
- this.lvl = lvl;
- this.spellId = spellId;
- this.pos = pos;
- }
- public int getBreed()
- {
- return breed;
- }
- public int getLvl()
- {
- return lvl;
- }
- public int getSpellId()
- {
- return spellId;
- }
- public int getPos()
- {
- return pos;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment