aboutsummaryrefslogtreecommitdiff
path: root/V3/Objects/FemalePeasant.cs
diff options
context:
space:
mode:
Diffstat (limited to 'V3/Objects/FemalePeasant.cs')
-rw-r--r--V3/Objects/FemalePeasant.cs50
1 files changed, 50 insertions, 0 deletions
diff --git a/V3/Objects/FemalePeasant.cs b/V3/Objects/FemalePeasant.cs
new file mode 100644
index 0000000..855685c
--- /dev/null
+++ b/V3/Objects/FemalePeasant.cs
@@ -0,0 +1,50 @@
+using System;
+using Microsoft.Xna.Framework.Content;
+using V3.Data;
+using V3.Map;
+using V3.Objects.Movement;
+using V3.Objects.Sprite;
+
+namespace V3.Objects
+{
+ /// <summary>
+ /// Class for simple peasants which will be transformed into zombies.
+ /// </summary>
+ public sealed class FemalePeasant : AbstractCreature
+ {
+ public override string Name { get; protected set; } = "Dorfbewohnerin";
+ public override int Life { get; protected set; } = 20;
+ public override int MaxLife { get; protected set; } = 20;
+ public override int Speed { get; } = 10;
+ public override int Attack { get; protected set; } = 5;
+ public override int AttackRadius { get; protected set; } = 0;
+ public override int SightRadius { get; protected set; } = 20;
+ public override TimeSpan TotalRecovery { get; } = TimeSpan.FromSeconds(0.3);
+ public override TimeSpan Recovery { get; set; }
+ protected override ISpriteCreature[] Sprite { get; } = {new ClothFemaleSprite(), new HeadFemaleSprite(), null};
+ protected override IMovable MovementScheme { get; } = new PlayerMovement();
+ protected override CreatureType Type { get; } = CreatureType.FemalePeasant;
+ public override Faction Faction { get; } = Faction.Plebs;
+ public override ICreature IsAttacking { get; set; }
+ public override IBuilding IsAttackingBuilding { get; set; }
+
+
+ public FemalePeasant(ContentManager contentManager,
+ Pathfinder pathfinder, IOptionsManager optionsManager, AchievementsAndStatistics achievementsAndStatistics)
+ : base(contentManager, pathfinder, optionsManager, achievementsAndStatistics)
+ {
+ }
+
+ public void RemoveArmor()
+ {
+ if (Sprite[0] is NudeFemaleSprite)
+ {
+ ChangeEquipment(EquipmentType.Body, new ClothFemaleSprite());
+ }
+ else if (Sprite[0] is ClothFemaleSprite)
+ {
+ ChangeEquipment(EquipmentType.Body, new NudeFemaleSprite());
+ }
+ }
+ }
+}