rozukke / mcpp

A library to interface with Minecraft using C++.
https://rozukke.github.io/mcpp/
Apache License 2.0
104 stars 18 forks source link

HeightMap iterator #70

Closed nhatdongdang closed 3 months ago

nhatdongdang commented 3 months ago

This pull request introduces the following enhancements to the HeightMap class:

  1. Addition of Iterator class:

    • Implemented an Iterator class within HeightMap to enable traversal of the height data using standard iterator patterns.
    • Added the begin() and end() methods to support range-based loops and iterator-based algorithms.
  2. Doxygen-style documentation:

    • Documented the Iterator class, including all its methods (operator*, operator->, operator++ (prefix and postfix), operator==, operator!=), as well as the begin() and end() methods.
    • Provided clear descriptions of the iterator's functionality and the purpose of each method.
  3. Test Cases:

    • Tests include verifying iteration over the height data.