UnitLocation loc = ( (UnitLocation) movePath.elementAt(0) ); centerOnHex( loc.getCoords() );
int j = ((Integer) movePath.elementAt(0)).intValue(); int y = j & 255; int x = (j >> 8) & 255; centerOnHex(new Coords(x, y));
    public void addMovingUnit(Entity entity, java.util.Vector movePath) {        if ( !movePath.isEmpty() ) {            Object[] o = new Object[2];            o[0] = entity;            o[1] = movePath;            movingUnits.addElement(o);            GhostEntitySprite ghostSprite = new GhostEntitySprite(entity);            ghostEntitySprites.addElement(ghostSprite);            // Center on the starting hex of the moving unit.            UnitLocation loc = ( (UnitLocation) movePath.elementAt(0) );            centerOnHex( loc.getCoords() );        }    }