Implemented mob roaming.

Will likely need further tuning.
Mobs in vacant chunks are skipped.
This commit is contained in:
2020-09-22 20:33:10 +02:00
parent 94ab5b8b64
commit ac1fd1e5be
5 changed files with 75 additions and 3 deletions

View File

@@ -26,4 +26,5 @@ namespace ChunkManager {
std::pair<int, int> grabChunk(int posX, int posY);
std::vector<Chunk*> grabChunks(std::pair<int, int> chunkPos);
std::vector<Chunk*> getDeltaChunks(std::vector<Chunk*> from, std::vector<Chunk*> to);
bool inPopulatedChunks(int posX, int posY);
}