Esempio n. 1
0
 /// <summary>
 /// Is not necessary.
 /// </summary>
 /// <param name="user">The object that should be visited.</param>
 /// <exception cref="ArgumentNullException">
 /// If user is null.
 /// </exception>
 public void Visit(TurtleAttributes user)
 {
     if (user == null)
     {
         throw new ArgumentNullException();
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="User"/> class.
        /// </summary>
        public User()
        {
            this.TurtleAttributes = new List <TurtleAttributes>();
            TurtleAttributes baseTurtle = new TurtleAttributes();

            this.TurtleAttributes.Add(baseTurtle);
            this.EditingIsFinished = false;
        }
Esempio n. 3
0
        /// <summary>
        /// Is not necessary.
        /// </summary>
        /// <param name="attributes">The attributes of a turtle.</param>
        /// <exception cref="ArgumentNullException">
        /// If attributes is null.
        /// </exception>
        public void Visit(TurtleAttributes attributes)
        {
            if (attributes == null)
            {
                throw new ArgumentNullException();
            }

            // do nothing.
        }
Esempio n. 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Executioner" /> class.
        /// </summary>
        /// <param name="attributes">The attributes of the turtle this class should work off.</param>
        /// <param name="board">The draw board where the turtle and its tracks will be stored.</param>
        /// <exception cref="ArgumentNullException">
        /// If attributes or board is null.
        /// </exception>
        public Executioner(TurtleAttributes attributes, DrawBoard board)
        {
            if (attributes == null)
            {
                throw new ArgumentNullException();
            }
            else if (board == null)
            {
                throw new ArgumentNullException();
            }

            this.currentAttributes = attributes;
            this.renderer          = new ExecutionRenderer();
            this.board             = board;
        }