Classes that implement the commands found in command lists, such as GoTo and ConductClass.
Command that adds lines to Eric’s total. May be used by any character.
Parameters: | lines (number) – The lines to add to Eric’s total. |
---|
Make a character add lines to Eric’s total.
Returns: | self. |
---|
Return whether this command is interruptible.
Returns: | False. |
---|
Command that makes Eric catch a mouse or frog (if one is at hand).
Make Eric catch a mouse or frog if one is at the location of his hand.
Returns: | None. |
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Make Eric stand up straight after bending over to catch a mouse or frog.
Returns: | self. |
---|
Command that makes a character chase Eric up to the girls’ side of the skool gate. It is used by Miss Take if she spots him in the girls’ skool when it’s not playtime.
Parameters: | min_x – The x-coordinate at which the character should stop chasing Eric, and stand on guard. |
---|
Make a character take the next step while chasing Eric, or remain by his side if already there.
Returns: | A GoTowardsXY command if the character hasn’t caught up with Eric yet, or None if the character is already by Eric’s side. |
---|
Command that checks whether a character is touching Eric. This command is used by Angelface when he has mumps.
Parameters: |
|
---|
Make a character check whether he’s touching Eric (and has therefore transmitted his disease). If Eric has been informed of the character’s condition, and the character is touching Eric, the appropriate signal is raised to indicate that Eric has mumps.
Returns: | self. |
---|
Abstract class from which all other command classes inherit. Subclasses should implement a method named execute.
Execute the command. The default implementation provided here does nothing; subclasses should override this method to supply the desired behaviour.
Returns: | self |
---|
Perform any required cleanup before the command is removed from the command stack. This method is called on a controlling command just before it is terminated, and on an interruptible command when it is interrupted. The default implementation provided here does nothing; subclasses override this method as necessary.
Return whether this command is one of the GoTo commands. This method returns False, but the GoTo commands override it and return True.
Return whether this command is interruptible. An interruptible command can be terminated immediately by a command list restart. This method returns True, but subclasses may override it and return False instead.
A list of commands built from a CommandListTemplate. Maintains a command stack from which commands are popped after they have finished executing.
Parameters: | character (Character) – The character to be controlled (the command list owner). |
---|
Hand control of the command list owner over to the current command. The steps taken are:
- None, then return from this method;
- self (the command itself), then pop the current command from the stack and go to step 3;
- another command, then add that command to the stack and go to step 4.
Return the destination of the character, or None if he is not under the control of a GoTo command.
Return False if the command stack contains an uninterruptible command, True otherwise.
Jump forwards (or backwards) in the list of commands.
Parameters: | offset – The offset by which to jump. -2 means the previous command, -1 means the current command, 0 means the next command, and 1 means the next command but one. |
---|
Restart this command list. When the current command finishes, the next command will be the first command in the command list, or the command denoted by index.
Parameters: | index – The index of the command at which to restart (defaults to 0). |
---|
Set the destination of the character if he is under the control of a GoTo command.
Parameters: | destination (Location) – The destination to set. |
---|
Set the controlling command for this command list. The controlling command, if set, is executed before and in addition to the current command on the stack (see command()). WalkFast and HitNowAndThen are examples of commands that are used as controlling commands.
Parameters: | command (Command) – The command to set as the controlling command. |
---|
Remove the current and all previous commands from the command list. When the current command finishes, the next command will be regarded as the first for the purposes of a command list restart.
Set the subcommand for this command list. The subcommand, if set, is executed before and in addition to the current command on the stack (see command()). MonitorEric is an example of a command that is used as a subcommand.
Parameters: |
|
---|
Set the template for this command list. This method is used to replace a character’s current command list (e.g. when the bell rings). Any interruptible commands remaining on the stack are removed (after calling their finish() methods); uninterruptible commands are left in place so that they have a chance to finish before the new command list kicks in.
Parameters: | template – The CommandListTemplate to use. |
---|
Template from which a specific command list may be created (one or more times). command_list_id is an identifier for the command list, used only for debugging purposes.
Add a command to this template.
Parameters: |
|
---|
Return a list of commands (initialised command class instances) constructed from this template.
Parameters: | start – The index of the first command. If start is 0, the entire list of commands is returned. If start is N>0, the first N commands are omitted. |
---|
Abstract class used by many commands that require a fixed sequence of steps to be executed with little or no conditional logic. Each step is implemented as a separate method. Subclasses must implement a method named get_commands that returns a list of the names of the methods to execute.
Terminate this complex command. This method is typically used as the last step in the sequence, and is provided for convenience to subclasses.
Returns: | self (to terminate this command) |
---|
Execute the next step (method) in this command’s sequence. What happens after that depends on the return value from the method called; if it is:
Return to the first step in the sequence.
Command that makes a character conduct assembly. This involves delivering a detention message.
Command that makes a character conduct a class. It determines whether the character is teaching Eric, and passes control to a ConductClassWithEric or ConductClassWithoutEric command as appropriate.
Parameters: |
|
---|
Make a character conduct a class.
Returns: | A ConductClassWithoutEric command if the character is not teaching Eric; None if the character is teaching Eric but the swot hasn’t shown up yet; a ConductClassWithEric command otherwise. |
---|
Command that makes a character conduct a class with Eric. This involves waiting until the swot shows up, listening to him while he tells tales and responding appropriately, wiping the board (if there is one in the room), optionally writing on the board, and finally either telling the kids what to do and pacing up and down until the bell rings, or starting a question-and-answer session with the swot. At various points in this process, the character will also respond to the swot’s tales about Eric being missing.
Parameters: | qa_group – The Q&A group from which to choose questions and answers for the teacher and the swot; if None, the Q&A group will be chosen at random from those available each time a question and answer is generated. |
---|
Command that makes a character conduct a class without Eric. This involves wiping the board (if there is one in the room), optionally writing on the board, telling the kids what to do, and then pacing up and down until the bell rings.
Make a character perform the next step in conducting this class.
Returns: | A WipeBoard command; a GoToXY command to make the character return to the middle of the board after wiping it; a WriteOnBoard command (possibly); a TellClassWhatToDo command; or a WalkUpOrDown command. |
---|
Command that makes a character perform assembly duty. This involves checking whether Eric is present in the assembly hall, and chasing him down if he’s absent.
Parameters: |
|
---|
Make a character perform assembly duty. If the character has just successfully herded the absent Eric to the assembly hall, the character’s command list is restarted (so that he returns to the back of the assembly hall and starts the Eric-watching process over again).
Returns: | self if the character has just herded Eric back to the assembly hall, or assembly has finished; None if it’s not time to start keeping an eye out for Eric yet, or Eric is present; or a FetchEric command. |
---|
Command that makes a character drop a stinkbomb.
Make a character drop a stinkbomb (thus creating a stinkbomb cloud).
Returns: | None. |
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Return whether this command is interruptible.
Returns: | False. |
---|
Make a character lower his arm after dropping a stinkbomb.
Returns: | None. |
---|
Make a character raise his arm in preparation for dropping a stinkbomb.
Returns: | None. |
---|
Command that makes Eric throw away his water pistol.
Make Eric drop his water pistol.
Returns: | None. |
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Make Eric stand up straight again after dropping his water pistol.
Returns: | None. |
---|
Command that ends the game. May be used by any character.
Make a character end the game.
Returns: | None. |
---|
Command that makes a character stand on a chair or start jumping.
Parameters: | delay – The delay before the character will get off a chair or stop jumping. |
---|
Make a character:
Returns: | self if the character has finished standing on a chair or jumping, None otherwise. |
---|
Return whether this command is interruptible.
Returns: | False (a musophobe must not be distracted while evading a mouse). |
---|
Command that controls a falling object (a conker or a drop of water or sherry).
Control an object that may be falling. If the object is not falling, do nothing; otherwise make it fall a bit, taking appropriate action if it hits the floor or a person’s head.
Returns: | None. |
---|
Return whether this command is interruptible.
Returns: | False (falling objects do not care about the bell). |
---|
Command that controls Eric’s descent to the floor (as from a bike that has run out of momentum, or a plant that has died).
Make Eric fall. If he has reached the floor, he will assume a sitting position.
Returns: | self if Eric has hit the floor, or None if he’s still falling. |
---|
Command that makes a character find and hover around Eric until he goes to wherever he should be.
Make a character take the next step in the search for Eric.
Returns: | self if Eric is where he should be, or is due to be expelled; None if the character is already beside Eric; or a GoTowardsXY command. |
---|
Command that makes a character go and find Eric.
Make a character take the next step in the search for Eric. The skool clock is stopped to ensure that the character has enough time to find him. When Eric is found, he is frozen until the character decides to unfreeze him.
Returns: | self if Eric has been found and frozen, None if Eric has been found but cannot be frozen at the moment, or a GoTowardsXY command. |
---|
Command that makes a character start looking for Eric if he’s not where he should be.
Command that makes a character find a seat and sit down.
Parameters: |
|
---|
Command that makes a character fire a catapult.
Make a character start or finish raising his catapult to eye level.
Returns: | False if the character has yet to raise the catapult to eye level, or None if he has raised it to eye level. |
---|
Make a character launch a catapult pellet.
Returns: | None. |
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Return whether this command is interruptible.
Returns: | False (a catapult-firing character should finish what he’s started). |
---|
Make a character start or finish lowering his catapult.
Returns: | False if the character has not finished lowering his catapult, or None if he has. |
---|
Command that makes a character check whether it’s a good time to launch a catapult pellet, and act accordingly. This command is used as a controlling command (see CommandList.set_controlling_command()).
Returns the command that should be used to make a character fire his catapult.
Returns: | A FireCatapult command. |
---|
Return whether this character will fire a catapult pellet. The answer will be True if all the conditions described in HitOrFireNowAndThen.ready are met, and also:
Command that makes a character fire a water pistol.
Make a character take out his water pistol and aim it.
Returns: | None. |
---|
Make a character pull the trigger of his water pistol (thus releasing a jet of water or sherry).
Returns: | None. |
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Return whether this command is interruptible.
Returns: | False. |
---|
Make a character put his water pistol back in his pocket.
Returns: | None. |
---|
Command that controls Eric’s flight through a designated sequence of locations (relative to the starting point) and animatory states.
Parameters: |
|
---|
Command that controls a character who has been knocked to the floor.
Parameters: | count – The delay before the character should get up. |
---|
Make a character remain on the floor, or get up if enough time has passed.
Returns: | self if the character has got up and is ready to resume normal service, None otherwise. |
---|
Return whether this command is interruptible.
Returns: | False (the bell cannot raise characters from the floor). |
---|
Command that makes a character follow another character.
Parameters: | character_id – The ID of the character to follow. |
---|
Command that controls Eric while he’s frozen (as by the FindEric command).
Control Eric while he’s frozen. Each time this method is called, a check is made whether Eric has acknowledged understanding of the message being delivered to him (see TellEricAndWait).
Returns: | None. |
---|
Command that makes a character go to a location.
Parameters: |
|
---|
Make a character take the next step towards his destination.
Returns: | self if the character has already reached his destination, None otherwise. |
---|
Command that makes a character go to a location chosen at random.
Command that makes a character go to a location specified by x- and y-coordinates.
Parameters: |
|
---|
Command that makes a character take one step towards a location.
Parameters: |
|
---|
Command that makes a character tell tales and answer the teacher’s questions during a lesson. It is used by the swot.
Command that controls a plant.
Parameters: |
|
---|
Control a plant. If the plant has recently been watered, it will grow to full height and then die (disappear).
Returns: | None. |
---|
Return whether this command is interruptible.
Returns: | False (plants do not care about the bell). |
---|
Command that makes a character throw a punch.
Make a character start or finish raising his fist.
Returns: | None if the character’s fist is fully raised, False otherwise. |
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Make a character deck anyone unfortunate enough to come into contact with his raised fist.
Returns: | None. |
---|
Return whether this command is interruptible.
Returns: | False. |
---|
Make a character start or finish lowering his fist.
Returns: | None if the character’s fist is fully lowered, False otherwise. |
---|
Command that makes a character check whether it’s a good time to throw a punch, and act accordingly. This command is used as a controlling command (see CommandList.set_controlling_command()).
Returns the command that should be used to make a character throw a punch.
Returns: | A Hit command. |
---|
Return whether this character will throw a punch. The answer will be True if all the conditions described in HitOrFireNowAndThen.ready() are met, and also:
Abstract command that makes a character check whether it’s a good time to throw a punch or launch a catapult pellet, and act accordingly.
Make a character start throwing a punch or launching a catapult pellet if conditions are favourable.
Returns: | self if conditions are not favourable, or a Hit or FireCatapult command. |
---|
Return whether now is a good time for this character to throw a punch or fire a catapult pellet. The answer will be True if all the following conditions are met:
Command that controls a frog while it’s hopping.
Parameters: | phases – The phases of animation to use for the hop. |
---|
Move a frog to the next phase of animation in the hop.
Returns: | self if the hop is finished, or None. |
---|
Return whether this command is interruptible.
Returns: | False. |
---|
Command that makes a character jump.
Make a character return to the floor after jumping.
Returns: | None. |
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Make a character jump into the air.
Returns: | None. |
---|
Command that jumps forwards or backwards in a character’s command list if a specified door or window is open.
Parameters: |
|
---|
Jump forwards or backwards in a character’s command list if a specified door or window is open.
Returns: | self. |
---|
Command that jumps forwards or backwards in a character’s command list if a specified door or window is shut.
Parameters: |
|
---|
Jump forwards or backwards in a character’s command list if a specified door or window is shut.
Returns: | self. |
---|
Command that controls Eric after he’s jumped off the saddle of the bike.
Place the frog in a cup (if Eric has it and has reached a cup).
Returns: | None |
---|
Guide Eric back to the floor after jumping off the saddle of the bike.
Returns: | False if Eric has not reached the floor yet, or None otherwise. |
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Make Eric rise again and raise his arm (to reach for a cup).
Returns: | None. |
---|
Make Eric rise off the bike saddle.
Returns: | None. |
---|
Command that controls Eric while he kisses (or attempts to kiss) another character.
Control Eric as he finishes a kiss or attempted kiss. If there was no one within kissing range in front of Eric, he will return from the midstride position. If there was someone kissable within kissing range, they will either finish the kiss with Eric (if they accepted it) or deck him (if they decided to slap him instead).
Returns: | None. |
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Control Eric as he begins an attempt to kiss someone. If there is no one within kissing range in front of Eric, he will move midstride. If there is someone kissable within kissing range, they will either accept the kiss or slap him.
Returns: | None. |
---|
Command that controls an adult character who has been knocked over by a catapult pellet or conker.
Parameters: |
|
---|
Control an adult character who has been knocked over. If conditions are right and the character holds a safe combination letter, he will reveal it. If enough time has passed since being knocked over, the character will give lines if any suitable recipient is nearby.
Returns: | self if the character has got up and is ready to resume normal service, None otherwise. |
---|
Command that makes a character keep an eye out for Eric, and act appropriately if he’s spotted. It is used by Miss Take to make her chase Eric out of the girls’ skool if she spots him there when it’s not playtime. This command is used as a subcommand (see CommandList.set_subcommand()).
Parameters: |
|
---|
Make a character check whether they can see Eric in the girls’ skool during a non-playtime period, and switch to an appropriate command list if so.
Returns: | self. |
---|
Command that makes a character walk up and down until a signal is raised.
Parameters: |
|
---|
Make a character walk up and down unless the signal has been raised.
Returns: | self if the signal has been raised, or a WalkAround command. |
---|
Command that controls a bike when Eric’s not sitting on the saddle.
Control a bike when Eric’s not sitting on the saddle. If the bike is resting on the floor or is not yet visible, do nothing; otherwise move the bike forwards.
Returns: | None. |
---|
Return whether this command is interruptible.
Returns: | False (the bike does not care about the bell). |
---|
Command that controls a desk lid.
Parameters: | delay – The delay before an opened desk lid closes. |
---|
Control a desk lid. If the desk lid is not raised, nothing happens. If the desk lid has just been raised, the contents of the desk (if any) are delivered to the lid-raiser.
Returns: | None. |
---|
Abstract command that makes a character open or close a door or window.
Parameters: |
|
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Return whether this command is interruptible.
Returns: | False. |
---|
Make a character lower his arm after opening or closing a door or window.
Returns: | None. |
---|
Open or close a door or window.
Returns: | None. |
---|
Make a character raise his arm in preparation for opening or closing a door or window, or do nothing if the door/window is already in the desired state.
Returns: | self if the door/window is already in the desired state, or None if the character raised his arm. |
---|
Command that controls a frog.
Parameters: |
|
---|
Return whether this command is interruptible.
Returns: | False (frogs do not care about the bell). |
---|
Command that controls a mouse.
Parameters: |
|
---|
Control a mouse. The pattern of movements of a mouse is as follows:
- Sprint up and down a few times.
- Hide for a bit.
- Go to 1, or die.
Returns: | None. |
---|
Return whether this command is interruptible.
Returns: | False (mice do not care about the bell). |
---|
Command that controls a catapult pellet.
Move a catapult pellet if it’s currently airborne, remove it from sight if it’s reached the end of its flight, or else do nothing. If the pellet is airborne and hits a wall, door, window, shield, cup, conker or head, appropriate action is taken.
Returns: | None. |
---|
Return whether this command is interruptible.
Returns: | False (a catapult pellet should not be stopped by the bell). |
---|
Command that controls a stream of liquid (water or sherry) fired from a water pistol.
Move a stream of water or sherry one phase further in its trajectory. If the liquid hits a cup, a plant or the floor on its journey, appropriate action is taken.
Returns: | None. |
---|
Return whether this command is interruptible.
Returns: | False (flying liquids are unstoppable). |
---|
Command that makes a character open a door or window.
Parameters: | barrier_id – The ID of the door or window. |
---|
Command used to occupy a character while they are responding to an attempted kiss from Eric.
Command that makes Eric release some mice.
Return the list of steps (methods) to execute for this complex command. The steps are:
Make Eric release some mice.
Returns: | None. |
---|
Make Eric stand up straight after bending over to release some mice.
Returns: | self. |
---|
Command that restarts a character’s command list.
Restart a character’s command list.
Returns: | self |
---|
Command that controls Eric while he’s on a bike.
Parameters: | bike – The bike Eric’s riding. |
---|
Control Eric while he’s on a bike. Keep the bike moving if Eric pedals, or carry Eric along with the bike if he’s standing on the saddle.
Returns: | self if Eric has dismounted; a JumpOffSaddle command if Eric jumped while standing on the saddle; a Flight command if Eric hit the skool gate while standing on the saddle; a FallToFloor command if the bike ran out of momentum; or None otherwise. |
---|
Command that makes a character say something.
Parameters: |
|
---|
Make a character utter the next bit of whatever he’s saying. If the character has finished speaking, his speech bubble is removed, and any listeners are notified.
Returns: | self if the character has finished speaking, None otherwise. |
---|
Remove the character’s speech bubble. This method is called if the command is removed from the command stack before exiting normally.
Command that makes a character set the skool clock to a specified time.
Parameters: | ticks (number) – The time to set the clock to (remaining ticks till the bell rings). |
---|
Make a character set the skool clock.
Returns: | self. |
---|
Command that sets a controlling command on a character’s command list. See CommandList.set_controlling_command() for more details.
Parameters: |
|
---|
Set the controlling command on a character’s command list.
Returns: | self. |
---|
Command that makes the next command in a character’s command list be regarded as the first (for the purposes of a restart).
Make the next command in a character’s command list be regarded as the first (for the purposes of a restart).
Returns: | self. |
---|
Command that sets a subcommand on a character’s command list. See CommandList.set_controlling_command() for more details.
Parameters: |
|
---|
Set a subcommand on a character’s command list.
Returns: | self. |
---|
Command that makes a character run after Eric and then hover around him until the bell rings.
Make a character take the next step in the search for Eric, or remain by his side.
Returns: | A GoTowardsXY command if the character hasn’t found Eric yet, or None if the character is already by Eric’s side. |
---|
Command that makes a character close a door or window.
Parameters: | barrier_id – The ID of the door or window. |
---|
Command that makes a character raise a signal.
Parameters: | signal – The signal to raise. |
---|
Make a character raise a signal.
Returns: | self. |
---|
Command that makes a character find a spot to sit down during assembly, and keeps him seated until assembly has finished.
Parameters: |
|
---|
Make a character find a spot to sit during assembly. If assembly has already finished, the command is terminated.
Returns: | self if assembly has finished, or a GoToXY command to send the character to a place to sit down. |
---|
Return the list of steps (methods) to execute for this complex command. The steps are:
Make a character get up if assembly has finished. If assembly has not finished yet, return here next time.
Returns: | False if assembly is still in progress, or None if the character got up off the floor. |
---|
Make a character sit down for assembly, or turn round to face the right way for assembly. If assembly has already finished, the command is terminated.
Returns: | self if assembly has finished, False if the character was turned round, or None if the character sat down. |
---|
Command that makes a character do nothing. It is used to make a character sit still during a lesson.
Make a character do nothing.
Returns: | None. |
---|
Command that makes a character seek out another character while throwing occasional punches. This command is used as a controlling command (see CommandList.set_controlling_command()).
Parameters: | character_id – The ID of the character to stalk. |
---|
Make a character proceed one step further towards whoever he’s stalking, and consider throwing a punch while he’s at it.
Returns: | A HitNowAndThen command. |
---|
Command that restarts a character’s command list unless it’s time to start assembly.
Parameters: | signal – The signal to raise to indicate that assembly has started. |
---|
Restart a character’s command list unless it’s time to start assembly.
Returns: | self if it’s time to start assembly, None otherwise. |
---|
Command that makes a character start dinner if the time has come, or restarts the character’s command list if it’s still too early. It is used by teachers on dinner duty.
Make a character start dinner, or restart his command list if it’s too early to start dinner.
Returns: | self |
---|
Command that makes a character start a lesson if the time has come, or restarts the character’s command list if it’s still too early.
Parameters: | signal – The signal to raise when starting the lesson. |
---|
Make a character start a lesson, or restart his command list if it’s too early to start the lesson. If it’s time to start the lesson, the character has a special safe secret question, and he can see the answer on a nearby blackboard, he will reveal his safe secret.
Returns: | A TellKidsToSitDown command if it’s time to start the lesson, self otherwise. |
---|
Command that controls a stinkbomb cloud.
Parameters: | delay – The delay before the stinkbomb disappears. |
---|
Animate a stinkbomb cloud (if it’s visible).
Returns: | None. |
---|
Command that makes a character try to stop Eric escaping from skool, and alert whoever should be alerted.
Parameters: |
|
---|
Make a character raise the alarm (if he hasn’t already) that Eric is trying to escape, and continue trying to stop Eric if need be.
Returns: | self if the character has deemed it no longer necessary to try and stop Eric escaping, or None otherwise. |
---|
Command that makes a character tell a class what to do. It is used by teachers.
Command that makes a character say something to Eric.
Parameters: | message – The message to give to Eric. |
---|
Command that makes a character say something to Eric, and wait for a response.
Parameters: | message – The message to give to Eric. |
---|
Make a character say something to Eric, and then wait for a response. When Eric has responded, he will be unfrozen. If Eric does not respond within a certain period, the character will repeat the message and wait again.
Returns: | self if Eric has responded, None if the character is waiting for Eric to respond, or a Say command. |
---|
Command that makes a character tell the kids to sit down.
Command that makes a character trip people up while running towards his destination. This command is used as a controlling command (see CommandList.set_controlling_command()).
Make a character start or continue running, and trip up anyone in his path.
Returns: | self. |
---|
Command that makes a character lower a signal.
Parameters: | signal – The signal to lower. |
---|
Make a character lower a signal.
Returns: | self. |
---|
Command that makes a character wait at a door until everyone is on the correct side of it (that is, boys on the boys’ side, girls on the girls’ side).
Parameters: | door_id – The ID of the door to wait at. |
---|
Make a character wait at a door until everyone is on the correct side of it.
Returns: | self if everyone is on the correct side of the door, None otherwise. |
---|
Command that makes a character wait until a signal is raised.
Parameters: | signal – The signal to wait for. |
---|
Make a character wait for a signal.
Returns: | self if the signal has been raised, None otherwise. |
---|
Command that makes a character walk up and down a given number of times.
Parameters: |
|
---|
Make a character walk up (away from the walkabout origin) or down (back to the walkabout origin). If the character is on a staircase, make him finish going up or down it first.
Returns: | self if the designated number of walkabouts has been performed, None if the character is on a staircase, or a GoToXY command. |
---|
Command that makes a character walk fast (as kids do half the time, and teachers do when chasing Eric). This command is used as a controlling command (see CommandList.set_controlling_command()).
Ensure that a character starts or continues to walk fast.
Returns: | self. |
---|
Trigger a speed change for the character so that he no longer runs continuously.
Command that makes a character walk up (away from an origin) or down (back to the origin).
Command that makes a character keep an eye out for Eric, and alert someone if they spot him trying to escape from skool. This command is used as a controlling command (see CommandList.set_controlling_command()).
Parameters: |
|
---|
Command that makes a character wipe a blackboard.
Return the list of steps (methods) to execute for this complex command. The steps are:
Return whether this command is interruptible.
Returns: | False (blackboards should never be left partially wiped). |
---|
Make a character lower his arm after wiping a bit of a blackboard. If there are any bits of the blackboard left to wipe, the command is restarted.
Returns: | None. |
---|
Make a character walk to the next part of the blackboard that needs wiping. If the character hasn’t started wiping yet, he is sent to the nearest edge of the blackboard.
Returns: | A GoToXY command to send the character to the appropriate location. |
---|
Make a character raise his arm and wipe a bit of a blackboard.
Returns: | None. |
---|
Command that controls Eric while he’s writing on a blackboard.
Control Eric while he’s writing on a blackboard.
Returns: | self if Eric has finished writing on the blackboard, None otherwise. |
---|
Command that makes a character write on a blackboard.
Parameters: | message – The message to write on the blackboard. |
---|
Make a character write the next letter of the message on a blackboard. The character’s arm will be alternately raised or lowered while writing.
Returns: | self if the character has finished writing, None otherwise. |
---|
Return whether this command is interruptible.
Returns: | False (a blackboard should not be left half-written on) |
---|
Command that makes a character write on a blackboard unless a specified signal has been raised.
Parameters: | signal – The signal to check before writing on the blackboard. |
---|
Make a character write on a blackboard unless a signal has been raised.
Returns: | self if the signal has been raised, or the blackboard is dirty, or the character has finished writing on the blackboard; a WriteOnBoard command otherwise. |
---|
Return the class object for a given command.
Parameters: | command_name – The name of the command. |
---|