Public Member Functions | |
GeneratorContext (uint max_x, uint max_y, uint min_x, uint min_y, uint path_size) | |
void | LineH (uint x, uint y, uint len) |
void | LineV (uint x, uint y, uint len) |
void | SubDivide (uint x1, uint y1, uint x2, uint y2) |
void | MakeRoom (uint x1, uint y1, uint x2, uint y2) |
private bool | isHorizontalBlocker (uint x, uint y) |
private bool | isVerticalBlocker (uint x, uint y) |
private void | makeHorizontalBlocker (uint x, uint y) |
private void | makeVerticalBlocker (uint x, uint y) |
void | FindEdges () |
void | BuildTree () |
void | MakeShootableEdges () |
private bool | rollNoShootEdge () |
void | ProcessWalls () |
private bool | safe (uint x, uint y) |
private Edge@ | getEdge (uint r1, uint r2) |
private int | edgeType (uint r1, uint r2) |
private uint | edgeSize (uint r1, uint r2) |
private bool | setEdgeType (uint r1, uint r2, uint type) |
void | Generate () |
void | Cleanup () |
void | Recognize () |
void | Spawn (Map& map, uint16 hx, uint16 hy) |
void | Spawn (Map& map, uint16 hx, uint16 hy, uint16 pid_shootable, uint16 pid_wall) |
GeneratorContext (uint max_x, uint max_y, uint min_x, uint min_y, uint path_size) | |
void | LineH (uint x, uint y, uint len) |
void | LineV (uint x, uint y, uint len) |
void | SubDivide (uint x1, uint y1, uint x2, uint y2) |
void | MakeRoom (uint x1, uint y1, uint x2, uint y2) |
private bool | isHorizontalBlocker (uint x, uint y) |
private bool | isVerticalBlocker (uint x, uint y) |
private void | makeHorizontalBlocker (uint x, uint y) |
private void | makeVerticalBlocker (uint x, uint y) |
void | FindEdges () |
void | BuildTree () |
void | MakeShootableEdges () |
bool | rollNoShootEdge () |
void | ProcessWalls () |
private bool | safe (uint x, uint y) |
private Edge@ | getEdge (uint r1, uint r2) |
private int | edgeType (uint r1, uint r2) |
private uint | edgeSize (uint r1, uint r2) |
private bool | setEdgeType (uint r1, uint r2, uint type) |
void | Generate () |
void | Cleanup () |
void | Recognize () |
void | Spawn (MapperMap@ map, uint16 hx, uint16 hy) |
void | Render () |
Public Attributes | |
private Queue@ | q |
array< Room@> | Rooms |
private array< int >@ | tab1 |
private array< int >@ | tab2 |
private array< Edge@> | edges |
private array< Edge@> | shootableEdges |
private array< Edge@> | spanningEdges |
private uint | minRoomX |
private uint | minRoomY |
private uint | pathSize |
uint | MaxX |
uint | MaxY |
uint | RoomsCount |
GeneratorContext | ( | uint | max_x, | |
uint | max_y, | |||
uint | min_x, | |||
uint | min_y, | |||
uint | path_size | |||
) |
GeneratorContext | ( | uint | max_x, | |
uint | max_y, | |||
uint | min_x, | |||
uint | min_y, | |||
uint | path_size | |||
) |
void LineH | ( | uint | x, | |
uint | y, | |||
uint | len | |||
) |
void LineV | ( | uint | x, | |
uint | y, | |||
uint | len | |||
) |
void SubDivide | ( | uint | x1, | |
uint | y1, | |||
uint | x2, | |||
uint | y2 | |||
) |
void MakeRoom | ( | uint | x1, | |
uint | y1, | |||
uint | x2, | |||
uint | y2 | |||
) |
private bool isHorizontalBlocker | ( | uint | x, | |
uint | y | |||
) |
private bool isVerticalBlocker | ( | uint | x, | |
uint | y | |||
) |
private void makeHorizontalBlocker | ( | uint | x, | |
uint | y | |||
) |
private void makeVerticalBlocker | ( | uint | x, | |
uint | y | |||
) |
void FindEdges | ( | ) |
void BuildTree | ( | ) |
void MakeShootableEdges | ( | ) |
private bool rollNoShootEdge | ( | ) |
void ProcessWalls | ( | ) |
private bool safe | ( | uint | x, | |
uint | y | |||
) |
private Edge@ getEdge | ( | uint | r1, | |
uint | r2 | |||
) |
private int edgeType | ( | uint | r1, | |
uint | r2 | |||
) |
private uint edgeSize | ( | uint | r1, | |
uint | r2 | |||
) |
private bool setEdgeType | ( | uint | r1, | |
uint | r2, | |||
uint | type | |||
) |
void Generate | ( | ) |
void Cleanup | ( | ) |
void Recognize | ( | ) |
void Spawn | ( | Map& | map, | |
uint16 | hx, | |||
uint16 | hy | |||
) |
void Spawn | ( | Map& | map, | |
uint16 | hx, | |||
uint16 | hy, | |||
uint16 | pid_shootable, | |||
uint16 | pid_wall | |||
) |
void LineH | ( | uint | x, | |
uint | y, | |||
uint | len | |||
) |
void LineV | ( | uint | x, | |
uint | y, | |||
uint | len | |||
) |
void SubDivide | ( | uint | x1, | |
uint | y1, | |||
uint | x2, | |||
uint | y2 | |||
) |
void MakeRoom | ( | uint | x1, | |
uint | y1, | |||
uint | x2, | |||
uint | y2 | |||
) |
private bool isHorizontalBlocker | ( | uint | x, | |
uint | y | |||
) |
private bool isVerticalBlocker | ( | uint | x, | |
uint | y | |||
) |
private void makeHorizontalBlocker | ( | uint | x, | |
uint | y | |||
) |
private void makeVerticalBlocker | ( | uint | x, | |
uint | y | |||
) |
void FindEdges | ( | ) |
void BuildTree | ( | ) |
void MakeShootableEdges | ( | ) |
bool rollNoShootEdge | ( | ) |
void ProcessWalls | ( | ) |
private bool safe | ( | uint | x, | |
uint | y | |||
) |
private Edge@ getEdge | ( | uint | r1, | |
uint | r2 | |||
) |
private int edgeType | ( | uint | r1, | |
uint | r2 | |||
) |
private uint edgeSize | ( | uint | r1, | |
uint | r2 | |||
) |
private bool setEdgeType | ( | uint | r1, | |
uint | r2, | |||
uint | type | |||
) |
void Generate | ( | ) |
void Cleanup | ( | ) |
void Recognize | ( | ) |
void Spawn | ( | MapperMap@ | map, | |
uint16 | hx, | |||
uint16 | hy | |||
) |
void Render | ( | ) |
private array< int > tab1 |
private array< int > tab2 |
private array< Edge@> shootableEdges |
private array< Edge@> spanningEdges |
private uint minRoomX |
private uint minRoomY |
private uint pathSize |
uint MaxX |
uint MaxY |
uint RoomsCount |