public PlayerTrain(Hand h) : base() { isOpen = false; hand = h; }
/// <summary> /// This is the most appropriate constructor for the class. /// </summary> /// <param name="h">Represents the Hand object to which the train belongs</param> /// <param name="engineValue">Represents the first playable value on the train</param> public PlayerTrain(Hand h, int engineValue) : base(engineValue) { isOpen = false; hand = h; }
/// <summary> /// Determines whether a hand can play a specific domino on this train and if the domino must be flipped. /// Because the rules for playing are different for Mexican and Player trains, this method is abstract. /// </summary> public abstract bool IsPlayable(Hand h, Domino d, out bool mustFlip);