コード例 #1
0
ファイル: TakeATurn.cs プロジェクト: mattcarlos/RPGLibrary
 //Levels up everything
 public int LevelUp()
 {
     warrior.LevelUp();
     archer.LevelUp();
     wizard.LevelUp();
     this.PlayerLevel = warrior.Level;
     scorpion         = new Scorpion(playerLevel);
     armouredScorpion = new ArmouredScorpion(playerLevel);
     spider           = new Spider(playerLevel);
     poisonSpider     = new PoisonSpider(playerLevel);
     boar             = new Boar(playerLevel);
     armouredBoar     = new ArmouredBoar(playerLevel);
     hulkingBoar      = new HulkingBoar(playerLevel);
     bat       = new Bat(playerLevel);
     hawk      = new Hawk(playerLevel);
     giantHawk = new GiantHawk(playerLevel);
     return(this.PlayerLevel);
 }
コード例 #2
0
ファイル: TakeATurn.cs プロジェクト: mattcarlos/RPGLibrary
 //constructs the object
 public TakeATurn()
 {
     this.IsFightOver = false;
     random           = new Random();
     warrior          = new Warrior();
     wizard           = new Wizard();
     archer           = new Archer();
     this.PlayerLevel = warrior.Level;
     scorpion         = new Scorpion(this.PlayerLevel);
     armouredScorpion = new ArmouredScorpion(this.PlayerLevel);
     spider           = new Spider(this.PlayerLevel);
     poisonSpider     = new PoisonSpider(this.PlayerLevel);
     boar             = new Boar(this.PlayerLevel);
     armouredBoar     = new ArmouredBoar(this.PlayerLevel);
     hulkingBoar      = new HulkingBoar(this.PlayerLevel);
     bat       = new Bat(this.PlayerLevel);
     hawk      = new Hawk(this.PlayerLevel);
     giantHawk = new GiantHawk(this.PlayerLevel);
 }