public String getTileProperty ( int tileID , String propertyName , String def ) { if ( tileID == 0 ) { return def ; } TileSet set = findTileSet ( tileID ) ; Properties props = set . getProperties ( tileID ) ; if ( props == null ) { return def ; } return props . getProperty ( propertyName , def ) ; }
Get a propety given to a particular tile . Note that this method will not perform well and should not be used as part of the default code path in the game loop .