init() function repeat more than one time at server start
Posted: 08 Dec 2007, 13:19
Hi,
We are creating a new online games application.
I defined some properties, like gameType and buyIn.
gameType is an Enum class, buyIn an array of buyIns.
When i start the server i automatically create rooms iterating and nest iterating trough gameType and buyIns so that finally i create buyIn.size *
gameType.values().length number of rooms.
I done this on the init() function:
the startServer() function initialize all the server rooms like i said.
The init() is multirepeated randomly.
it's my mistake or a bug?
thx
We are creating a new online games application.
I defined some properties, like gameType and buyIn.
gameType is an Enum class, buyIn an array of buyIns.
When i start the server i automatically create rooms iterating and nest iterating trough gameType and buyIns so that finally i create buyIn.size *
gameType.values().length number of rooms.
I done this on the init() function:
Code: Select all
public void init()
{
//declare the instance of my extensionHelper
helper = ExtensionHelper.instance();
//initialize my zone
z = helper.getZone("myRoom");
//Initialize Zone's room
startServer();
// Traces the message to the AdminTool and to the console
trace("Hi! The myServer Server is initializing");
}
The init() is multirepeated randomly.
it's my mistake or a bug?
thx