Package com.csse3200.game.areas.terrain
Class TerrainLoader
java.lang.Object
com.csse3200.game.areas.terrain.TerrainLoader
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.badlogic.gdx.math.GridPoint2
chunktoWorldPos
(com.badlogic.gdx.math.GridPoint2 pos) static boolean
movedChunk
(com.badlogic.gdx.math.Vector2 position) static com.badlogic.gdx.math.GridPoint2
posToChunk
(com.badlogic.gdx.math.Vector2 pos) static void
setInitials
(com.badlogic.gdx.math.Vector2 position, TerrainComponent component)
-
Method Details
-
movedChunk
public static boolean movedChunk(com.badlogic.gdx.math.Vector2 position) -
setInitials
-
chunktoWorldPos
public static com.badlogic.gdx.math.GridPoint2 chunktoWorldPos(com.badlogic.gdx.math.GridPoint2 pos) -
posToChunk
public static com.badlogic.gdx.math.GridPoint2 posToChunk(com.badlogic.gdx.math.Vector2 pos)
-