www.pudn.com > Gimcrack-v0.0051-Source.zip > cube.h


#ifndef _CUBE_H_ 
#define _CUBE_H_ 
 
class GcCube 
{ 
public: 
	// Constructor/Destructor 
	GcCube(); 
	~GcCube(); 
 
	// Set the size/position of the cube 
	void SetSize(float size); 
	void SetPosition(float posX, float posY, float posZ); 
 
	// Move the cube 
	void Move(float xMove, float yMove, float zMove, float height, bool old); 
	void Move(float xAcel, float yAcel, float zAcel, float height); 
 
	// Draw the cube 
	void Draw(); 
 
	float Xpos() { return posX; } 
	float Zpos() { return posZ; } 
	float Ypos() { return posY; } 
 
private: 
	float size; 
	float posX, posY, posZ; 
	float velX, velY, velZ; 
}; 
 
#endif