RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
GameRecord.java
1package com.osroyale.content.activity.record;
2
3import com.osroyale.content.activity.ActivityType;
4import com.osroyale.game.world.entity.mob.player.Player;
5import com.osroyale.util.Utility;
6
7import java.util.Objects;
8
34
35public class GameRecord {
36 public final String name;
37 public final String date;
38 public final int rank;
39 public final long time;
40 final ActivityType activityType;
41
42 private GameRecord(String name, String date, int rank, long time, ActivityType activityType) {
43 this.name = name;
44 this.date = date;
45 this.rank = rank;
46 this.time = time;
47 this.activityType = activityType;
48 }
49
50 GameRecord(Player player, long time, ActivityType activity) {
51 this(player.getName(), Utility.getSimpleDate(), player.right.getCrown(), time, activity);
52 }
53
54 @Override
55 public int hashCode() {
56 return Objects.hash(name, time);
57 }
58
59 @Override
60 public String toString() {
61 return "name=" + name + " time=" + time + " type=" + activityType;
62 }
63
64}
static String getSimpleDate()
Definition Utility.java:168