Phoenix2D-Library  0.10
Namespaces | Functions | Variables
Parser.cpp File Reference
#include <iostream>
#include <cstdlib>
#include <boost/regex.hpp>
#include <pthread.h>
#include <list>
#include <unistd.h>
#include "Parser.h"
#include "Game.h"
#include "Self.h"
#include "Flag.h"
#include "Player.h"
#include "Server.h"
#include "Position.h"
#include "World.h"
#include "Ball.h"
#include "PlayMode.h"
#include "Vector2D.h"
#include "Trainer.h"
#include "Config.h"
#include "Logger.h"
Include dependency graph for Parser.cpp:

Go to the source code of this file.

Namespaces

 Phoenix
 

Functions

static boost::regex Phoenix::see_regex ("\\(([^()]+)\\)\\s*([\\d\\.\\-etk\\s]*)")
 
boost::regex Phoenix::hear_referee_regex ("\\(hear\\s+(\\d+)\\s+referee\\s+([\\\"\\w\\s]*)\\)")
 
boost::regex Phoenix::hear_coach_regex ("\\(hear\\s+(\\d+)\\s+(online_coach_left|online_coach_right)\\s+([\\\"\\w\\s]*)\\)")
 
boost::regex Phoenix::hear_trainer_regex ("\\(hear\\s+(\\d+)\\s+coach\\s+([\\\"\\w\\s]*)\\)")
 
boost::regex Phoenix::hear_player_regex ("\\(hear\\s+(\\d+)\\s+([\\d\\.\\-e]+)\\s+our\\s+(\\d+)\\s+([\\\"\\w\\s]+)\\)")
 
bool Phoenix::compareFlags (Flag f0, Flag f1)
 
void * Phoenix::process_sense_body (void *arg)
 
void * Phoenix::process_see (void *arg)
 

Variables

static std::string Phoenix::sense_body_message = ""
 
static std::string Phoenix::see_message = ""
 
static bool Phoenix::see_received = false
 
static bool Phoenix::processing_body = false
 
static bool Phoenix::processing_see = false
 
static Self * Phoenix::self_ptr = 0
 
static Game * Phoenix::game_ptr = 0
 
static World * Phoenix::world_ptr = 0
 
static PlayMode * Phoenix::play_mode_ptr = 0
 
static Trainer * Phoenix::trainer_ptr = 0
 
static pthread_cond_t Phoenix::see_cond = PTHREAD_COND_INITIALIZER
 
static pthread_mutex_t Phoenix::see_mutex = PTHREAD_MUTEX_INITIALIZER
 
static pthread_cond_t Phoenix::sense_body_cond = PTHREAD_COND_INITIALIZER
 
static pthread_mutex_t Phoenix::sense_body_mutex = PTHREAD_MUTEX_INITIALIZER
 
pthread_t Phoenix::thread_sense_body = 0
 
pthread_t Phoenix::thread_see = 0
 
pthread_attr_t Phoenix::attr