예제 #1
0
        public void Undo()
        {
            if (UndoObjects.Count == 0)
            {
                return;
            }

            while (UndoObjects.Count != 0)
            {
                UndoBase lUndoObject = UndoObjects.Pop();

                if (lUndoObject == null)
                {
                    return;
                }

//				Console.WriteLine("Undo> " + lUndoObject.ToString());

                lUndoObject.Undo(Board);
            }
        }
예제 #2
0
 public void Add(UndoBase pUndoObject)
 {
     UndoObjects.Push(pUndoObject);
 }
예제 #3
0
 public void Add(UndoBase pUndoObject)
 {
     UndoObjects.Push(pUndoObject);
 }