20 lines
331 B
C++
20 lines
331 B
C++
#ifndef BLOCKARRAY3D_H__
|
|
#define BLOCKARRAY3D_H__
|
|
|
|
#include "define.h"
|
|
|
|
class BlockArray3d {
|
|
public:
|
|
BlockArray3d();
|
|
BlockArray3d(BlockArray3d& ba);
|
|
~BlockArray3d();
|
|
|
|
protected:
|
|
void Set(int x, int y, int z, BlockType type);
|
|
BlockType Get(int x, int y, int z) const;
|
|
void Reset(BlockType type);
|
|
|
|
private:
|
|
int* arr;
|
|
};
|
|
#endif |