Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

main.C File Reference

#include "SenseHandler.h"
#include "Player.h"
#include "Parse.h"
#include <string.h>
#include <pthread.h>
#include <stdlib.h>

Include dependency graph for main.C:

Include dependency graph

Go to the source code of this file.

Functions

void printOptions ()
int main (int argc, char *argv[])

Variables

Logger Log


Detailed Description

File:          main.C
Project:       Robocup Soccer Simulation Team: UvA Trilearn 2001
Authors:       Jelle Kok and Remco de Boer
Created:       28/11/2000
Last Revision: 06/01/2002
Contents:      This file contains the main of the program that is used
               to start the agent. It creates all classes, starts the different 
               threads and calls the mainloop. Furthermore it parses the
               specified arguments to adjust the variables.

Definition in file main.C.


Function Documentation

int main int    argc,
char *    argv[]
 

This is the main function and creates and links all the different classes. First it reads in all the parameters from the command prompt (<program name> -help) and uses these values to create the classes. After all the classes are linked, the mainLoop in the Player class is called.

Definition at line 59 of file main.C.

References Connection::disconnect(), FT_INITIAL, ServerSettings::getPort(), Player::mainLoop(), MAX_MSG, MAX_TEAM_NAME_LENGTH, Parse::parseFirstDouble(), Parse::parseFirstInt(), printOptions(), ServerSettings::readValues(), GenericValues::readValues(), Logger::restartTimer(), Logger::setMaxLogLevel(), Logger::setMinLogLevel(), Logger::setOutputStream(), and Player::test_only_update().

void printOptions  
 

This function prints the command prompt options that can be supplied to the program.

Definition at line 208 of file main.C.

Referenced by main().


Variable Documentation

Logger Log
 

This is a reference to the Logger to write log info to

Definition at line 52 of file main.C.


Generated on Thu Mar 7 00:37:47 2002 for UvA Trilearn 2001 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001