How to get default room Name in Java Side

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
bambam
Posts: 4
Joined: 08 Jul 2011, 12:18

How to get default room Name in Java Side

Post by bambam »

Hi,

In Admin tool , i have assign three default room name (default_0,default_1 and default_2). When client side(Flex) send the default room name default_0 using JoinRoomRequest class
var request:JoinRoomRequest = new JoinRoomRequest(default_0);
sfs.send(request);

then Java side how to find this default room name i.e default_0? In which class and method use Java side.

In client side(flex) how to implement RoomExtension class/jar file at the time of JoinRoomRequest.

Actually my requirement is single game platform contain three type of game(default_0,default_1 and default_2). When first player play default_0 type game then its go room name default_0, when second player play default_1 type game , then its go room name default_1 that means present time do not start the game. When third player enter same zone with default room name is default_0. Then create one game room inside default_0 game room. Then start the game between first player and third player and so on another player and room....... . In which side handle this sensory in good way Javaside/ Client side please suggest and how its possible?

Thanks & Regs
Bambam
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Post by rjgtav »

Hi. In my opinion, what you need is Room Groups. This way you can group rooms of the same game in the same group.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Post Reply