VisibilityCheckIterator

Diamond iterator for visibility check

Members

Functions

getOrAddPlannedChunk
VisibilityCheckChunk* getOrAddPlannedChunk(Vector3d pos)

get or add planned chunk by position

planVisitingChunk
void planVisitingChunk(Vector3d p, Dir fromDir, ulong mask)
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start(World world, Vector3d startPos, int maxDistance)
Undocumented in source. Be warned that the author may not have intended to support it.
visitPlannedChunks
void visitPlannedChunks()
Undocumented in source. Be warned that the author may not have intended to support it.
visitVisibleChunks
void visitVisibleChunks(ChunkVisitor visitor, Vector3d cameraDirection)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

camPos
Vector3d camPos;
Undocumented in source.
cameraDirection
Vector3d cameraDirection;
Undocumented in source.
maxDistance
int maxDistance;
Undocumented in source.
maxDistanceSquared
int maxDistanceSquared;
Undocumented in source.
maxHeight
int maxHeight;
Undocumented in source.
plannedChunks
VisibilityCheckChunk[] plannedChunks;
Undocumented in source.
startChunk
SmallChunk* startChunk;
Undocumented in source.
startPos
Vector3d startPos;
Undocumented in source.
visitedChunks
VisibilityCheckChunk[] visitedChunks;
Undocumented in source.
visitor
ChunkVisitor visitor;
Undocumented in source.
world
World world;
Undocumented in source.

Meta