#include "ActHandler.h"
#include "SenseHandler.h"
#include "BasicCoach.h"
#include "Parse.h"
#include <string.h>
#include <pthread.h>
#include <stdlib.h>
Include dependency graph for mainCoach.cpp:
Go to the source code of this file.
Functions | |
void | printOptions () |
int | main (int argc, char *argv[]) |
Variables | |
Logger | Log |
File: mainCoach.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 coach. It creates all classes, starts the different threads and calls the mainloop. Furthermore it parses the incoming arguments to adjust the variables.
Changes
Date Author Comment 28/11/2000 Jelle Kok Initial version created
Definition in file mainCoach.cpp.
|
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 71 of file mainCoach.cpp. References Logger::addLogLevel(), Logger::addLogRange(), Connection::disconnect(), FormationT, ServerSettings::getCoachPort(), PlayerSettings::getInitialFormation(), BasicCoach::mainLoopNormal(), MAX_MSG, MAX_TEAM_NAME_LENGTH, Parse::parseFirstDouble(), Parse::parseFirstInt(), printOptions(), ServerSettings::readValues(), GenericValues::readValues(), Logger::restartTimer(), and Logger::setOutputStream(). |
|
This function prints the command prompt options that can be supplied to the program. Definition at line 241 of file mainCoach.cpp. |
|
This is a reference to the Logger to write log info to Definition at line 63 of file mainCoach.cpp. |