summaryrefslogtreecommitdiff
path: root/Penguloon/Objects/ObjectBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Objects/ObjectBase.cs')
-rw-r--r--Penguloon/Objects/ObjectBase.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Penguloon/Objects/ObjectBase.cs b/Penguloon/Objects/ObjectBase.cs
index e5d9fe5..ee2b04c 100644
--- a/Penguloon/Objects/ObjectBase.cs
+++ b/Penguloon/Objects/ObjectBase.cs
@@ -11,13 +11,22 @@ namespace Penguloon.Objects
public abstract class ObjectBase
{
public int AttackSpeedMS { get; set; }
+ public int AttackSpeedMSBase { get; set; }
+
public DateTime LastAttack { get; set; }
public float Range { get; set; }
+ public float RangeBase { get; set; }
public Texture2D Texture { get; set; }
public Texture2D TextureBase { get; set; }
public Texture2D RangeCircle { get; set; }
+
+ public Texture2D InfoPanelTexture { get; set; }
+ public Texture2D InfoPanelLineTexture { get; set; }
+ public Vector2 InfoPanelPos { get; set; }
+ public float InfoPanelRotation { get; set; } = -0f;
+
public float Rotation { get; set; } = -0f;
public Vector2 Position { get; set; }
@@ -44,7 +53,31 @@ namespace Penguloon.Objects
this.Map = map;
this.Position = position;
+ this.AttackSpeedMSBase = AttackSpeedMS;
+ this.RangeBase = Range;
+
CreateUpgrades();
+
+ SetInfoPanel();
+ }
+
+ private void SetInfoPanel()
+ {
+ InfoPanelTexture = ContentManager.GetTexture("UI/objectinfo");
+ InfoPanelLineTexture = ContentManager.GetTexture("UI/objectinfo-line");
+
+ InfoPanelPos = new Vector2();
+
+ // alight right
+ if (Position.X < 450)
+ {
+
+ }
+ // alight left
+ else
+ {
+
+ }
}
public ObjectBase(Map map)