public object isCloseToSpaceStation(Ship s, SpaceStation ss)
 {
     return ((ss.getID() != -1) && (Math.Sqrt(this._getDistance(s.getPosX(), s.getPosY(), (double) ss.getPosX(), (double) ss.getPosY())) < 1500.0));
 }
 public void addShip(int id, int shipid, string clan, string username, double posX, double posY, int company, int clanid, int clandiplomacy, int galaxygatesdone, bool isNPC, bool cloaked)
 {
     Ship ship = new Ship(id, shipid, clan, username, posX, posY, company, clanid, clandiplomacy, galaxygatesdone, isNPC, cloaked);
     this.ships.Add(ship);
 }
 public bool isCloseToPortal(Ship s, Portals p)
 {
     int num2;
     int num = p.getCount();
     int num3 = (int) -((num2 == (num - 1)) > false);
     for (num2 = 0; num2 <= num3; num2++)
     {
         if ((p.getID(num2) != -1) && (Math.Sqrt(this._getDistance(s.getPosX(), s.getPosY(), (double) p.getPosX(num2), (double) p.getPosY(num2))) < 1000.0))
         {
             return true;
         }
     }
     return false;
 }