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; }
public ArmorDecorator(IMonsterComponent monster) : base(monster) { this.name = " (armor) "; this.health = 500; //adds 500 health }
static void PrintMonster(IMonsterComponent monster) { Console.WriteLine("\n--------------------\nGetName:" + monster.GetName); Console.WriteLine("Attack: " + monster.GetAttack); Console.WriteLine("GetHealth: " + monster.GetHealth + "\n--------------------"); }
public QuickAttackDecorator(IMonsterComponent monster) : base(monster) { this.name = " (quick attack) "; this.attack = 0; }
public ShieldDecorator(IMonsterComponent monster) : base(monster) { this.name = " (shield) "; this.health = 200; //adds 200 health }
public MonsterDecorator(IMonsterComponent monster) { _monsterComponent = monster; }