Add project files.
This commit is contained in:
		
							
								
								
									
										20
									
								
								SQCSim2021/blockarray3d.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								SQCSim2021/blockarray3d.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#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
 | 
			
		||||
		Reference in New Issue
	
	Block a user