public OtitEuropa2(botWindow botwindow) { #region общие this.botwindow = botwindow; this.xx = botwindow.getX(); this.yy = botwindow.getY(); #endregion ServerFactory serverFactory = new ServerFactory(botwindow); this.server = serverFactory.create(); // создали конкретный экземпляр класса server по паттерну "простая Фабрика" (Америка, Европа или Синг) this.town = server.getTown(); DialogFactory dialogFactory = new DialogFactory(this.botwindow); dialog = dialogFactory.createDialog(); this.pointOldMan1 = new PointColor(907 - 5 + xx, 675 - 5 + yy, 7800000, 5); this.pointOldMan2 = new PointColor(907 - 5 + xx, 676 - 5 + yy, 7800000, 5); this.pointTask1 = new PointColor(948 - 30 + xx, 403 - 30 + yy, 8300000, 5); this.pointTask2 = new PointColor(948 - 30 + xx, 404 - 30 + yy, 8300000, 5); this.pointGetTask1 = new PointColor(824 - 5 + xx, 379 - 5 + yy, 16100000, 5); this.pointGetTask2 = new PointColor(824 - 5 + xx, 380 - 5 + yy, 16100000, 5); //this.pointIsOpenMap1 = new PointColor(484 - 30 + xx, 129 - 30 + yy, 8549475, 0); //this.pointIsOpenMap2 = new PointColor(490 - 30 + xx, 129 - 30 + yy, 8549475, 0); this.pointIsOpenMap1 = new PointColor(156 - 5 + xx, 208 - 5 + yy, 7000000, 6); this.pointIsOpenMap2 = new PointColor(156 - 5 + xx, 209 - 5 + yy, 7000000, 6); this.pointIsNearOldMan = new PointColor(951 - 5 + xx, 127 - 5 + yy, 3819200, 0); this.pointMamons = new Point(526 - 5 + xx, 262 - 5 + yy); this.pointOldMan = new Point(531 - 5 + xx, 313 - 5 + yy); this.pointOldManOnMap = new Point(740 - 5 + xx, 212 - 5 + yy); this.pointButtonMoveOnMap = new Point(835 - 5 + xx, 635 - 5 + yy); this.numberOfRoute = NumberOfRoute(); }