constructeurs pour classes abstrraites
This commit is contained in:
@@ -32,8 +32,11 @@ public abstract class AbstractGame {
|
||||
// a map from the enum Player to the genuine Player AbstractGamePlayer
|
||||
private EnumMap<Player, AbstractGamePlayer> mapPlayers;
|
||||
|
||||
//NB. pas de constructeur possible on est abstrait, il faut faire une usine abstraite.
|
||||
|
||||
// constructeur à appeler dans le constructeur d'un fils concret avec super.
|
||||
public AbstractGame(IBoard b, EnumMap<Player,AbstractGamePlayer> m){
|
||||
this.currentBoard=b;
|
||||
this.mapPlayers=m;
|
||||
}
|
||||
|
||||
/**
|
||||
* boucle de contrôle du jeu.
|
||||
|
Reference in New Issue
Block a user