Package com.csse3200.game.areas.terrain
Class GridFactory
java.lang.Object
com.csse3200.game.areas.terrain.GridFactory
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a grid factory with Orthogonal orientationGridFactory(GridComponent.GridOrientation orientation) Create a grid factory -
Method Summary
Modifier and TypeMethodDescriptioncreateGrid(float tileSize) Create a grid with default map sizecreateGrid(com.badlogic.gdx.math.GridPoint2 mapSize, float tileSize) Create a grid with specified dimensions
-
Constructor Details
-
GridFactory
public GridFactory()Create a grid factory with Orthogonal orientation -
GridFactory
Create a grid factory- Parameters:
orientation- orientation for the grid system
-
-
Method Details
-
createGrid
Create a grid with default map size- Parameters:
tileSize- Size of each tile in world units- Returns:
- GridComponent for spatial calculations
-
createGrid
Create a grid with specified dimensions- Parameters:
mapSize- Dimensions of the grid in tilestileSize- Size of each tile in world units- Returns:
- GridComponent for spatial calculations
-