Skip to content
Snippets Groups Projects
Commit 386ba41c authored by sfphoton's avatar sfphoton
Browse files

Worker now switches off the switch on which he steps

parent 5c0920dd
No related branches found
No related tags found
No related merge requests found
...@@ -84,4 +84,11 @@ public class Worker extends Moveable { ...@@ -84,4 +84,11 @@ public class Worker extends Moveable {
System.out.println("alive: " + alive); System.out.println("alive: " + alive);
} }
/**
* A munkás kikapcsolja a kapcsolót, amire lépett
*/
public void onSwitch(SwitchField s) {
s.turnOff();
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment