RigidSphereBody::RigidSphereBody(QObject* parent): AbstractRigidBody(parent), m_radius(1) { initShape(); initBody(); }
kapalterbang::kapalterbang(int _x,int _y,int _width,int _height,char* colorfile){ startX=_x; startY=_y; x=_x; y=_y; width=_width; height=_height; exploding=false; //dead=false; initShape(); setColorFileName(colorfile); }
kapalterbang::kapalterbang(int _x,int _y,int _width,int _height){ startX=_x; startY=_y; x=_x; y=_y; width=_width; height=_height; exploding=false; //dead=false; initShape(); setColorFileName("planecolor1.txt"); }
kapalterbang::kapalterbang(int _x,int _y){ startX=_x; startY=_y; x=_x; y=_y; width = 18*3; height = 6*3; exploding=false; //dead=false; initShape(); setColorFileName("planecolor1.txt"); draw(); }
kapalterbang::kapalterbang(int _x,int _y,char* colorfile){ startX=_x; startY=_y; x=_x; y=_y; width = 18*3; height = 6*3; exploding=false; //dead=false; initShape(); setColorFileName(colorfile); draw(); }
void initRect(Rect *rect, int x, int y, int w, int h) { Shape *shape = (Shape *)rect; initShape(shape, x, y); rect->getW = &getW; rect->getH = &getH; rect->setW = &setW; rect->setH = &setH; rect->w = w; rect->h = h; rect->print = &printRect; }