Newer
Older
POS_for_GUI / src / Payment.java
k-fujii on 4 Apr 2022 377 bytes [add]各リソースを追加
import java.util.*;

public class Payment {
	private Points points;
	private History history;
	private int value;
	public Payment(Points points, History history) {
		this.points = points;
		this.history = history;
	}
	public void purchase(int x) {
		this.value = x;
		points.updatePayment(value);
		history.updatePayment(value);
	}
	public int getValue() {
		return value;
	}
}