refactor: prepare for raids

- Recode most classes
- Add phases to battles
- Pull updates from gradle-template-plugin
This commit is contained in:
darksaid98 committed 2024-09-21 10:37:15 +02:00
1 parent a4440c9283
commit b1a95ed011
105 files changed
+6941 -3296

No files matched your search

@@ -0,0 +1,27 @@
package com.github.alathra.alathranwars.conflict;
import java.util.UUID;
public interface IUnique<T extends IUnique<T>> {
UUID getUUID();
/**
* Equals boolean.
*
* @param uuid the uuid
* @return the boolean
*/
default boolean equals(UUID uuid) {
return getUUID().equals(uuid);
}
/**
* Equals boolean.
*
* @param obj the object implementing IUnique
* @return the boolean
*/
default boolean equals(T obj) {
return getUUID().equals(obj.getUUID());
}
}