summaryrefslogtreecommitdiffstats
path: root/Trapezocube.h
diff options
context:
space:
mode:
authorConstantin Riß <constantin.riss@dre.de>2009-12-10 20:48:49 +0100
committerConstantin Riß <constantin.riss@dre.de>2009-12-10 20:48:49 +0100
commitd439daec66c28f85debc2479e95eadb5fc3c00a2 (patch)
treeef096f881be26737b4092151302033c4b1c5bb29 /Trapezocube.h
parent8705ce3d468c3cd22159bc0fedf727e8250861ca (diff)
downloadc3d-d439daec66c28f85debc2479e95eadb5fc3c00a2.tar
c3d-d439daec66c28f85debc2479e95eadb5fc3c00a2.zip
Cubehole angefangen zu ändern.
Diffstat (limited to 'Trapezocube.h')
-rw-r--r--Trapezocube.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/Trapezocube.h b/Trapezocube.h
index 3d64eaa..533cbf8 100644
--- a/Trapezocube.h
+++ b/Trapezocube.h
@@ -9,18 +9,12 @@
class Trapezocube
{
public:
- Trapezocube(): widthfront(0), widthback(0), height(0), depth(0), x(0), y(0), z(0), rotate(0) {}
- Trapezocube(float widthfront, float widthback, float height, float depth): x(0), y(0), z(0), rotate(0){
- setSize(widthfront, widthback, height, depth);
- }
- Trapezocube(float widthfront, float widthback, float height, float depth, float x, float y, float z): rotate(0) {
- setSize(widthfront, widthback, height, depth);
- setPos(x, y, z);
- }
- Trapezocube(float widthfront, float widthback, float height, float depth, float x, float y, float z, float rotate) {
+ Trapezocube(): widthfront(0), widthback(0), height(0), depth(0), x(0), y(0), z(0), rotate(0), color(0) {}
+ Trapezocube(float widthfront, float widthback, float height, float depth, float x, float y, float z, float rotate, Color col) {
setSize(widthfront, widthback, height, depth);
setPos(x, y, z);
setRotate(rotate);
+ setColor(col);
}
float getHeight() {return height;}
float getWidthFront() {return widthfront;}
@@ -30,6 +24,7 @@ class Trapezocube
float getPosY() {return y;}
float getPosZ() {return z;}
float getRotate() {return rotate;}
+ Color getColor() {return color;}
void setSize(float wf, float wb, float h, float d)
{
widthfront = wf;