Package ch.sahits.game.graphic.image

Examples of ch.sahits.game.graphic.image.DisplayImageDIResolver


    super(topLeft, DisplayImageDIResolver.getInstance().getMainScreenLoader(), scale, cityProxy);
    Event.add(this);
  }
  @Override
  protected void init() {
    DisplayImageDIResolver resolver = DisplayImageDIResolver.getInstance();
    opPainter = resolver.getOpenPatricianPainter();
    imageUtils = resolver.getImageUtilities();
    super.init();
  }
View Full Code Here


    super(topLeft, DisplayImageDIResolver.getInstance().getMainScreenLoader(), scale, cityProxy);
    Event.add(this);
  }
  @Override
  protected void init() {
    DisplayImageDIResolver resolver = DisplayImageDIResolver.getInstance();
    opPainter = resolver.getOpenPatricianPainter();
    imageUtils = resolver.getImageUtilities();
    super.init();
  }
View Full Code Here

      y += positions.lineHeight; // more space to the title
      y += positions.lineHeight;
      drawTableHeader(g2d, y);
      // Table
      EWare[] wares = EWare.values();
      final DisplayImageDIResolver resolver = DisplayImageDIResolver.getInstance();
      for (EWare ware : wares) {
        // Ware name
        y += positions.lineHeight;

        // Available amount in the city
View Full Code Here

    super(topLeft, DisplayImageDIResolver.getInstance().getMainScreenLoader(), scale, cityProxy);
    Event.add(this);
  }
  @Override
  protected void init() {
    DisplayImageDIResolver resolver = DisplayImageDIResolver.getInstance();
    opPainter = resolver.getOpenPatricianPainter();
    imageUtils = resolver.getImageUtilities();
    super.init();
  }
View Full Code Here

    super(topLeft, DisplayImageDIResolver.getInstance().getMainScreenLoader(), scale, cityProxy);
    Event.add(this);
  }
  @Override
  protected void init() {
    DisplayImageDIResolver resolver = DisplayImageDIResolver.getInstance();
    opPainter = resolver.getOpenPatricianPainter();
    imageUtils = resolver.getImageUtilities();
    super.init();
  }
View Full Code Here

  private final IOpenPatricianPainter opPainter;
  private final IFontLoader fontLoader;

  public ViewStatus(Rectangle rect,IClient client) {
    super(rect);
    DisplayImageDIResolver resolver = DisplayImageDIResolver.getInstance();
    fontLoader =resolver.getFontLoader();
    opPainter = resolver.getOpenPatricianPainter();
    cityName = client.getPlayer().getHometown().getName();
    // TODO add to event queue
  }
View Full Code Here

    if (cl==null){
      throw new NullPointerException("Client instance may not be null");
    }
    Rectangle rectangle = new Rectangle(rect.x+BORDER_SPACING, rect.y+HORIZONTAL_DECO_HEIGHT, LEFT_STATUS_PANEL_WIDTH, TOP_STATUS_HEIGHT-HORIZONTAL_DECO_HEIGHT);
   
    DisplayImageDIResolver resolver = DisplayImageDIResolver.getInstance();
   
    loader = resolver.getMainScreenLoader(); // loader from the txt file
    background = createBackground(resolver);
     
    gameStatus = new GameStatus(rectangle,cl);
    gameStatus.setEnabled(true);   
    rectangle = new Rectangle(rect.x+LEFT_PANEL_WIDTH, rect.y+HORIZONTAL_DECO_HEIGHT, rect.width-(LEFT_PANEL_WIDTH+BORDER_SPACING), TOP_STATUS_HEIGHT-HORIZONTAL_DECO_HEIGHT);
View Full Code Here

   * @param loader
   * @param cl
   */
  public MainView(Rectangle rect, IImageLoader loader, IClient cl) {
    super(rect);
    DisplayImageDIResolver resolver = DisplayImageDIResolver.getInstance();
    this.xmlLoader = resolver.getXMLImageLoader();
    this.loader = loader;
    imageUtils = resolver.getImageUtilities();
    city = new CityPlayerProxy(cl.getPlayer().getHometown(), cl.getPlayer());
    IShip ship = cl.getPlayer().getFleet().get(0);
    city.arrive(ship);
    logger.debug("MainView: "+rect);
    ISceneHandler sceneHandler = SceneHandlerFactory.getSceneLoader(EScene.PORT, getBounds(), xmlLoader, resolver);
View Full Code Here

      default:
        logger.debug("ViewChangeEvent "+changeEvent+" is not handled here");
      }
    } else {
      if (canDelegateToSceneHandler(e, eventNotice) ){
        DisplayImageDIResolver resolver = DisplayImageDIResolver.getInstance();
        ISceneHandler handler = SceneHandlerFactory.getSceneLoader(viewState, getBounds(), xmlLoader, resolver);
        handler.updateScene(e, eventNotice, city, this);
      }
      if (isDialogChange(e,eventNotice)){
        handleDialogChange((ENoticeItem)eventNotice);
View Full Code Here

  /**
   * Update the dialog according to the indicated selection
   * @param noticeItem
   */
  private void handleDialogChange(ENoticeItem noticeItem) {
    DisplayImageDIResolver resolver = DisplayImageDIResolver.getInstance();
    switch (noticeItem) {
    case MB_STOCK_PRICES:{
      MarketPlaceScenehandler handler = (MarketPlaceScenehandler) SceneHandlerFactory.getSceneLoader(viewState, getBounds(), xmlLoader, resolver);
      handler.displayTradingStockdialog(city, this);
      break;
View Full Code Here

TOP

Related Classes of ch.sahits.game.graphic.image.DisplayImageDIResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.