class Playfield extends Raster {
Raster background; // background image
AnimatedSprite sprite[]; // list of sprites on this playfield
public Playfield(Image bgnd, int numSprites);
public void addSprite(int i, AnimatedSprite s);
public void Draw( );
}
![]() |
||||||
| Lecture 2 | Slide 18 | 6.837 Fall '00 | ||||