Classes that represent the rooms in the skool and their furniture.
A blackboard in a classroom.
Parameters: |
---|
Return whether a character is standing beside the blackboard.
Parameters: | character (Character) – The character to check. |
---|
Build the images for the blackboard. This method is called after rescaling the screen or loading a saved game.
Mark this blackboard as clean.
Parameters: | blit – If True, the blackboard surface will be blitted clean too; otherwise it will be left alone. |
---|
Return whether anything is written on the blackboard.
Start a new line on the blackboard.
Restore the image of this blackboard. This method is used after restoring a saved game.
Return whether the blackboard displays all the characters in a given piece of text.
Parameters: |
|
---|
Wipe a column of the blackboard clean.
Parameters: | column – The column to wipe clean. |
---|
Write a character on the blackboard.
Parameters: | char – The character to write. |
---|
A seat in a classroom.
Parameters: |
|
---|
Mark the chair as being occupied by a character.
Parameters: | character (Character) – The character sitting in the chair. |
---|
Mark this chair as vacant.
A desk (that can be opened) in a classroom.
Parameters: |
|
---|
Mark the desk as empty.
Insert an inventory item (water pistol or stinkbombs) into the desk.
Parameters: | item – The ID of the item to insert. |
---|
A region of the skool in which Eric is never allowed to be.
Parameters: |
|
---|
Return whether a given location is inside the zone.
Parameters: |
|
---|
A classroom or some other region of the skool that Eric is expected to show up in when the timetable demands it.
Parameters: |
|
---|
Add a blackboard to the room.
Parameters: |
---|
Add a chair to the room.
Parameters: | x – The x-coordinate of the chair. |
---|
Add a desk (that can be opened) to the room.
Parameters: | x – The x-coordinate of the desk. |
---|
Return whether a character is standing beside the blackboard in this room.
Parameters: | character (Character) – The character to check. |
---|
Return True if the room has a blackboard and it is dirty, False otherwise.
Build the images for the blackboard in this room (if any). This method is called after rescaling the screen or loading a saved game.
Return the chair in this room that a character is next to, or None if the character is not next to a chair.
Parameters: |
|
---|
Return whether a character is in this room.
Parameters: | character (Character) – The character to check. |
---|
Return the desk in this room that a character is sitting at, or None if the character is not sitting at a desk.
Parameters: | character (Character) – The character to check. |
---|
Return the character who wrote on the blackboard in this room, or None if either the room has no blackboard, or the blackboard is clean.
Return the direction in which the chairs in this room are facing.
Returns: | -1 if the chairs are facing left, 1 if they are facing right, or None if there are no chairs in the room. |
---|
Return the chair that a character should find and sit in.
Parameters: |
|
---|---|
Returns: | A 2-tuple containing the target chair and the direction it faces (-1 or 1). |
Return whether the room has a blackboard.
Restore the image of the blackboard in this room. This method is used to draw the contents of a blackboard afresh after restoring a saved game.
Wipe the blackboard in the room (if any) and mark it as clean.