U:\NetBeans\PokeBall\src\graphicslab04\PokeBallSet.java
 1 package graphicslab04;
 2
 3 import java.awt.Graphics;
 4
 5 public class PokeBallSet {
 6
 7     private final PokeBall b = new PokeBall(375, 200);
 8     private final PremierBall pb = new PremierBall(63, 37);
 9     private final GreatBall gb = new GreatBall(687, 37);
10     private final UltraBall ub = new UltraBall(63, 362);
11     private final MasterBall mb = new MasterBall(687, 362);
12
13     private final PokeBall[] orbs = new PokeBall[]{b, pb, gb, ub, mb};
14
15     public void drawSet(Graphics g) {
16         for (PokeBall p : orbs) {
17             p.drawBall(g);
18         }
19     }
20 }
21