HOG2
|
Go to the source code of this file.
Classes | |
struct | loc |
Functions | |
void | MakePseudoMaze (Map *map, int pathSize) |
MakeMaze(map, pathsize) More... | |
void | MakeMaze (Map *map, int corridorWidth, int startx, int starty) |
MakeMaze(map) More... | |
void | BuildRandomRoomMap (Map *map, int roomSize, int openingProbability) |
void | MakeRandomMap (Map *map, int obstacles) |
void | StraightDir (Map *m, loc l, std::vector< loc > &dirs) |
void | PossibileDirs (Map *m, loc l, std::vector< loc > &dirs) |
void | Burrow (Map *m, loc l1, loc l2) |
void | MakeMaze (Map *m, float straightPercent, float branchPercent) |
Map * | MakeWarehouseMap (int columns, int rows, int corridor, int shelfWidth, int shelfHeight, int leftMargin, int rightMargin) |
void BuildRandomRoomMap | ( | Map * | map, |
int | roomSize, | ||
int | openingProbability | ||
) |
Definition at line 233 of file MapGenerators.cpp.
References Map::GetMapHeight(), Map::GetMapWidth(), height, kGround, kOutOfBounds, Map::SetTerrainType(), and width.
Definition at line 327 of file MapGenerators.cpp.
References kGround, Map::SetTerrainType(), loc::x, and loc::y.
Referenced by MakeMaze().
void MakeMaze | ( | Map * | m, |
float | straightPercent, | ||
float | branchPercent | ||
) |
Definition at line 333 of file MapGenerators.cpp.
References Burrow(), Map::GetMapHeight(), Map::GetMapWidth(), kTrees, PossibileDirs(), Map::SetTerrainType(), and StraightDir().
void MakeMaze | ( | Map * | map, |
int | corridorWidth, | ||
int | startx, | ||
int | starty | ||
) |
MakeMaze(map)
Definition at line 96 of file MapGenerators.cpp.
References Map::GetMapHeight(), Map::GetMapWidth(), Map::GetTerrainType(), height, kGround, kOutOfBounds, Map::SetRectHeight(), Map::SetTerrainType(), and width.
Referenced by CreateSimulation().
void MakePseudoMaze | ( | Map * | map, |
int | pathSize | ||
) |
MakeMaze(map, pathsize)
A cheap function I hacked together to make psuedo mazes. The only good values for pathSize are 1 and 3.
Definition at line 20 of file MapGenerators.cpp.
References Map::GetHeight(), Map::GetMapHeight(), Map::GetMapWidth(), height, kGround, kOutOfBounds, Map::SetHeight(), Map::SetRectHeight(), Map::SetTerrainType(), and width.
void MakeRandomMap | ( | Map * | map, |
int | obstacles | ||
) |
Definition at line 279 of file MapGenerators.cpp.
References Map::GetMapHeight(), Map::GetMapWidth(), Map::GetTerrainType(), kGround, kOutOfBounds, and Map::SetTerrainType().
Map* MakeWarehouseMap | ( | int | columns, |
int | rows, | ||
int | corridor, | ||
int | shelfWidth, | ||
int | shelfHeight, | ||
int | leftMargin, | ||
int | rightMargin | ||
) |
Definition at line 388 of file MapGenerators.cpp.
References kTrees.
Definition at line 314 of file MapGenerators.cpp.
References Map::GetTerrainType(), kTrees, loc::x, and loc::y.
Referenced by MakeMaze().
Definition at line 298 of file MapGenerators.cpp.
References Map::GetTerrainType(), kGround, kTrees, loc::x, and loc::y.
Referenced by MakeMaze().