package greenfoot.importer.scratch;
import java.util.List;
| Mirrors the Scratch ScratchMedia class, which is the base class for ImageMedia and SoundMedia.
|
| It only holds the name of the media, but that's useful for us.
|
| @author neil
|
public class ScratchMedia
extends ScratchUserObject{
public ScratchMedia(int id, int version, List<ScratchObject> scratchObjects)
{
super(id, version, scratchObjects);
}
@Override public int fields()
{
return 1;
}
public String getMediaName()
{
return (String)scratchObjects.get(0).getValue();
}
}
top,
use,
map,
class ScratchMedia
. ScratchMedia
. fields
. getMediaName
27 neLoCode
+ 3 LoComm