From 060152fc2959b4df337bfeb933e3ad0ad48820f3 Mon Sep 17 00:00:00 2001 From: DeltaNedas Date: Fri, 16 Oct 2020 23:06:46 +0100 Subject: [PATCH] make calc stuff pkg private again --- core/src/mindustry/graphics/g3d/PlanetGrid.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/mindustry/graphics/g3d/PlanetGrid.java b/core/src/mindustry/graphics/g3d/PlanetGrid.java index c0c7ebbe9e..8fb19dff56 100644 --- a/core/src/mindustry/graphics/g3d/PlanetGrid.java +++ b/core/src/mindustry/graphics/g3d/PlanetGrid.java @@ -187,36 +187,36 @@ public class PlanetGrid{ } } - public static int pos(Ptile t, Ptile n){ + static int pos(Ptile t, Ptile n){ for(int i = 0; i < t.edgeCount; i++) if(t.tiles[i] == n) return i; return -1; } - public static int pos(Ptile t, Corner c){ + static int pos(Ptile t, Corner c){ for(int i = 0; i < t.edgeCount; i++) if(t.corners[i] == c) return i; return -1; } - public static int pos(Corner c, Corner n){ + static int pos(Corner c, Corner n){ for(int i = 0; i < 3; i++) if(c.corners[i] == n) return i; return -1; } - public static int tileCount(int size){ + static int tileCount(int size){ return 10 * Mathf.pow(3, size) + 2; } - public static int cornerCount(int size){ + static int cornerCount(int size){ return 20 * Mathf.pow(3, size); } - public static int edgeCount(int size){ + static int edgeCount(int size){ return 30 * Mathf.pow(3, size); }