import java.awt.*;
import WizCard;
import ChooseObjectType;

public class MainCard extends WizCard
 {
  Checkbox newObject,interact,trigger,quit;
  Universe u;
 
  public MainCard(Wizard w, Universe u)
   {
    super(w);
    this.u = u;

    setLayout(new GridLayout(0,1));

    add(new Label("How do you want to edit the current scenario?"));

    CheckboxGroup cg = new CheckboxGroup();
 
    add(newObject = new Checkbox("Add a new object, frame, or event to the scenario.",cg,true));
    add(interact = new Checkbox("Cause an interaction between two existing objects.",cg,false));
    add(trigger = new Checkbox("Cause an existing object to change its state at some point in spacetime.",cg,false));
    add(quit = new Checkbox("I'm done with setting up the scenario, thanks.", cg, false));
   }

  public void doNext()
   {
    if (newObject.getState())
     {
      w.addCard(new ChooseObjectType(w,u));
      return;
     }

    if (quit.getState())
     {
      w.dispose();
     }
   }
 }
