Package ch.fusun.baron.swt.isometry.components

Examples of ch.fusun.baron.swt.isometry.components.Sprite


    return unit;
  }

  @Override
  public Sprite getSprite() {
    return new Sprite(Activator.getImage(ICON1_UNIT),
        Activator.getImage(ICONS_UNIT_MASK), 30);
  }
View Full Code Here


    return dynasty;
  }

  @Override
  public Sprite getSprite() {
    return new Sprite(Activator.getImageForDynasty(dynasty), null, 31);
  }
View Full Code Here

    return this.farm;
  }

  @Override
  public Sprite getSprite() {
    return new Sprite(Activator.getImage(ICONS_FARM),
        Activator.getImage(ICONS_FARM_MASK), 10);
  }
View Full Code Here

    return null; // can't be selected anyway
  }

  @Override
  public Sprite getSprite() {
    return new Sprite(Activator.getBorderImage(index),
        Activator.getBorderImage(turn90(index)),
        Activator.getBorderImage(turn90(turn90(index))),
        Activator.getBorderImage(turn90(turn90(turn90(index)))), 15);
  }
View Full Code Here

              }
              if (min > cube.getTemperature()) {
                min = cube.getTemperature();
              }
              if (cube.getZ() == 0) {
                widget.addItem(null, i, j, k, new Sprite(
                    ground, null));
              }
              if (cube.getWater() > 0) {
                if (cube.getZ() == 0) {

                  widget.addItem(null, i, j, k, new Sprite(
                      water, null));
                } else {
                  if (cube.getWater() < 20) {
                    widget.addItem(null, i, j, k,
                        new Sprite(cloud, null));
                  } else {
                    widget.addItem(null, i, j, k,
                        new Sprite(rain, null));
                  }
                }
              }
            }
          }
View Full Code Here

    return dynasty;
  }

  @Override
  public Sprite getSprite() {
    return new Sprite(Activator.getImageForDynasty(dynasty), null, 21);

  }
View Full Code Here

    return this.city;
  }

  @Override
  public Sprite getSprite() {
    return new Sprite(Activator.getImage(ICONS_CITY),
        Activator.getImage(ICONS_CITY_MASK), 20);
  }
View Full Code Here

      for (int j = 0; j < this.mapService.getHeight(); j++) {
        isometryWidget.addItem(
            mapService.getTile(i, j),
            i,
            j,
            new Sprite(Activator.getImage(ICONS_TILES), Activator
                .getImage(ICONS_TILES_MASK)));
        for (TileChild<?> child : TileExtensionUtil.getInstance()
            .getChildren(mapService.getTile(i, j))) {
          isometryWidget.addItem(child.getModel(), i, j,
              child.getSprite());
View Full Code Here

    }
    display.dispose();
  }

  private static Sprite getSprite(String id, Display display) {
    return new Sprite(new Image(display, id + ".png"), new Image(display, //$NON-NLS-1$
        id + "_mask.png")); //$NON-NLS-1$
  }
View Full Code Here

TOP

Related Classes of ch.fusun.baron.swt.isometry.components.Sprite

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.