コード例 #1
0
ファイル: Witch.cs プロジェクト: Vallerious/OOP-Homeworks
 public Witch(Position position)
     : base(position, new ObjectSize(WitchSizeX, WitchSizeY), WitchSpriteType)
 {
     this.Properties[Property.HealthPoints] = WitchHealthPoints;
     this.Properties[Property.DefensePoints] = WitchDefensePoints;
     this.Properties[Property.AttackPoints] = WitchAttackPoints;
     this.Properties[Property.MovementSpeed] = WitchMovementSpeed;
     this.Properties[Property.AttackRange] = WitchAttackRange;
 }
コード例 #2
0
ファイル: Mage.cs プロジェクト: Vallerious/OOP-Homeworks
 public Mage(Position position)
     : base(position, new ObjectSize(MageSizeX, MageSizeY), MageSpriteType)
 {
     this.Properties[Property.HealthPoints] = MageHealthPoints;
     this.Properties[Property.DefensePoints] = MageDefensePoints;
     this.Properties[Property.AttackPoints] = MageAttackPoints;
     this.Properties[Property.MovementSpeed] = MageMovementSpeed;
     this.Properties[Property.AttackRange] = MageAttackRange;
     this.Properties[Property.Inventory] = new Weapon[3];
 }
コード例 #3
0
ファイル: Creature.cs プロジェクト: Vallerious/OOP-Homeworks
 protected Creature(Position position, ObjectSize size,
     SpriteType spriteType)
     : base(position, size, spriteType)
 {
     Properties = new Dictionary<Property, dynamic>()
     {
         {Property.MaxHealthPoints, null},
         {Property.HealthPoints, null},
         {Property.DefensePoints, null},
         {Property.AttackPoints, null},
         {Property.AttackRange, null},
         {Property.IsAlive, true},
         {Property.MovementSpeed, null},
         {Property.WeaponHeld, null}
     };
 }
コード例 #4
0
ファイル: Character.cs プロジェクト: Vallerious/OOP-Homeworks
 protected Character(Position position, ObjectSize size, SpriteType spriteType)
     : base(position, size, spriteType)
 {
     this.Properties.Add(Property.Inventory, null);
 }
コード例 #5
0
 protected GameObject(Position position, ObjectSize size, SpriteType spriteType)
 {
     this.Position = position;
     this.Size = size;
     this.SpriteType = spriteType;
 }
コード例 #6
0
ファイル: Enemy.cs プロジェクト: Vallerious/OOP-Homeworks
 protected Enemy(Position position, ObjectSize objectSize, SpriteType spriteType)
     : base(position, objectSize, spriteType)
 {
     this.Properties.Add(Property.BonusWeaponHeld, null);
 }