23 lines
337 B
Java
23 lines
337 B
Java
public enum Deck {
|
|
One(1),
|
|
Two(2),
|
|
Three(3);
|
|
|
|
Deck(int i) {
|
|
}
|
|
|
|
public static Deck GetDeck(int i){
|
|
switch (i)
|
|
{
|
|
case 1:
|
|
return One;
|
|
case 2:
|
|
return Two;
|
|
case 3:
|
|
return Three;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|