示例#1
0
        public Snake(Board board, Graphics graphics, Position position) : base(graphics, position)
        {
            board.ThrowIfNull(nameof(board));

            this.board    = board;
            this.graphics = graphics;

            body = new List <Entity>
            {
                new Drawable(graphics, position)
            };

            MovementDirection = Utils.GetRandomEnumValue(exclusions: Direction.None);
        }