BWAPI
Classes | Namespaces | Defines | Typedefs | Functions
SPAR/AIModule/BWTA/spar/src/functions.h File Reference
#include <iostream>
#include <boost/format.hpp>
#include <CGAL/MP_Float.h>
#include <CGAL/Quotient.h>
#include <vector>
#include <map>
#include <list>
#include <boost/cstdint.hpp>
#include <CGAL/basic.h>
#include <fstream>
#include <cassert>
#include <string>
#include <sstream>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Filtered_kernel.h>
#include <CGAL/Lazy_exact_nt.h>
#include <CGAL/Segment_Delaunay_graph_traits_2.h>
#include <CGAL/Segment_Delaunay_graph_2.h>
#include <CGAL/Line_2.h>
#include <CGAL/Direction_2.h>
#include <CGAL/Polygon_2.h>
#include <CGAL/Point_set_2.h>
#include <CGAL/Cartesian.h>
#include <CGAL/Arr_segment_traits_2.h>
#include <CGAL/Arrangement_2.h>
#include <CGAL/Arr_simple_point_location.h>
#include <CGAL/Arr_extended_dcel.h>
#include <CGAL/Gmpq.h>
#include "VertexData.h"
#include <BWTA/RectangleArray.h>
#include <BWAPI.h>
#include <BWTA/BaseLocation.h>
#include <BWTA/Polygon.h>
Include dependency graph for functions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BWTA::SDG2
struct  BWTA::ptcmp
struct  BWTA::vhcmp
struct  BWTA::vhradiuscmp

Namespaces

namespace  BWTA

Defines

#define BWTA_FILE_VERSION   6
#define PI   3.1415926
#define USE_EXACT

Typedefs

typedef CGAL::Lazy_exact_nt
< CGAL::Gmpq > 
BWTA::NumberType
typedef CGAL::Simple_cartesian
< NumberType > 
BWTA::CK
typedef CGAL::Filtered_kernel< CK > BWTA::Kernel
typedef CGAL::Simple_cartesian
< double > 
BWTA::CKD
typedef CGAL::Filtered_kernel
< CKD > 
BWTA::KernelD
typedef
CGAL::Segment_Delaunay_graph_traits_2
< Kernel
BWTA::Gt
typedef
CGAL::Segment_Delaunay_graph_traits_2
< KernelD > 
BWTA::GtD
typedef
CGAL::Segment_Delaunay_graph_site_2
< CKD > 
BWTA::SDGS2
typedef CGAL::Point_2< CK > BWTA::Point
typedef CGAL::Polygon_2< CK > BWTA::PolygonCK
typedef CGAL::Line_2< CK > BWTA::Line
typedef CGAL::Segment_2< CK > BWTA::Segment
typedef CGAL::Circle_2< CK > BWTA::Circle
typedef CGAL::Direction_2< CK > BWTA::Direction
typedef CGAL::Point_set_2< KernelBWTA::Point_set_2
typedef CGAL::Point_set_2
< Kernel >::Vertex_handle 
BWTA::Vertex_handle
typedef CGAL::Point_2< CKD > BWTA::PointD
typedef CGAL::Polygon_2< CKD > BWTA::PolygonD
typedef CGAL::Line_2< CKD > BWTA::LineD
typedef CGAL::Ray_2< CKD > BWTA::RayD
typedef CGAL::Segment_2< CKD > BWTA::SegmentD
typedef CGAL::Circle_2< CKD > BWTA::CircleD
typedef CGAL::Direction_2< CKD > BWTA::DirectionD
typedef
CGAL::Arr_segment_traits_2
< Kernel
BWTA::Traits_2
typedef Traits_2::Point_2 BWTA::Point_2
typedef
Traits_2::X_monotone_curve_2 
BWTA::Segment_2
typedef
CGAL::Arr_extended_dcel
< Traits_2, VertexData, Color,
int > 
BWTA::Dcel
typedef CGAL::Arrangement_2
< Traits_2, Dcel > 
BWTA::Arrangement_2

Functions

void BWTA::get_voronoi_edges (SDG2 &sdg, std::vector< Segment > &voronoi_diagram_edges, std::map< Point, std::set< Point >, ptcmp > &nearest, std::map< Point, double, ptcmp > &distance, const std::vector< Polygon > &polygons)
double BWTA::get_distance (Point a, Point b)
double BWTA::get_distance (PointD a, PointD b)
double BWTA::cast_to_double (double q)
double BWTA::cast_to_double (CGAL::MP_Float q)
double BWTA::cast_to_double (CGAL::Quotient< CGAL::MP_Float > q)
double BWTA::cast_to_double (CGAL::Gmpq q)
double BWTA::cast_to_double (CGAL::Lazy_exact_nt< CGAL::Gmpq > q)
bool BWTA::is_real (double q)
bool BWTA::is_real (CGAL::MP_Float q)
bool BWTA::is_real (CGAL::Quotient< CGAL::MP_Float > q)
bool BWTA::is_real (CGAL::Gmpq q)
bool BWTA::is_real (CGAL::Lazy_exact_nt< CGAL::Gmpq > q)
bool BWTA::load_map ()
bool BWTA::load_resources ()
int BWTA::str2int (std::string str)
std::string BWTA::int2str (int number)
int BWTA::max (int a, int b)
int BWTA::min (int a, int b)
void BWTA::log (const char *text,...)
void BWTA::writeFile (const char *filename, const char *text,...)
template<class T >
double BWTA::get_distance (CGAL::Point_2< T > a, CGAL::Point_2< T > b)
double BWTA::distance_to_border (Polygon &polygon, int width, int height)
void BWTA::calculate_walk_distances (const RectangleArray< bool > &read_map, const BWAPI::Position &start, int max_distance, RectangleArray< int > &distance_map)
void BWTA::calculate_walk_distances_area (const BWAPI::Position &start, int width, int height, int max_distance, RectangleArray< int > &distance_map)
int BWTA::get_set (std::vector< int > &a, int i)
template<class _Tp1 >
_Tp1 BWTA::get_set2 (std::map< _Tp1, _Tp1 > &a, _Tp1 i)
void BWTA::calculate_connectivity ()
float BWTA::max (float a, float b)
float BWTA::min (float a, float b)
double BWTA::max (double a, double b)
double BWTA::min (double a, double b)
bool BWTA::fileExists (std::string filename)
int BWTA::fileVersion (std::string filename)
double BWTA::AstarSearchDistance (BWAPI::TilePosition start, BWAPI::TilePosition end)
std::pair< BWAPI::TilePosition,
double > 
BWTA::AstarSearchDistance (BWAPI::TilePosition start, std::set< BWAPI::TilePosition > &end)
std::map< BWAPI::TilePosition,
double > 
BWTA::AstarSearchDistanceAll (BWAPI::TilePosition start, std::set< BWAPI::TilePosition > &end)
std::vector< BWAPI::TilePositionBWTA::AstarSearchPath (BWAPI::TilePosition start, BWAPI::TilePosition end)
std::vector< BWAPI::TilePositionBWTA::AstarSearchPath (BWAPI::TilePosition start, std::set< BWAPI::TilePosition > end)

Define Documentation

#define BWTA_FILE_VERSION   6
#define PI   3.1415926
#define USE_EXACT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines