You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
589 B
Java
22 lines
589 B
Java
/*
|
|
This file defines the ProjectorCommand interface.
|
|
|
|
It says, "if you want a class you wrote to also be a ProjectorCommand,
|
|
it must have a method ```run``` which takes a ProjectorApplet and
|
|
returns a boolean".
|
|
|
|
You can quickly make a ProjectorCommand by using the syntax
|
|
|
|
yourLocalVariable = 5;
|
|
ProjectorCommand yourCommand = (ProjectorApplet p) -> {
|
|
your(yourLocalVariable);
|
|
code();
|
|
here();
|
|
}
|
|
return yourCommand;
|
|
*/
|
|
|
|
public interface ProjectorCommand {
|
|
boolean run(ProjectorApplet p) throws ProjectorCommandException;
|
|
}
|