コード例 #1
0
 public Sorcerer(IHitBehavior hitBehavior) : base(hitBehavior)
 {
     HitPoints = 80;
     Strenght  = 8;
 }
コード例 #2
0
 public Ogre(IHitBehavior hitBehavior) : base(hitBehavior)
 {
     HitPoints = 200;
     Strenght  = 150;
 }
コード例 #3
0
 public Character(IHitBehavior hitBehavior, IWeapon equippedWeapon)
     : this(hitBehavior)
 {
     weapon = equippedWeapon;
 }
コード例 #4
0
 public Knight(IHitBehavior hitBehavior) : base(hitBehavior)
 {
     HitPoints = 100;
     Strenght  = 20;
 }
コード例 #5
0
 public Character(IHitBehavior hitBehavior)
 {
     this.hitBehavior = hitBehavior;
 }