Classes for things in the skool that change appearance depending on their state. For example, a cup that may be empty or contain water or sherry.
Represents the portion of the tree that may or may not have a bike chained to it.
Parameters: |
|
---|
Build the images for the bike. This method is called after rescaling the screen or loading a saved game.
Return a 2-tuple containing a list of the images to use when the bike is chained to the tree, and the coordinates of the images.
Return a 2-tuple containing a list of images of the current state of the bike, and the coordinates at which to draw the bike.
Define the images to use for the bike-on-a-tree.
Parameters: |
|
---|
Return a 3-tuple containing a list of the images to use when the bike is not chained to the tree, and the coordinates of the images.
A cup that may be empty or filled with water or sherry.
Parameters: |
|
---|
Build the images for the cup. This method is called after rescaling the screen or loading a saved game.
Fill the cup with a liquid, or empty it.
Parameters: | contents – The liquid to fill the cup with, or None to empty it. |
---|---|
Returns: | The images for and location of the cup. |
Return a 2-tuple containing a list of images of the current state of the cup, and the coordinates at which to draw the cup.
Insert a frog into the cup.
Parameters: | frog (Frog) – The frog. |
---|
Return whether the cup is empty (contains no liquid or frogs).
Remove a frog from the cup.
Parameters: | frog (Frog) – The frog. |
---|
Define the images to use for the cup.
Parameters: |
|
---|
Abstract superclass for objects that flash (shields and the safe).
Parameters: |
|
---|
Build the images for this object. This method is called after rescaling the screen or loading a saved game.
Mark the object as flashing.
Return a 2-tuple containing a list of images of the object, and the coordinates at which it should be drawn.
Parameters: | inverse – If True, return the inverse images; otherwise return the normal images. |
---|
Mark the object as not flashing.
A safe that will flash or unflash when hit.
A shield that will flash or unflash when hit.