Beaucoup de choses. (Fin du TP1 si pas d'épiphanie)
This commit is contained in:
		@@ -5,16 +5,20 @@
 | 
			
		||||
 | 
			
		||||
class BlockArray3d {
 | 
			
		||||
public:
 | 
			
		||||
	BlockArray3d();
 | 
			
		||||
	BlockArray3d(int x, int y, int z);
 | 
			
		||||
	BlockArray3d(BlockArray3d& ba);
 | 
			
		||||
	~BlockArray3d();
 | 
			
		||||
	virtual ~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;
 | 
			
		||||
	BlockType* m_blocks;
 | 
			
		||||
	int m_x;
 | 
			
		||||
	int m_y;
 | 
			
		||||
	int m_z;
 | 
			
		||||
 | 
			
		||||
	int GetPosition(int x, int y, int z) const;
 | 
			
		||||
};
 | 
			
		||||
#endif
 | 
			
		||||
		Reference in New Issue
	
	Block a user