MapEnums Class Reference

#include <mapstructures.h>

List of all members.

Public Types

enum  Segment {
  SEG_UNDERGROUND, SEG_GROUND, SEG_SKY, SEG_COUNT,
  SEG_NONE
}
enum  Direction {
  DIRECTION_NORTH, DIRECTION_NORTH_EAST, DIRECTION_EAST, DIRECTION_SOUTH_EAST,
  DIRECTION_SOUTH, DIRECTION_SOUTH_WEST, DIRECTION_WEST, DIRECTION_NORTH_WEST,
  DIRECTION_UP, DIRECTION_DOWN, DIRECTION_COUNT
}

Static Public Member Functions

static bool SegmentToString (Segment segment, string &name)
static bool StringToSegment (const string &name, Segment &segment)
static bool DirectionToString (Direction direction, string &name)
static bool StringToDirection (const string &name, Direction &direction)
static float GetBaseLength (Direction direction)
static int GetRotatingSteps (Direction old_direction, Direction new_direction)
static Direction GetDirection (const vector2 &position1, const vector2 &position2)
static Direction GetNextDirection (Direction old_direction, Direction new_direction, bool &rotating_left)
static Direction GetOpositeDirection (Direction direction)
static Direction GetRandomDirection ()


Member Enumeration Documentation

enum MapEnums::Segment

Enumerator:
SEG_UNDERGROUND 
SEG_GROUND 
SEG_SKY 
SEG_COUNT 
SEG_NONE 

enum MapEnums::Direction

Enumerator:
DIRECTION_NORTH 
DIRECTION_NORTH_EAST 
DIRECTION_EAST 
DIRECTION_SOUTH_EAST 
DIRECTION_SOUTH 
DIRECTION_SOUTH_WEST 
DIRECTION_WEST 
DIRECTION_NORTH_WEST 
DIRECTION_UP 
DIRECTION_DOWN 
DIRECTION_COUNT 


Member Function Documentation

bool MapEnums::SegmentToString ( Segment  segment,
string &  name 
) [static]

bool MapEnums::StringToSegment ( const string &  name,
Segment segment 
) [static]

bool MapEnums::DirectionToString ( Direction  direction,
string &  name 
) [static]

bool MapEnums::StringToDirection ( const string &  name,
Direction direction 
) [static]

float MapEnums::GetBaseLength ( Direction  direction  )  [inline, static]

int MapEnums::GetRotatingSteps ( Direction  old_direction,
Direction  new_direction 
) [inline, static]

MapEnums::Direction MapEnums::GetDirection ( const vector2 position1,
const vector2 position2 
) [inline, static]

MapEnums::Direction MapEnums::GetNextDirection ( Direction  old_direction,
Direction  new_direction,
bool &  rotating_left 
) [inline, static]

MapEnums::Direction MapEnums::GetOpositeDirection ( Direction  direction  )  [inline, static]

MapEnums::Direction MapEnums::GetRandomDirection (  )  [inline, static]


The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:32 2007 for Dark Oberon by  doxygen 1.5.3