public static void populateObjects (
        SimpleMisoSceneModel model, List<ObjectInfo> ilist, List<ObjectInfo> ulist)
    {
        // set up the uninteresting arrays
        int ucount = ulist.size();
        model.objectTileIds = new int[ucount];
        model.objectXs = new short[ucount];
        model.objectYs = new short[ucount];
        for (int ii = 0; ii < ucount; ii++) {
            ObjectInfo info = ulist.get(ii);
            model.objectTileIds[ii] = info.tileId;
            model.objectXs[ii] = (short)info.x;
            model.objectYs[ii] = (short)info.y;
        }

        // set up the interesting array
        int icount = ilist.size();
        model.objectInfo = new ObjectInfo[icount];
        ilist.toArray(model.objectInfo);
    }
public static void populateObjects ( SimpleMisoSceneModel model , List < ObjectInfo > ilist , List < ObjectInfo > ulist ) { int ucount = ulist . size ( ) ; model . objectTileIds = new int [ ucount ] ; model . objectXs = new short [ ucount ] ; model . objectYs = new short [ ucount ] ; for ( int ii = 0 ; ii < ucount ; ii ++ ) { ObjectInfo info = ulist . get ( ii ) ; model . objectTileIds [ ii ] = info . tileId ; model . objectXs [ ii ] = ( short ) info . x ; model . objectYs [ ii ] = ( short ) info . y ; } int icount = ilist . size ( ) ; model . objectInfo = new ObjectInfo [ icount ] ; ilist . toArray ( model . objectInfo ) ; }
Populates the interesting and uninteresting parts of a miso scene
model given lists of {@link ObjectInfo} records for each.