Beispiel #1
0
    public void Init(IUndoActions undo)
    {
        if (undo == null)
        {
            throw new ArgumentNullException("undo");
        }

        this.undo = undo;
    }
Beispiel #2
0
    public ScoreBoard(IGameActions actions, IUndoActions undo)
    {
        if (undo == null)
        {
            throw new ArgumentNullException("undo");
        }
        if (actions == null)
        {
            throw new ArgumentNullException("actions");
        }

        this.boardActions = actions;
        this.undoBoard    = undo;
    }