The Bug Class
Variables:
- x, y -- location of the bug
- lefteye, righteye -- The eyes
Methods
- paint: Draws the bug at x, y with the eyes correctly drawn
based on lefteye, righteye
- didclick: If the click is on an eye, changes that eye.
Return true if the click was on an eye.
- contains: Returns true/false based on if the click in within
the bug
|