Tournament program
Ok im trying to make different types of tournaments..something like this
publicabstractclass Tournament{
private String tourny_name;
private Date date_started;
private List<Subscriber> list_subscribers =new LinkedList<Subscriber>();
public Tournament(String name1, Date date_started1){
this.tourny_name = name1;
this.date_started = date_started1;
}
}
Wat im trying to do is different types of tournaments..like leagues where every player has his points and if its a tournament of the type Pyramid it should show in wat level of the pyramid the player is.
I could make a class Subscriber like this:
publicclass Subscriber{
private Player player;
privateint points = 0;
privateint level = 1;//level 1 being at the top of the pyramid
public Subscriber(Player player,int points){
this.player = player;
this.points = points;
}
public Subscriber(Player player,int level){
this.player = player;
this.level = level;
}
}
If i do a class Subscriber to tht specific tourny tht would mean tht i would use either the level or the points not both of the private int variables (i know the compiler doesnt let me do this 2 constructors because they are the same for him) and this is a bad way to solve the problem i think.
Any of u know how to solve this kind of problem? i would rather not to mess with the Player class because its dependable of PlayerManager.
Thanks in advance :)

