Defines the Eric class.
This class represents our hero.
Parameters: |
|
---|
Look for a lines-giver in the vicinity of Eric; if one is found, make him give lines to Eric.
Parameters: |
|
---|
Return whether Eric can open a specific door. This will be False unless the door in question is the storeroom door and Eric has the key to it.
Parameter: | door – The door to check. |
---|
Move Eric to the next spot in his flight out of a window or over the skool gate.
Parameters: |
|
---|
Attempt to freeze Eric. The attempt will fail if Eric is writing on a blackboard, or is already frozen.
Returns: | True if Eric was frozen, False otherwise. |
---|
Return the wall or door that Eric rode the bike into (if any).
Parameter: | bike – The bike Eric is riding. |
---|---|
Returns: | The barrier that was hit, or None if none was hit. |
Return whether this character is Eric.
Returns: | True. |
---|
Return whether Eric is standing on something that prevents him from falling. The things that can prevent Eric from falling are:
Make a walking sound effect.
Parameter: | index – The index of the walking sound effect. |
---|
Move Eric. This entails checking the keyboard for relevant keypresses and moving Eric accordingly, and dealing with Eric if he’s currently engaged in an action such as firing the catapult or water pistol (during which keypresses are ignored).
Returns: | -1 if the screen should scroll right, 1 if it should scroll left, or 0 if it should not scroll (after moving Eric). |
---|
Make Eric raise a desk lid.
Parameter: | desk – The desk to open. |
---|
Open the door that Eric is facing.
Returns: | 0 (to indicate that the screen should not scroll). |
---|
Signal that Eric is paralysed (as after falling from the top-floor window). Mr Wacker will be alerted.
Parameter: | command_list_id – The ID of the command list Mr Wacker should switch to. |
---|
Return whether Eric pedalled the bike since the last time he was moved. This will be True if and only if:
Play a sound effect.
Parameters: |
|
---|
Control Eric when he’s writing on a blackboard.
Returns: | True if Eric has finished writing, False otherwise. |
---|