wworld
Class WorldApplication

java.lang.Object
  |
  +--wworld.WorldApplication

public class WorldApplication
extends java.lang.Object

Class responsible for the simulation setup, start, end and command line arguments. Contains the Main() function.


Constructor Summary
WorldApplication()
           
 
Method Summary
static void generateRandWorld(int seed, int size)
          Generates a random world when called.
static void main(java.lang.String[] args)
           
 void makeSocket(int portNumber)
          Sets up communication mechanism on the server side.
 void printStats()
           
 void readWorldFromFile(Environment env, java.io.BufferedReader in)
          Reads in the wumpus world from the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorldApplication

public WorldApplication()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
java.io.IOException

printStats

public void printStats()

makeSocket

public void makeSocket(int portNumber)
Sets up communication mechanism on the server side.


readWorldFromFile

public void readWorldFromFile(Environment env,
                              java.io.BufferedReader in)
Reads in the wumpus world from the file.


generateRandWorld

public static void generateRandWorld(int seed,
                                     int size)
Generates a random world when called.