- package model;
- /**
- * 本类用于存储记录,并提供一个方法接口供判断是否打破记录
- *
- * @author 何晓飞
- *
- */
- public class Record {
- private int seconds;
- private int level;
- /**
- *
- * @param level
- * 关数
- * @param seconds
- * 闯关时间
- */
- public Record(int level, int seconds) {
- this.seconds = seconds;
- this.level = level;
- }
- /**
- *
- * @return 记录所在关数
- */
- public int getLevel() {
- return this.level;
- }
- /**
- *
- * @return 闯关时间
- */
- public int getSeconds() {
- return this.seconds;
- }
- }