Ejemplo n.º 1
0
    /// <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;
    }
Ejemplo n.º 2
0
 public override void Initialize(VisableCardStyle pShowMode, PickStyle pPickMode)
 {
     VisableCardStyle = pShowMode;
     PickStyle = pPickMode;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes the pile
 /// </summary>
 public abstract void Initialize(VisableCardStyle pShowMode, PickStyle pPickMode);