mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-01 22:14:45 +00:00
- Recode most classes - Add phases to battles - Pull updates from gradle-template-plugin
44 lines
859 B
Java
44 lines
859 B
Java
package com.github.alathra.alathranwars.conflict;
|
|
|
|
import com.github.alathra.alathranwars.enums.ConflictType;
|
|
|
|
import java.util.UUID;
|
|
|
|
public abstract class Conflict implements IUnique<Conflict> {
|
|
private ConflictType conflictType;
|
|
private final UUID uuid;
|
|
|
|
public Conflict(UUID uuid) {
|
|
this.uuid = uuid;
|
|
}
|
|
|
|
/**
|
|
* @return conflict uuid
|
|
*/
|
|
@Override
|
|
public UUID getUUID() {
|
|
return uuid;
|
|
}
|
|
|
|
/**
|
|
* Equals boolean.
|
|
*
|
|
* @param uuid the uuid
|
|
* @return the boolean
|
|
*/
|
|
@Override
|
|
public boolean equals(UUID uuid) {
|
|
return getUUID().equals(uuid);
|
|
}
|
|
|
|
/**
|
|
* Equals boolean.
|
|
*
|
|
* @param conflict the conflict
|
|
* @return the boolean
|
|
*/
|
|
public boolean equals(Conflict conflict) {
|
|
return conflict.getUUID().equals(uuid);
|
|
}
|
|
}
|