39 lines
1.1 KiB
Java
39 lines
1.1 KiB
Java
package nl.sbdeveloper.themeparkplus.api.objects;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Getter;
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.Setter;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
@NoArgsConstructor @AllArgsConstructor
|
|
public class WaitingRow {
|
|
@Getter @Setter private String rideID;
|
|
@Getter @Setter private String regionID;
|
|
@Getter @Setter private transient int waitingPlayers = 0;
|
|
@Getter private transient double waitingTimeMinutes = 0;
|
|
private ArrayList<SignLocation> signLocations = new ArrayList<>();
|
|
|
|
public WaitingRow(String rideID, String regionID) {
|
|
this.rideID = rideID;
|
|
this.regionID = regionID;
|
|
}
|
|
|
|
public ArrayList<SignLocation> getSignLocations() {
|
|
return signLocations;
|
|
}
|
|
|
|
public void addSignLocation(SignLocation loc) {
|
|
this.signLocations.add(loc);
|
|
}
|
|
|
|
public void removeSignLocation(SignLocation loc) {
|
|
this.signLocations.remove(loc);
|
|
}
|
|
|
|
public void setWaitingTimeMinutes(double waitingTimeMinutes) {
|
|
if (waitingTimeMinutes < 0) return;
|
|
this.waitingTimeMinutes = waitingTimeMinutes;
|
|
}
|
|
}
|