Example #1
0
  public Wall(float xPos, float yPos) {

    setPosition(xPos, yPos);

    p = new Paint();

    p.setColor(Color.WHITE);

    super.setShape(THICKNESS, WIDTH);
  }
Example #2
0
  public void draw(Canvas cnv) {
    super.draw(cnv);

    cnv.drawRect(getX(), getY(), getX() + THICKNESS, getY() + WIDTH, p);
  }