private void setCrewInformation()
 {
     //Displaying the crew members name and stats
     crew = manager.crewMembers[manager.crewIndex];
     crewName.text = crew.getName();
     newText.text = crew.getName();
     crewInfo.text = "\n" + crew.getCrewClass() + "\n" + crew.getLevel() +
         "\n" + crew.getAttack() + " / " + crew.getDefense() + "\n" + crew.getSpeed();
 }
Exemplo n.º 2
0
 public void CreateFromData(CrewMemberData data)
 {
     persistedData = data;
     this.atk = data.getAttack();
     this.def = data.getDefense();
     this.spd = data.getSpeed();
     this.combatantName = data.getName();
     this.health = data.getHealth();
     this.crewClass = data.getCrewClass();
     switch (crewClass) {
         case CrewMemberData.CrewClass.Assassin: ability = new AbilityDoubleStrike(); break;
         case CrewMemberData.CrewClass.Tank: ability = new AbilityTaunt(); break;
         case CrewMemberData.CrewClass.Bomber: ability = new AbilityBomb(); break;
     }
     this.actualDef = def;
 }
 private void setCrewInformation()
 {
     //Displaying the crew members name and stats
     crew = manager.crewMembers[manager.crewIndex];
     if (alreadySelectedForExploration(crew)) {
         crewInfo.text = "All crew members \nselected for exploration";
     } else {
         crewInfo.text = crew.getName() + "\n" + crew.getCrewClass() + "\n" + crew.getLevel() + "\n" +  crew.getAttack() + "/" + crew.getDefense() + "\n" + crew.getSpeed();
     }
 }