blob: 01ac446284e4a68643e4c10c31f793daae36827a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package de.lmu.tcs;
/**
* Model
*
* Immutable
*
* Created by jost on 24.11.15.
*/
public class Zelle {
public final static int TOT=0;
public final static int LEBENDIG=1;
private final Position position;
private final int zustand;
public Zelle(Position position, int zustand) {
this.position = position;
this.zustand = zustand;
}
public Position getPosition() {
return position;
}
public boolean istLebendig() {
return zustand==LEBENDIG;
}
public boolean istTot() {
return zustand==TOT;
}
}
|