public void removeAuthoringToolStateListener(edu.cmu.cs.stage3.alice.authoringtool.event.AuthoringToolStateListener listener) {
stateListeners.remove(listener);
}
protected void fireStateChanging(int previousState, int currentState) {
AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(previousState, currentState, world);
for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
try {
listener.stateChanging(ev);
} catch (Throwable t) {