Début TP2 + Handling des événements de touches de mouvement
This commit is contained in:
		@@ -1,24 +0,0 @@
 | 
			
		||||
#ifndef BLOCKARRAY3D_H__
 | 
			
		||||
#define BLOCKARRAY3D_H__
 | 
			
		||||
 | 
			
		||||
#include "define.h"
 | 
			
		||||
 | 
			
		||||
class BlockArray3d {
 | 
			
		||||
public:
 | 
			
		||||
	BlockArray3d(int x, int y, int z);
 | 
			
		||||
	BlockArray3d(BlockArray3d& ba);
 | 
			
		||||
	virtual ~BlockArray3d();
 | 
			
		||||
 | 
			
		||||
	void Set(int x, int y, int z, BlockType type);
 | 
			
		||||
	BlockType Get(int x, int y, int z) const;
 | 
			
		||||
	void Reset(BlockType type);
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
	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