コード例 #1
0
ファイル: Warrior.cs プロジェクト: JonECG/Brogue
 public Warrior()
 {
     heroTexture = Engine.Engine.GetTexture("Hero/WarriorSprite");
     Hero.loadSprite();
     visible = true;
     heroRole = Classes.Warrior;
     inventory.addItem(new WarHammer(1, 1));
     baseHealth = 300;
     healthPerLevel = 50;
     resetLevel();
     resetHealth();
     abilities[0] = new Cleave();
     abilities[1] = new WhirlwindSlash();
     Engine.Engine.Log(health.ToString());
 }
コード例 #2
0
ファイル: Sentinel.cs プロジェクト: JonECG/Brogue
 public Sentinel()
 {
     heroTexture = Engine.Engine.GetTexture("Hero/Sentinel");
     Hero.loadSprite();
     heroRole = Classes.Sentinel;
     baseHealth = 400;
     healthPerLevel = 65;
     requiredBranchLevel = 30;
     resetLevel();
     resetHealth();
     abilities[0] = new Cleave();
     abilities[1] = new WhirlwindSlash();
     abilities[2] = new ShieldBlock();
     abilities[3] = new ShieldBash();
     Engine.Engine.Log(health.ToString());
     Enemies.Enemy.UpdateTargets(this);
     Enemies.BossEnemy.UpdateBossTargets(this);
 }
コード例 #3
0
ファイル: Brawler.cs プロジェクト: JonECG/Brogue
 public Brawler()
 {
     heroTexture = Engine.Engine.GetTexture("Hero/Brawler");
     Hero.loadSprite();
     heroRole = Classes.Brawler;
     baseHealth = 300;
     healthPerLevel = 40;
     requiredBranchLevel = 30;
     resetLevel();
     resetHealth();
     Enemies.Enemy.UpdateTargets(this);
     Enemies.BossEnemy.UpdateBossTargets(this);
     abilities[0] = new Cleave();
     abilities[1] = new WhirlwindSlash();
     abilities[2] = new Slam();
     abilities[3] = new DoubleSlash();
     Engine.Engine.Log(health.ToString());
 }
コード例 #4
0
ファイル: Juggernaut.cs プロジェクト: JonECG/Brogue
 public Juggernaut()
 {
     heroTexture = Engine.Engine.GetTexture("Hero/Juggernaut");
     Hero.loadSprite();
     heroRole = Classes.Juggernaut;
     baseHealth = 500;
     healthPerLevel = 75;
     requiredBranchLevel = int.MaxValue;
     resetLevel();
     resetHealth();
     abilities[0] = new Cleave();
     abilities[1] = new WhirlwindSlash();
     abilities[2] = new ShieldBlock();
     abilities[3] = new ShieldBash();
     abilities[4] = new Thornmail();
     abilities[5] = new DivineShield();
     Enemies.Enemy.UpdateTargets(this);
     Enemies.BossEnemy.UpdateBossTargets(this);
 }
コード例 #5
0
ファイル: Berserker.cs プロジェクト: JonECG/Brogue
 public Berserker()
 {
     heroTexture = Engine.Engine.GetTexture("Hero/Berserker");
     Hero.loadSprite();
     heroRole = Classes.Berserker;
     baseHealth = 500;
     healthPerLevel = 40;
     requiredBranchLevel = int.MaxValue;
     resetLevel();
     resetHealth();
     abilities[0] = new Cleave();
     abilities[1] = new WhirlwindSlash();
     abilities[2] = new Slam();
     abilities[3] = new DoubleSlash();
     abilities[4] = new Rage();
     abilities[5] = new Execute();
     Enemies.Enemy.UpdateTargets(this);
     Enemies.BossEnemy.UpdateBossTargets(this);
 }