Esempio n. 1
0
 /// <summary>Should be called on OK/Cancel commands.  Returns true if it is consumed by ending a previous move</summary>
 public bool DoOKCancel(bool ok)
 {
     if (m_CurrentMove != null && !(m_CurrentMove is CmdMouseMove))
     {
         m_CurrentMove.End(ok);
         m_CurrentMove = null;
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 public void SetMouseMove(IMoveCommand move)
 {
     m_CurrentMove?.End(false);             // cancel the old one, if any
     m_CurrentMove = move;
 }