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;
 }
Exemplo n.º 3
0
 void ExpInfo(Text t, CrewMemberData explorer)
 {
     StringBuilder expDisplay = new StringBuilder();
     expDisplay.Append(explorer.getName() + " Gained " + explorer.getXPGainedOnIsland() + " XP");
     if (explorer.getLevelsGainedOnIsland() >= 2) {
         expDisplay.Append(" \nand leveled up " + explorer.getLevelsGainedOnIsland() + " times!");
     } else if (explorer.getLevelsGainedOnIsland() == 1) {
         expDisplay.Append(" \nand leveled up once!!");
     }
     t.text = expDisplay.ToString();
     explorer.setXPGainedOnIsland(0);
     explorer.resetLevelsGainedOnIsland();
 }
 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();
     }
 }