Commit 8a809a4d authored by dkonam's avatar dkonam

classes : Game + classic + belgian

parent e4efb8d9
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.utclo23.data.structure;
/**
*
* @author Davy
*/
public class BelgianGame extends Game {
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.utclo23.data.structure;
/**
*
* @author Davy
*/
public class ClassicGame extends Game {
}
......@@ -5,10 +5,38 @@
*/
package com.utclo23.data.structure;
import java.util.ArrayList;
/**
*
* @author Davy
*/
public class Game {
public abstract class Game {
private StatGame statGame;
private ArrayList<Player> players;
private ArrayList<LightPublicUser> spectators;
private ArrayList<Message> messages;
public Game(StatGame statGame, ArrayList<Player> players, ArrayList<LightPublicUser> spectators, ArrayList<Message> messages) {
this.statGame = statGame;
this.players = players;
this.spectators = spectators;
this.messages = messages;
}
public ArrayList<LightPublicUser> getRecipients()
{
return null;
}
public StatGame getStatGame() {
return statGame;
}
public void setStatGame(StatGame statGame) {
this.statGame = statGame;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment