Beispiel #1
0
  public static void main(String[] args) {

    Game game = new StubGame1();

    DrawingEditor editor =
        new MiniDrawApplication("Click to see city graphics update...", new HotCivFactory3(game));
    editor.open();
    CityStub city = new CityStub();

    CityFigure cf =
        new CityFigure(
            city, new Point(GfxConstants.getXFromColumn(4), GfxConstants.getYFromRow(7)));
    editor.drawing().add(cf);
    editor.setTool(new ChangeCityTool(city, cf));
  }