public GameObject(double x, double y, int width, int height, bool solid)
 {
     InitializeComponent();
     //Variables
     this.x = x;
     this.y = y;
     this.width = width;
     this.height = height;
     this.solid = solid;
     Angle = 0;
     Speed = 0;
     Init();
     objectState = Constants.ObjectState.Alive;
     
 }
        private void Init()
        {
            ObjectGrid.Width = width;
            ObjectGrid.Height = height;
            ObjectGrid.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            ObjectGrid.VerticalAlignment = System.Windows.VerticalAlignment.Top;

            objectState = Constants.ObjectState.Alive;
        }
 public void SetObjectState(Constants.ObjectState state)
 {
     this.objectState = state;
 }