public Wall(float xPos, float yPos) { setPosition(xPos, yPos); p = new Paint(); p.setColor(Color.WHITE); super.setShape(THICKNESS, WIDTH); }
public void draw(Canvas cnv) { super.draw(cnv); cnv.drawRect(getX(), getY(), getX() + THICKNESS, getY() + WIDTH, p); }