protected void fireMoveModelChanged() { if (m_changeListeners != null) { for (Iterator it = m_changeListeners.iterator(); it.hasNext(); ) { ((GameModelChangeListener) it.next()).moveModelChanged(this); } } }
public void removeChangeListener(GameModelChangeListener listener) { m_changeListeners.remove(listener); if (m_changeListeners.size() == 0) m_changeListeners = null; }
public void addChangeListener(GameModelChangeListener listener) { if (m_changeListeners == null) m_changeListeners = new ArrayList(); m_changeListeners.add(listener); }