public DragonMonsterDecorator(IMonsterComponent monster) : base(monster)
 {
     this.name   = " Blue Eyed White Dragon";
     this.attack = 100;
     this.health = 1000;
 }
 public ScorpionMonsterDecorator(IMonsterComponent monster, string name, int health, int attack) : base(monster)
 {
     this.name = name;
     this.health = health;
     this.attack = attack;
 }
Ejemplo n.º 3
0
 public ArmorDecorator(IMonsterComponent monster) : base(monster)
 {
     this.name   = " (armor) ";
     this.health = 500; //adds 500 health
 }
Ejemplo n.º 4
0
 static void PrintMonster(IMonsterComponent monster)
 {
     Console.WriteLine("\n--------------------\nGetName:" + monster.GetName);
     Console.WriteLine("Attack: " + monster.GetAttack);
     Console.WriteLine("GetHealth: " + monster.GetHealth + "\n--------------------");
 }
Ejemplo n.º 5
0
 public QuickAttackDecorator(IMonsterComponent monster) : base(monster)
 {
     this.name   = " (quick attack) ";
     this.attack = 0;
 }
Ejemplo n.º 6
0
 public ShieldDecorator(IMonsterComponent monster) : base(monster)
 {
     this.name   = " (shield) ";
     this.health = 200; //adds 200 health
 }
 public MonsterDecorator(IMonsterComponent monster)
 {
     _monsterComponent = monster;
 }