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

BasicCoach.cpp File Reference

#include "BasicCoach.h"
#include "Parse.h"
#include <sys/poll.h>

Include dependency graph for BasicCoach.cpp:

Include dependency graph

Go to the source code of this file.

Functions

void * stdin_callback (void *v)

Variables

Logger Log


Detailed Description

File:          BasicCoach.cpp
Project:       Robocup Soccer Simulation Team: UvA Trilearn
Authors:       Jelle Kok
Created:       03/03/2001
Last Revision: $ID$
Contents:      This file contains the class definitions for the
                      BasicCoach which contains the main structure for the 
                      coach.

Changes

Date Author Comment 03/03/2001 Jelle Kok Initial version created

Definition in file BasicCoach.cpp.


Function Documentation

void* stdin_callback void *    v
 

This method can be called in a separate thread (see pthread_create) since it returns a void pointer. It is assumed that this function receives a BasicPlayer class as argument. The only thing this function does is starting the method handleStdin() from the corresponding BasicPlayer class that listens to user input from the keyboard. This function is necessary since a method from a class cannot be an argument of pthread_create.

Parameters:
v  void pointer to a BasicPlayer class.
Returns:
should never return since function handleStdin has infinite loop

Definition at line 173 of file BasicCoach.cpp.

References BasicCoach::handleStdin(), and Logger::log().


Variable Documentation

Logger Log
 

This is a reference to the Logger to write loginfo to

Definition at line 56 of file BasicCoach.cpp.


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