From d439daec66c28f85debc2479e95eadb5fc3c00a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20Ri=C3=9F?= Date: Thu, 10 Dec 2009 20:48:49 +0100 Subject: =?UTF-8?q?Cubehole=20angefangen=20zu=20=C3=A4ndern.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Trapezocube.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'Trapezocube.h') 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; -- cgit v1.2.3