You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
483 B
28 lines
483 B
using System;
|
|
using System.Collections.Generic;
|
|
using TheGameExtreme.model.card;
|
|
|
|
namespace TheGameExtreme.model
|
|
{
|
|
public abstract class Deck
|
|
{
|
|
|
|
protected List<Card> deck = new List<Card>();
|
|
|
|
public int size()
|
|
{
|
|
return deck.Count;
|
|
}
|
|
|
|
public void removeAt(int index)
|
|
{
|
|
deck.RemoveAt(index);
|
|
}
|
|
|
|
public Card getCard(int index)
|
|
{
|
|
return deck[index];
|
|
}
|
|
}
|
|
}
|