aboutsummaryrefslogtreecommitdiff
path: root/V3/Objects/IBuilding.cs
diff options
context:
space:
mode:
Diffstat (limited to 'V3/Objects/IBuilding.cs')
-rw-r--r--V3/Objects/IBuilding.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/V3/Objects/IBuilding.cs b/V3/Objects/IBuilding.cs
new file mode 100644
index 0000000..0fdd0aa
--- /dev/null
+++ b/V3/Objects/IBuilding.cs
@@ -0,0 +1,20 @@
+namespace V3.Objects
+{
+ public interface IBuilding : IGameObject
+ {
+ int Robustness { get; }
+ string Name { get; }
+ int MaxGivesWeapons { get; }
+
+ /// <summary>
+ /// Building takes specific amount of damage. Substracted from Robustness.
+ /// </summary>
+ /// <param name="damage">TakeDamage taken</param>
+ void TakeDamage(int damage);
+
+ /// <summary>
+ /// Building can give a fixed amount of upgrades.
+ /// </summary>
+ void UpgradeCounter();
+ }
+}