summaryrefslogtreecommitdiff
path: root/Penguloon/Objects/ObjectBase.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2018-01-16 14:49:40 +0100
committeraldrikboy <aldrikboy@gmail.com>2018-01-16 14:49:40 +0100
commit6996be0fc143085b6aa459f2eb7b288ac1617c0b (patch)
tree55f5ca1e95dc52cf9a1e81a0250fb9436e5ec6a9 /Penguloon/Objects/ObjectBase.cs
parent1f5295752f9052c2b7b64660fa36293f18de73d0 (diff)
upgrade sounds
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)