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