Classes | Enumerations | Functions

eb2010misc.h File Reference

#include <trgen.h>
Include dependency graph for eb2010misc.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  slope_approach_style

Enumerations

enum  which_side { MINE, OPPONENTS }
enum  which_set_of_oranges { NEAR_PLAYGROUND_BOUNDARY, NEAR_PLAYGROUND_CENTER }

Functions

double x_coord (double x, enum which_side)
struct cornchoose_next_corn ()
double get_point_to_line_distance (const Point &p, const Point &lp1, const Point &lp2)
 Computes and returns line to point distance.
Posget_corn_approach_position (struct corn *corn)
void remove_wall_around_corn (const double x, const double y)

Enumeration Type Documentation

Enumerator:
NEAR_PLAYGROUND_BOUNDARY 
NEAR_PLAYGROUND_CENTER 
enum which_side
Enumerator:
MINE 
OPPONENTS 

Function Documentation

struct corn* choose_next_corn (  )  [read]

Here is the call graph for this function:

Pos* get_corn_approach_position ( struct corn corn  ) 

Here is the call graph for this function:

double get_point_to_line_distance ( const Point p,
const Point lp1,
const Point lp2 
)

Computes and returns line to point distance.

Parameters:
[in] p the point coords
[in] lp1 coords of one of the points on the line
[in] lp2 coords of the second point on the line
void remove_wall_around_corn ( const double  x,
const double  y 
)

Here is the call graph for this function:

double x_coord ( double  x,
enum  which_side 
)