Phoenix2D-Library
0.10
|
#include <cstdlib>
#include <sstream>
#include <cmath>
#include <algorithm>
#include <iostream>
#include <boost/regex.hpp>
#include <boost/circular_buffer.hpp>
#include "Command.h"
#include "Config.h"
#include "Self.h"
#include "Normal.h"
#include "Server.h"
#include "Game.h"
Go to the source code of this file.
Namespaces | |
Phoenix | |
Functions | |
boost::regex | Phoenix::sense_body_regex ("^\\(sense_body\\s+\\d+\\s+""\\(view_mode\\s+(\\w+)\\s+(\\w+)\\)\\s*""\\(stamina\\s+([\\d\\.\\-e]+)\\s+([\\d\\.\\-e]+)\\s+([\\d\\.\\-e]+)\\)\\s*""\\(speed\\s+([\\d\\.\\-e]+)\\s+([\\d\\.\\-e]+)\\)\\s*""\\(head_angle\\s+([\\d\\.\\-e]+)\\)\\s*""\\(kick\\s+(\\d+)\\)\\s*""\\(dash\\s+(\\d+)\\)\\s*""\\(turn\\s+(\\d+)\\)\\s*""\\(say\\s+(\\d+)\\)\\s*""\\(turn_neck\\s+(\\d+)\\)\\s*""\\(catch\\s+(\\d+)\\)\\s*""\\(move\\s+(\\d+)\\)\\s*""\\(change_view\\s+(\\d+)\\)\\s*""\\(arm\\s+""\\(movable\\s+(\\d+)\\)\\s*""\\(expires\\s+(\\d+)\\)\\s*""\\(target\\s+([\\d\\.\\-e]+)\\s+([\\d\\.\\-e]+)\\)\\s*""\\(count\\s+(\\d+)\\)\\s*""\\)\\s*""\\(focus\\s+""\\(target\\s+(none|[lr]\\s+\\d+)\\)\\s*""\\(count\\s+(\\d+)\\)\\s*""\\)\\s*""\\(tackle\\s+""\\(expires\\s+(\\d+)\\)\\s*""\\(count\\s+(\\d+)\\)\\s*""\\)\\s*""\\(collision\\s+(none|\\(ball\\)|\\(player\\)|\\(post\\)|\\s)+\\)\\s*""\\(foul\\s+""\\(charged\\s+(\\d+)\\)\\s*""\\(card\\s+(none|yellow|red)\\)\\s*""\\)\\s*""\\)$") |
static boost::circular_buffer < std::string > | Phoenix::view_mode_width_buffer (Config::BUFFER_MAX_HISTORY,"normal") |
static boost::circular_buffer < std::string > | Phoenix::view_mode_quality_buffer (Config::BUFFER_MAX_HISTORY,"high") |
static boost::circular_buffer < double > | Phoenix::stamina_buffer (Config::BUFFER_MAX_HISTORY, 0.0) |
static boost::circular_buffer < double > | Phoenix::effort_buffer (Config::BUFFER_MAX_HISTORY, 0.0) |
static boost::circular_buffer < double > | Phoenix::stamina_capacity_buffer (Config::BUFFER_MAX_HISTORY, 0.0) |
static boost::circular_buffer < double > | Phoenix::amount_of_speed_buffer (Config::BUFFER_MAX_HISTORY, 0.0) |
static boost::circular_buffer < double > | Phoenix::direction_of_speed_buffer (Config::BUFFER_MAX_HISTORY, 0.0) |
static boost::circular_buffer < double > | Phoenix::head_angle_buffer (Config::BUFFER_MAX_HISTORY, 0.0) |
static boost::circular_buffer < int > | Phoenix::kick_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::dash_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::turn_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::say_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::turn_neck_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::catch_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::move_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::change_view_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::arm_movable_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::arm_expires_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < double > | Phoenix::arm_dist_buffer (Config::BUFFER_MAX_HISTORY, 0.0) |
static boost::circular_buffer < double > | Phoenix::arm_dir_buffer (Config::BUFFER_MAX_HISTORY, 0.0) |
static boost::circular_buffer < int > | Phoenix::arm_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < std::string > | Phoenix::focus_target_buffer (Config::BUFFER_MAX_HISTORY,"none") |
static boost::circular_buffer < int > | Phoenix::focus_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::tackle_expires_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < int > | Phoenix::tackle_count_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < std::list< std::string > > | Phoenix::collisions_buffer (Config::BUFFER_MAX_HISTORY, empty_vector) |
static boost::circular_buffer < int > | Phoenix::foul_charged_buffer (Config::BUFFER_MAX_HISTORY, 0) |
static boost::circular_buffer < std::string > | Phoenix::foul_card_buffer (Config::BUFFER_MAX_HISTORY,"none") |
std::string | Phoenix::getPlayerTypeParameter (const std::string &player_type, std::string parameter) |
std::string | Phoenix::getPlayerParameter (const std::string &player_params, std::string parameter) |
double | Phoenix::angleMean (std::list< double > arcs) |
bool | Phoenix::triangular (Flag *flag0, Flag *flag1, double &x_t, double &y_t, double &theta_t, double &error_d) |
bool | Phoenix::areaCheck (double x_min, double x_max, double rmax, double x_c, double y_c, double error) |
Variables | |
int * | Phoenix::types_id |
double * | Phoenix::player_speed_max |
double * | Phoenix::stamina_inc_max |
double * | Phoenix::player_decay |
double * | Phoenix::inertia_moment |
double * | Phoenix::dash_power_rate |
double * | Phoenix::player_size |
double * | Phoenix::kickable_margin |
double * | Phoenix::kick_rand |
double * | Phoenix::extra_stamina |
double * | Phoenix::effort_max |
double * | Phoenix::effort_min |
double * | Phoenix::kick_power_rate |
double * | Phoenix::foul_detect_probability |
double * | Phoenix::catchable_area_l_stretch |
double | Phoenix::u [3] = {0.0, 0.0, 0.0} |
bool | Phoenix::positioned = false |
static double | Phoenix::x = 0.0 |
static double | Phoenix::y = 0.0 |
static double | Phoenix::theta = 0.0 |
static std::list< Command * > | Phoenix::last_commands_sent |
std::list< std::string > | Phoenix::empty_vector |