We have 3 types of Games,
type1
type2
type3
every type of game gets its own type Extension
gameType1Extension
gameType2Extension
gameType3Extension
now, we have a code :
Code: Select all
public Collection<User> getRoomUsers() {
return this.getParentRoom().getUserList();
}
now, question is if we have three rooms of gameType1 open, will each room get its own new instance of that gameType1Extension class, or not, if they do not get each their ow instance of gameType1Extension then our code will not work, what is the workaround if that is the case? can we force to have each game its own instance of gameType1Extension?