vooga.engine.networking.server
Class VoogaServer

java.lang.Object
  extended by vooga.engine.networking.server.VoogaServer

public class VoogaServer
extends java.lang.Object

This class should be running on the server constantly to ensure that games that use the networking API have connection to the server at all times. Makes and starts the VoogaDaemon for each game that uses the networking API.


Constructor Summary
VoogaServer()
           
 
Method Summary
static int getChatPort(java.lang.String gameName)
          Static method to return the port that the chat is run on.
static int getGamePort(java.lang.String gameName)
          Static method to return the port that the game is run on.
static void main(java.lang.String[] args)
          Main method iterates through the list of games in the XML file and runs them on the specified port with the specified ClientHandler subclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoogaServer

public VoogaServer()
Method Detail

main

public static void main(java.lang.String[] args)
Main method iterates through the list of games in the XML file and runs them on the specified port with the specified ClientHandler subclass.


getGamePort

public static int getGamePort(java.lang.String gameName)
Static method to return the port that the game is run on.

Parameters:
gameName - the name of the game whose port you want to find
Returns:
port the port that the game is run on

getChatPort

public static int getChatPort(java.lang.String gameName)
Static method to return the port that the chat is run on.

Parameters:
gameName - the name of the game whose chat port you want to find
Returns:
the port that the game is run on