public void PlaceObject(ref Enemy enemy, int XLocation, int YLocation)
 {
     if (XLocation <= Width && YLocation <= Height)
     {
         enemy.setLocation(XLocation, YLocation);
     }
     else
     {
         enemy.Die();
     }
 }
        public GameState()
        {
            PlayerOne = new Player();
            WorldMap = new Map();
            EnemyOne = new Enemy();
            EnemyTwo = new Enemy();
            worldWidth = 10000;
            worldHeight = 10000;

            WorldMap.SetSize(worldWidth, worldHeight);
            PlayerOne.setLocation(worldWidth / 2, worldHeight / 2);
            EnemyOne.setLocation(worldWidth / 4, worldHeight / 4);
            EnemyTwo.setLocation(3*worldWidth / 4, 3*worldHeight / 4);
        }
 public Boolean enemyHitPlayer(Enemy enemy)
 {
     return (enemy.X ==  PlayerOne.X && enemy.Y == PlayerOne.Y);
 }