Show diamond-shaped tiles on a larger map.
This commit is contained in:
parent
edbb3fe1d8
commit
1c5cb6299c
8 changed files with 36 additions and 25 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <vector>
|
||||
#include <type_traits>
|
||||
#include <cstdint>
|
||||
#include <cassert>
|
||||
|
||||
namespace dk {
|
||||
template <typename T, uint32_t D, typename T1>
|
||||
|
@ -60,7 +61,7 @@ namespace dk {
|
|||
TileIterator ( qualif_vector_type* parData, const coords& parFrom, const coords& parTo, const coords& parAreaFrom, const coords& parAreaTo, const coords& parSubdiv );
|
||||
~TileIterator ( void ) = default;
|
||||
|
||||
const coords& position ( void ) const { return m_pos; }
|
||||
const coords& abs_position ( void ) const { return m_pos; }
|
||||
|
||||
private:
|
||||
void increment ( void );
|
||||
|
|
|
@ -52,5 +52,8 @@ namespace dk {
|
|||
void Layer<T, D>::onPreload (const coords& parFrom, const coords& parTo) {
|
||||
m_tiles.clear();
|
||||
m_tilemap.fetch(m_tiles, parFrom, parTo);
|
||||
#if !defined(NDEBUG)
|
||||
std::cout << "Preloading layer from " << parFrom << " to " << parTo << '\n';
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue