Commit 6c102f39 authored by dkonam's avatar dkonam

classes : Game + classic + belgian

parent 92d6e590
/*
* 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;
import java.util.ArrayList;
/**
*
* @author Davy
*/
public class BelgianGame extends Game{
public BelgianGame(StatGame statGame, ArrayList<Player> players, ArrayList<LightPublicUser> spectators, ArrayList<Message> messages) {
super(statGame, players, spectators, messages);
}
}
/*
* 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;
import java.util.ArrayList;
/**
*
* @author Davy
*/
public class ClassicGame extends Game{
public ClassicGame(StatGame statGame, ArrayList<Player> players, ArrayList<LightPublicUser> spectators, ArrayList<Message> messages) {
super(statGame, players, spectators, messages);
}
}
......@@ -5,10 +5,35 @@
*/
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 StatGame getStatGame()
{
return this.statGame;
}
public ArrayList<PublicUser> getRecipients()
{
return null;
}
}
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