Methods Flashcards
turnLeft
Turns a Painter object to the left.
canMove
Returns true if there is no barrier one space ahead in the direction the Painter object is currently facing.
IsOnBucket
Returns true if there is a paint on the space the Painter is currently standing on.
takePaint
Takes paint from the paint bucket the Painter object is currently standing on and adds a single unit of paint to their paint bucket. The number of units of paint in the paint bucket decreases by 1. If the Painter object is not on a paint bucket, nothing happens.
scrapePaint
Removes the paint from the space the Painter object is standing on.
getMyPaint
Returns the number of units of paint that the Painter object has in their paint bucket.