/// <summary> /// Create a new deck /// </summary> /// <param name="pCardType">The cards type are the cards the deck needs to contain</param> /// <param name="pDeckType">The type of deck we want</param> /// <returns></returns> public static Pile GreatePile(PileType pPile, VisableCardStyle pShowMode, PickStyle pPickMode, Vector3 pPosition) { //Get a new pile. var pile = GetPile(pPile, pPosition); pile.Initialize(pShowMode, pPickMode); //Name the pile pile.name = string.Format("{0}_{1}", pile.GetType().Name, pile.PileId); return pile; }
public override void Initialize(VisableCardStyle pShowMode, PickStyle pPickMode) { VisableCardStyle = pShowMode; PickStyle = pPickMode; }
/// <summary> /// Initializes the pile /// </summary> public abstract void Initialize(VisableCardStyle pShowMode, PickStyle pPickMode);