package greenfoot.importer.scratch;
import java.util.List;
| Mirrors the Scratch Morph class, the base class for a lot of things in Scratch.
|
| Mainly relevant because it holds the bounds (particularly useful for sprites).
|
| @author neil
|
public class Morph
extends ScratchUserObject{
public Morph(int id, int version, List<ScratchObject> scratchObjects)
{
super(id, version, scratchObjects);
}
public int fields()
{
return 6;
}
public ScratchRectangle getBounds()
{
return (ScratchRectangle)scratchObjects.get(0);
}
}
top,
use,
map,
class Morph
. Morph
. fields
. getBounds
27 neLoCode
+ 3 LoComm