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

main.cpp 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.cpp:

Include dependency graph

Go to the source code of this file.

Functions

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

Variables

Logger Log
Logger LogDraw


Detailed Description

File:          main.cpp
Project:       Robocup Soccer Simulation Team: UvA Trilearn
Authors:       Jelle Kok
Created:       28/11/2000
Last Revision: $ID$
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.

Changes

Date Author Comment 28/11/2000 Jelle Kok Initial version created

Definition in file main.cpp.


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 70 of file main.cpp.

References Logger::addLogLevel(), Logger::addLogRange(), Connection::disconnect(), FormationT, PlayerSettings::getInitialFormation(), ServerSettings::getPort(), Player::mainLoop(), MAX_MSG, MAX_TEAM_NAME_LENGTH, Parse::parseFirstDouble(), Parse::parseFirstInt(), printOptions(), ServerSettings::readValues(), GenericValues::readValues(), Logger::restartTimer(), Logger::setOutputStream(), and Logger::showLogLevels().

void printOptions  
 

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

Definition at line 280 of file main.cpp.

Referenced by main().


Variable Documentation

Logger Log
 

This is a reference to the normal Logger class

Definition at line 61 of file main.cpp.

Logger LogDraw
 

This is a reference to the drawing Logger class

Definition at line 62 of file main.cpp.


Generated on Fri Nov 7 11:45:49 2003 for UvA Trilearn 2003 Base Code by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001