|
| | ClientWorld (RenderAPI &render_api, Sound::Engine &sound_engine, Event::Manager &event_manager, Client &client, uint64_t my_player_id=0) |
| |
| | ~ClientWorld () |
| |
| | ClientWorld (ClientWorld &other)=delete |
| |
| | ClientWorld (ClientWorld &&other)=delete |
| |
| ClientWorld & | operator= (ClientWorld &other)=delete |
| |
| ClientWorld & | operator= (ClientWorld &&other)=delete |
| |
| void | updateBlock (glm::dvec3 position) |
| |
| void | updateSystems (const double delta_time_second) |
| |
| int | getRenderDistance () const |
| |
| void | setRenderDistance (const int &render_distance) |
| |
| int | getServerLoadDistance () const |
| |
| void | setServerLoadDistance (const int &server_load_distance) |
| |
| std::pair< glm::dvec3, glm::dvec3 > | calculatePlayerMovement (const uint64_t player_id, const int8_t forward, const int8_t backward, const int8_t left, const int8_t right, const int8_t up, const int8_t down, const double delta_time_second) |
| |
| void | updatePlayerCamera (const uint64_t player_id, const double x_offset, const double y_offset) |
| |
| void | updatePlayerTargetBlock (const uint64_t player_id) |
| |
| std::pair< bool, glm::vec3 > | playerAttack (const uint64_t player_id, bool attack) |
| |
| PlayerUseResult | playerUse (const uint64_t player_id, bool use) |
| |
| void | changePlayerViewMode (const uint64_t player_id) |
| |
| void | manageScroll (const double x_offset, const double y_offset) |
| |
| void | updatePlayer (const uint64_t player_id, std::function< void(Player &)> update) |
| |
| void | createMob () |
| |
| void | updateMobs (const double delta_time_second) |
| |
| void | createBaseMob (const glm::dvec3 &position, uint64_t player_id) |
| |
| void | modifyBlock (const glm::vec3 &position, const BlockInfo::Type &block_id) |
| |
| uint64_t | createPlayer (const glm::vec3 &position) |
| |
| void | addPlayer (const uint64_t player_id, const glm::dvec3 &position) |
| |
| void | removePlayer (const uint64_t player_id) |
| |
| void | updatePlayerPosition (const uint64_t &player_id, const glm::dvec3 &position) |
| |
| void | applyPlayerMovement (const uint64_t &player_id, const glm::dvec3 &displacement) |
| |
| Camera | getCamera (const uint64_t player_id) |
| |
| glm::dvec3 | getPlayerPosition (const uint64_t player_id) |
| |
| void | addChunk (std::shared_ptr< Chunk > chunk) |
| |
| void | removeChunk (const glm::ivec3 &chunkPosition) |
| |
| std::vector< glm::ivec3 > | getNeededChunks (const glm::vec3 &playerPosition) |
| |
| std::shared_ptr< Chunk > | localGetChunk (const glm::ivec3 &position) const |
| |
| void | otherUpdate () |
| |
| void | handlePacket (std::shared_ptr< IPacket > packet) |
| |
| | World (bool save=false) |
| |
| | ~World () |
| |
| | World (World &other)=delete |
| |
| | World (World &&other)=delete |
| |
| World & | operator= (World &other)=delete |
| |
| World & | operator= (World &&other)=delete |
| |
| std::shared_ptr< Chunk > | getChunk (const glm::ivec3 &position) |
| | Get the Chunk object. More...
|
| |
| void | insertChunk (const glm::ivec3 &position, std::shared_ptr< Chunk > chunk) |
| |
| void | unloadRegion (const glm::ivec2 region_pos) |
| | Unloads all chunk inside a region, if save is enabled, will save the region in a region file. More...
|
| |
| WorldGenerator & | getWorldGenerator () |
| |
| Save & | getSave () |
| |
|
| static glm::vec3 | getBlockChunkPosition (const glm::vec3 &position) |
| | will return the block position relative to the chunk More...
|
| |
| static glm::vec3 | getChunkPosition (const glm::vec3 &position) |
| | will return the chunk position containing the block More...
|
| |
| | TracyLockableN (std::mutex, m_players_mutex, "Players") |
| |
| | TracyLockableN (std::mutex, m_mobs_mutex, "Mobs") |
| |
| | TracyLockableN (std::mutex, m_chunks_mutex, "Chunks") |
| |
| std::shared_ptr< Chunk > | getChunkNoLock (const glm::ivec3 &position) |
| | Get a chunk ptr without locking the chunks mutex. More...
|
| |
| void | insertChunkNoLock (const glm::ivec3 &position, std::shared_ptr< Chunk > chunk) |
| |
| std::unordered_set< glm::ivec3 > | updateSkyLight (const glm::ivec3 &block_position) |
| | Update the sky light of the chunk containing the block. More...
|
| |
| std::unordered_set< glm::ivec3 > | updateBlockLight (const glm::ivec3 &block_position) |
| | Update the block light of the chunk containing the block. More...
|
| |
| std::unordered_map< uint64_t, std::shared_ptr< Player > > | m_players |
| |
| std::unordered_map< uint64_t, std::shared_ptr< Mob > > | m_mobs |
| |
| uint64_t | m_mob_id = 0 |
| |
| std::unordered_map< glm::ivec3, std::shared_ptr< Chunk > > | m_chunks |
| |
| ExecutorAccessor | m_executor |
| |
| WorldGenerator | m_world_generator |
| |
| std::unique_ptr< Save > | m_save |
| |