﻿// Copyright (c) 2018 Nikolay Zahariev <zahasoft.com>. Licensed under the MIT License.

namespace Zahasoft.Roulette
{
    using System.Collections.Generic;
    using Zahasoft.Roulette.Bets;
    using Zahasoft.Roulette.Systems;

    /// <summary>
    /// Roulette's player.
    /// </summary>
    public class Player : IPlayer
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Player"/> class.
        /// </summary>
        /// <param name="name">Player's name</param>
        /// <param name="cash">Player's cash</param>
        public Player(string name, long cash)
        {
            Name = name;
            Cash = cash;
        }

        /// <inheritdoc/>
        public string Name { get; }

        /// <inheritdoc/>
        public long Cash { get; set; }

        /// <inheritdoc/>
        public ICollection<IBet> Bets { get; set; }

        /// <inheritdoc/>
        public IPlayingSystem System { get; set; }
    }
}
