for (int i = 0; i < game.board.terrains.length; i++) { tracker.addImage(game.board.terrains[i].getImage(comp), 2);
hexTileset.loadAllImages(comp, tracker);   for (int y = 0; y < game.board.height; y++) { for (int x = 0; x < game.board.width; x++) { Hex hex = game.board.getHex(x, y); hexTileset.assignMatch(hex, comp); }
    public void loadAllImages(Game game) {        loaded = false;                // load all terrain        for (int i = 0; i < game.board.terrains.length; i++) {            tracker.addImage(game.board.terrains[i].getImage(comp), 2);        }                // load all mech images        for (java.util.Enumeration i = game.getEntities(); i.hasMoreElements();) {            Entity entity = (Entity)i.nextElement();            Image base = mechTileset.imageFor(entity, comp);            int tint = entity.getOwner().getColorRGB();            EntityImage entityImage = null;                        // check if we have a duplicate image already loaded            for (Iterator j = mechImageList.iterator(); j.hasNext();) {                EntityImage onList = (EntityImage)j.next();                if (onList.getBase() == base && onList.tint == tint) {                    entityImage = onList;                    break;                }            }                        // if we don't have a cached image, make a new one            if (entityImage == null) {                entityImage = new EntityImage(base, tint);                mechImageList.add(entityImage);                entityImage.loadFacings();                for (int j = 0; j < 6; j++) {                    tracker.addImage(entityImage.getFacing(j), 1);                }            }                        // relate this id to this image set            mechImages.put(new Integer(entity.getId()), entityImage);        }                started = true;    }