private String name;
public JavaSprite( String name ) {
mImage = GraphicsDB.retrieveGraphic( name, BufferedImage.class );
if ( mImage == null ) {
Receivable toRegister = new Receivable() {
@Override
public void give( Object obj ) {
if ( !(obj instanceof BufferedImage) ) {
throw new IllegalArgumentException( "SoftwareSprite - Receivable.give: Not a BufferedImage." );
}