Newer
Older
JumpingGame / src / Gameover.java
k-fujii on 10 Sep 2021 257 bytes ・updateメソッドとsetterを分離
import java.util.*;

public class Gameover {
	private Position position;

	public Gameover(Position position) {
		this.position = position;
	}

	public boolean getGameover() {
		return ((this.position.getPosition().getValue() < -(1.0)) ? true : false);
	}
}