aboutsummaryrefslogtreecommitdiff
path: root/Info/10/2/Prison/WACHE.java
diff options
context:
space:
mode:
Diffstat (limited to 'Info/10/2/Prison/WACHE.java')
-rwxr-xr-xInfo/10/2/Prison/WACHE.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/Info/10/2/Prison/WACHE.java b/Info/10/2/Prison/WACHE.java
new file mode 100755
index 00000000..03d3b7f1
--- /dev/null
+++ b/Info/10/2/Prison/WACHE.java
@@ -0,0 +1,16 @@
+public class WACHE
+{
+ private int id;
+
+ public WACHE(int nummer)
+ {
+ id = nummer;
+ }
+
+ public void Besuche(int zellenNummer, ZELLE zelle)
+ {
+ if (zellenNummer % id == 0) {
+ zelle.Umschalten();
+ }
+ }
+}