Author Topic: GetExposedAreaNorth/West/South/East/Top/Bottom  (Read 1146 times)

What do these functions do on the brick?

Get the exposed area of the relevant side. If you were to call getExposedAreaNorth on a 2x4 brick was planted with its long side facing north, it would return 4. But if you called it on the same brick with a 2x2 planted immediately to the north of it, it would return 2, as the 2x2 is obscuring 2 of the 4 areas.

Get the exposed area of the relevant side. If you were to call getExposedAreaNorth on a 2x4 brick was planted with its long side facing north, it would return 4. But if you called it on the same brick with a 2x2 planted immediately to the north of it, it would return 2, as the 2x2 is obscuring 2 of the 4 areas.
I thought it ment wether or not a brick was covering that side of the brick, is there any easy way to do this?

I thought it ment wether or not a brick was covering that side of the brick, is there any easy way to do this?
If the exposed area is 0, that side of the brick is completely covered.

If the exposed area is 0, that side of the brick is completely covered.
it returns 0 if there isnt a brick covering that side either

it returns 0 if there isnt a brick covering that side either

It shouldn't do that. He specifically said no bricks around it should just return the amount of area that side of the brick has.