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

SoccerTypes.cpp File Reference

#include <iostream>
#include <stdio.h>
#include <string.h>
#include "SoccerTypes.h"
#include "Parse.h"

Include dependency graph for SoccerTypes.cpp:

Include dependency graph

Go to the source code of this file.

Functions

ostream & operator<< (ostream &os, Time t)

Variables

const char * ObjectNames []


Detailed Description

File:          SoccerTypes.cpp
Project:       Robocup Soccer Simulation Team: UvA Trilearn
Authors:       Jelle Kok
Created:       28/11/2000
Last Revision: $ID$
Contents:      This file contains the different enumerations and
               constants that are important in the Soccer Server.
               Furthermore it contains the class SoccerCommand which is
               used to denote the different possible soccer commands and
               the class SoccerTypes that contains all kind of static
               methods to translate text strings that are received from
               the server into the soccer types (=enumerations) that
               are defined here.  Finally it contains the Time class which
               holds a two-tuple that represents the time in the soccer server.


Changes

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

Definition in file SoccerTypes.cpp.


Function Documentation

ostream& operator<< ostream &    os,
Time    t
 

Overloaded version of the C++ output operator for a Time class. This operator makes it possible to use Time objects in output statements (e.g. cout << t). The current cycle and the stopped time are printed in the format (t1,t2).

Parameters:
os  output stream to which information should be written
v  a Time object which must be printed
Returns:
output stream containing (x,y)

Definition at line 443 of file SoccerTypes.cpp.

References Time::getTime(), and Time::getTimeStopped().


Variable Documentation

const char* ObjectNames[]
 

Initial value:

{
"(b)", "(g l)", "(g r)", "(g ?)", "(l l)", "(l r)", "(l b)", "(l t)", 
"(f l t)","(f t l 50)", "(f t l 40)", "(f t l 30)", "(f t l 20)", 
"(f t l 10)", "(f t 0)","(f c t)","(f t r 10)", "(f t r 20)", "(f t r 30)", 
"(f t r 40)","(f t r 50)", "(f r t)", "(f r t 30)", "(f r t 20)","(f r t 10)",
"(f g r t)" , "(f r 0)", "(f g r b)" , "(f r b 10)", "(f r b 20)",
"(f r b 30)", "(f r b)"   , "(f b r 50)", "(f b r 40)", "(f b r 30)",
"(f b r 20)", "(f b r 10)", "(f c b)"   , "(f b 0)"   , "(f b l 10)",
"(f b l 20)", "(f b l 30)", "(f b l 40)", "(f b l 50)", "(f l b)",
"(f l b 30)", "(f l b 20)", "(f l b 10)", "(f g l b)" , "(f l 0)",
"(f g l t)" , "(f l t 10)", "(f l t 20)", "(f l t 30)", "(f p l t)",
"(f p l c)", "(f p l b)",   "(f p r t)",  "(f p r c)",  "(f p r b)", "(f c)" }
This constant defines the string names corresponding to the ObjectT names, defined in SoccerTypes.h. Players are not added since they depend on the team name. Note that the order is important, since the names are in the same order as the ObjectT enumeration.

Definition at line 1129 of file SoccerTypes.cpp.

Referenced by SoccerTypes::getObjectStr().


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