polserver/pol-core/plib/mapblock.h
turley 189cad3479 Formating everything
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00

28 lines
467 B
C++

/** @file
*
* @par History
*
* @note a map block is a 64x64 cell area of a map.
* @note Since a mapcell is 2 bytes, each map block is 8K.
*/
#ifndef PLIB_MAPBLOCK_H
#define PLIB_MAPBLOCK_H
#include "mapcell.h"
namespace Pol
{
namespace Plib
{
const unsigned MAPBLOCK_CHUNK = 64;
const unsigned MAPBLOCK_SHIFT = 6; // 6 bits
const unsigned MAPBLOCK_CELLMASK = 0x3F;
struct MAPBLOCK
{
MAPCELL cell[MAPBLOCK_CHUNK][MAPBLOCK_CHUNK]; // [x][y]
};
}
}
#endif