stinkbomb

Defines the Stinkbomb class.

class stinkbomb.Stinkbomb(stinkbomb_id, command_list_id)

A stinkbomb.

Parameters:
  • stinkbomb_id – The ID of the stinkbomb.
  • command_list_id – The ID of the command list the stinkbomb will use.
drop(x, y)

Drop the stinkbomb at a given location.

Parameters:
  • x – The x-coordinate of the location.
  • y – The y-coordinate of the location.
get_command_list_id(lesson_id)

Return the ID of the command list used by the stinkbomb.

Parameter:lesson_id – The ID of the current lesson (ignored - stinkbombs do not follow a timetable).
move_cloud()
Animate the stinkbomb cloud. Any stinkbomb smeller in the vicinity of the stinkbomb will be alerted and open a nearby window if possible.
stinkbomb.PHASES
Phases of animation of a stinkbomb cloud.

Previous topic

staircase

Next topic

timetable