azqhdyt4pggs7smw
2 questions
1 answers
Avatar
0
azqhdyt4pggs7smw Beginner
Difference between PlayerManger in service class vs in room class
In the one-two-three demo I found that there 2 PlayerManager in GameService class. One is an attribute in the class and another one is in the room. Are there any difference between the two? Which one should I use when add or removing a player?
Answer
Avatar
1
azqhdyt4pggs7smw Beginner
LocatedPlayerManager for a mahjong game
I tried to turn the one-two-three demo to a mahjong game. I stuck at where to get the available() method. It was in the AbstractPlayerManager but it is not extended in the DefaultLocatedPlayerManager. Is this the right class to implement a room that has a max players count?
Answer