Defines the Pellet class.
A catapult pellet.
Parameters: |
|
---|
Return the ID of the command list used by the pellet.
Parameters: | lesson_id – The ID of the current lesson (ignored - pellets do not follow a timetable). |
---|
Return the coordinates of the pellet adjusted for comparison with the coordinates of a cup, shield or conker.
Return whoever has been hit by this pellet, or None if no one was hit.
Check whether the pellet hit a conker in the tree, and make the conker fall if so.
Returns: | True if the pellet hit a conker, False otherwise. |
---|
Check whether the pellet hit a cup, and spill its contents if so.
Returns: | True if the pellet hit a cup containing water, sherry or a frog, False otherwise. |
---|
Check whether the pellet hit a shield, and make the shield flash or unflash as appropriate if so.
Returns: | True if the pellet hit a shield, False otherwise. |
---|
Return whether the pellet is blocked by an object (such as a wall).
Parameters: |
|
---|
Launch the pellet from a starting point.
Parameters: |
|
---|