mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 06:28:52 +00:00
refactor: prepare for raids
- Recode most classes - Add phases to battles - Pull updates from gradle-template-plugin
This commit is contained in:
1 parent
a4440c9283
commit
b1a95ed011
105 files changed
+6941
-3296
No files matched your search
@@ -2,6 +2,42 @@ package com.github.alathra.alathranwars.conflict;
|
||||
|
||||
import com.github.alathra.alathranwars.enums.ConflictType;
|
||||
|
||||
public class Conflict {
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user