I'm basically programming a card game. This one has class named c_Card, which has Card properties (such as name, cost etc).
I'm trying to create an instance of this class for each card I generate, like:
// Constructor:
public c_card(string name, int cost)
{
Name = name;
Cost = cost;
}
// Creating the object:
c_card c1 = new c_card("CardName", 2);
So I'm wondering if I've to create a new object for each card, and so, how to increment the object name, or is there a better option to manipulate and retrieve my cards?
Many thanks in advance.