refactor: move LoaderContext to graphics package
This commit is contained in:
parent
21f983d4be
commit
02ee143ce9
2 changed files with 7 additions and 6 deletions
|
@ -87,4 +87,10 @@ public abstract class TileImage
|
|||
null);
|
||||
}
|
||||
}
|
||||
|
||||
public interface LoaderContext
|
||||
{
|
||||
BufferedImage getDefaultImage();
|
||||
BufferedImage getImage(String name);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ import micropolisj.engine.*;
|
|||
import micropolisj.graphics.TileImage;
|
||||
import static micropolisj.engine.TileConstants.*;
|
||||
import static micropolisj.XML_Helper.*;
|
||||
import static micropolisj.graphics.TileImage.LoaderContext;
|
||||
|
||||
public class TileImages
|
||||
{
|
||||
|
@ -70,12 +71,6 @@ public class TileImages
|
|||
return "/" + name + "/tiles.png";
|
||||
}
|
||||
|
||||
interface LoaderContext
|
||||
{
|
||||
BufferedImage getDefaultImage();
|
||||
BufferedImage getImage(String name);
|
||||
}
|
||||
|
||||
static SimpleTileImage readSimpleImage(XMLStreamReader in, LoaderContext ctx)
|
||||
throws XMLStreamException
|
||||
{
|
||||
|
|
Reference in a new issue