summaryrefslogtreecommitdiff
path: root/core/src/kz/ilotterytea/maxon/player
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-10-26 00:19:22 +0500
committerilotterytea <iltsu@alright.party>2024-10-26 00:19:22 +0500
commitd1ee70ccb99cc23cbd3d20bb5daf70cd9aa54205 (patch)
treeafd2f85ebb2b4f546ffde2491e4600c3aea6fdea /core/src/kz/ilotterytea/maxon/player
parent9468770a3471d607b0bfd6b0f8554eeb6eccf1e0 (diff)
upd: unused code cleanup
Diffstat (limited to 'core/src/kz/ilotterytea/maxon/player')
-rw-r--r--core/src/kz/ilotterytea/maxon/player/MaxonItem.java23
-rw-r--r--core/src/kz/ilotterytea/maxon/player/MaxonItemEnum.java7
-rw-r--r--core/src/kz/ilotterytea/maxon/player/MaxonItemRegister.java39
-rw-r--r--core/src/kz/ilotterytea/maxon/player/MaxonPlayer.java26
-rw-r--r--core/src/kz/ilotterytea/maxon/player/utils/PetUtils.kt42
5 files changed, 0 insertions, 137 deletions
diff --git a/core/src/kz/ilotterytea/maxon/player/MaxonItem.java b/core/src/kz/ilotterytea/maxon/player/MaxonItem.java
deleted file mode 100644
index 50a9f91..0000000
--- a/core/src/kz/ilotterytea/maxon/player/MaxonItem.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package kz.ilotterytea.maxon.player;
-
-import kz.ilotterytea.maxon.ui.AnimatedImage;
-
-public class MaxonItem {
- public int id;
- public String name;
- public String desc;
- public AnimatedImage icon;
- public MaxonItemEnum type;
- public float price;
- public float multiplier;
-
- public MaxonItem(int id, String name, String desc, AnimatedImage icon, MaxonItemEnum type, float price, float multiplier) {
- this.id = id;
- this.name = name;
- this.desc = desc;
- this.icon = icon;
- this.type = type;
- this.price = price;
- this.multiplier = multiplier;
- }
-} \ No newline at end of file
diff --git a/core/src/kz/ilotterytea/maxon/player/MaxonItemEnum.java b/core/src/kz/ilotterytea/maxon/player/MaxonItemEnum.java
deleted file mode 100644
index 12018be..0000000
--- a/core/src/kz/ilotterytea/maxon/player/MaxonItemEnum.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package kz.ilotterytea.maxon.player;
-
-public enum MaxonItemEnum {
- DUMMY,
- BUFF,
- SLAVE
-}
diff --git a/core/src/kz/ilotterytea/maxon/player/MaxonItemRegister.java b/core/src/kz/ilotterytea/maxon/player/MaxonItemRegister.java
deleted file mode 100644
index 7b7bc33..0000000
--- a/core/src/kz/ilotterytea/maxon/player/MaxonItemRegister.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package kz.ilotterytea.maxon.player;
-
-import kz.ilotterytea.maxon.ui.AnimatedImage;
-
-import java.util.ArrayList;
-
-public class MaxonItemRegister {
- private static ArrayList<MaxonItem> items = new ArrayList<>();
-
- public static void register(
- int id,
- String name,
- String desc,
- AnimatedImage icon,
- MaxonItemEnum type,
- float price,
- float multiplier
- ) {
- items.add(new MaxonItem(id, name, desc, icon, type, price, multiplier));
- }
-
- public static void clear() { items.clear(); }
-
- public static void unRegister(
- int id
- ) {
- items.remove(id);
- }
-
- public static ArrayList<MaxonItem> getItems() { return items; }
- public static MaxonItem get(int id) {
- for (MaxonItem item : items) {
- if (item.id == id) {
- return item;
- }
- }
- return null;
- }
-}
diff --git a/core/src/kz/ilotterytea/maxon/player/MaxonPlayer.java b/core/src/kz/ilotterytea/maxon/player/MaxonPlayer.java
deleted file mode 100644
index 7ba5f49..0000000
--- a/core/src/kz/ilotterytea/maxon/player/MaxonPlayer.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package kz.ilotterytea.maxon.player;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-
-public class MaxonPlayer implements Serializable {
- public float points;
- public float multiplier;
- public ArrayList<Integer> purchasedItems;
-
- public MaxonPlayer() {
- this.points = 0;
- this.multiplier = 1.2f;
- this.purchasedItems = new ArrayList<>();
- }
-
- public void load(MaxonPlayer player) {
- if (player != null) {
- this.points = player.points;
- this.multiplier = player.multiplier;
-
- this.purchasedItems.clear();
- this.purchasedItems.addAll(player.purchasedItems);
- }
- }
-}
diff --git a/core/src/kz/ilotterytea/maxon/player/utils/PetUtils.kt b/core/src/kz/ilotterytea/maxon/player/utils/PetUtils.kt
deleted file mode 100644
index 31d3720..0000000
--- a/core/src/kz/ilotterytea/maxon/player/utils/PetUtils.kt
+++ /dev/null
@@ -1,42 +0,0 @@
-package kz.ilotterytea.maxon.player.utils
-
-import com.badlogic.gdx.assets.AssetManager
-import com.badlogic.gdx.graphics.Texture
-import kz.ilotterytea.maxon.anim.SpriteUtils
-import kz.ilotterytea.maxon.ui.AnimatedImage
-
-/**
- * Utilities for some operations with pets.
- */
-class PetUtils {
- companion object {
- @JvmStatic
- /**
- * Get animated image of pet by its ID.
- * */
- fun animatedImageById(assetManager: AssetManager, id: Int) : AnimatedImage {
- val img: AnimatedImage
-
- when (id) {
- // Maxon:
- 0 -> img = AnimatedImage(SpriteUtils.splitToTextureRegions(
- assetManager.get(
- "sprites/sheet/loadingCircle.png",
- Texture::class.java
- ),
- 112, 112, 10, 5
- ))
- // Maxon:
- else -> img = AnimatedImage(SpriteUtils.splitToTextureRegions(
- assetManager.get(
- "sprites/sheet/loadingCircle.png",
- Texture::class.java
- ),
- 112, 112, 10, 5
- ))
- }
-
- return img
- }
- }
-} \ No newline at end of file