Add 'Programming/ProgLab3/' from commit 'da7c6aa397ab3d503b9328211e5aaa932c071524'
git-subtree-dir: Programming/ProgLab3 git-subtree-mainline:329aa90447git-subtree-split:da7c6aa397
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package environment;
|
||||
|
||||
enum Ground {
|
||||
DIRT(0.3),
|
||||
GRASS(0.5),
|
||||
ASPHALT(0.8),
|
||||
SAND(0.2);
|
||||
|
||||
private final double comfort;
|
||||
|
||||
Ground(double comfort) {
|
||||
this.comfort = comfort;
|
||||
}
|
||||
|
||||
public double getComfort() {
|
||||
return comfort;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user