protected void setCovered ( Map < Integer , SceneBlock > blocks , SceneObject scobj ) { int endx = scobj . info . x - scobj . tile . getBaseWidth ( ) + 1 ; int endy = scobj . info . y - scobj . tile . getBaseHeight ( ) + 1 ; for ( int xx = scobj . info . x ; xx >= endx ; xx -- ) { for ( int yy = scobj . info . y ; yy >= endy ; yy -- ) { SceneBlock block = blocks . get ( blockKey ( xx , yy ) ) ; if ( block != null ) { block . setCovered ( xx , yy ) ; } } } // Log.info("Updated coverage " + scobj.info + "."); }
Sets the footprint of this object tile