ajout de commande serveur - clien

This commit is contained in:
marc barbier
2020-12-12 14:53:44 +01:00
parent e1c8e312b2
commit 6fd5ec2198
4 changed files with 33 additions and 4 deletions
@@ -95,7 +95,7 @@ import java.util.ArrayList;
import java.util.List;
public class CardRegistery {
public static List<Class> registry;
public static List<Class<? extends Card>> registry;
public CardRegistery()
{
@@ -209,7 +209,9 @@ public class CardRegistery {
return a != -1 ? a : 0;
}
public static Class get(int index) {
public static Class<? extends Card> get(int index) {
if(registry.size() <= index || index < 0) return null;
return registry.get(index);
}