using StgSharp.Geometries; using StgSharp.Math; namespace StgSharp { public abstract class IEntity { internal Point _pos; internal LinkedList _collisionBox; internal Sensor _collisionSensor; internal string _texture; internal Point _position; internal Point _basePoint; internal GetLocationHandler _movHandler; protected uint _bornTick; public LinkedList CollisionBox { get { return _collisionBox; } set { _collisionBox = value; } } /// /// A sensor used for cheking out if a bullet hit a player or something else /// public Sensor CollisionSensor { get { return _collisionSensor; } set { _collisionSensor = value; } } public string Texture { get; set; } /// /// A 2D vector presenting the position of an enemy entity, position can also be visited by X, Y /// public Vec2d Location { get; } /// /// X position of an enenmy entity /// public float X { get; set; } /// /// Y position of an enemy entity /// public float Y { get; set; } public void SetLocation(Point p) { _pos = p; } public abstract void OnRenderFrame(); } }