Verified Commit c36e855a authored by Lars Mitsem Selbekk's avatar Lars Mitsem Selbekk
Browse files

ktlint

parent df1eeaec
Pipeline #175828 failed with stages
in 18 minutes and 46 seconds
......@@ -3,13 +3,13 @@ package se.battlegoo.battlegoose.controllers
import com.badlogic.gdx.graphics.g2d.SpriteBatch
import se.battlegoo.battlegoose.datamodels.GridVector
import se.battlegoo.battlegoose.datamodels.ScreenVector
import se.battlegoo.battlegoose.utils.gridmath.findReachablePositions
import se.battlegoo.battlegoose.models.BattleMap
import se.battlegoo.battlegoose.models.Obstacle
import se.battlegoo.battlegoose.models.heroes.Hero
import se.battlegoo.battlegoose.models.units.UnitModel
import se.battlegoo.battlegoose.utils.Modal
import se.battlegoo.battlegoose.utils.ModalType
import se.battlegoo.battlegoose.utils.gridmath.findReachablePositions
import se.battlegoo.battlegoose.views.BattleMapTileState
import se.battlegoo.battlegoose.views.BattleMapTileView
import se.battlegoo.battlegoose.views.BattleMapView
......
package se.battlegoo.battlegoose.models
import se.battlegoo.battlegoose.datamodels.GridVector
import se.battlegoo.battlegoose.models.units.UnitModel
import se.battlegoo.battlegoose.utils.gridmath.Direction
import se.battlegoo.battlegoose.utils.gridmath.neighbours
import se.battlegoo.battlegoose.models.units.UnitModel
class BattleMap(
val background: BattleMapBackground,
......
......@@ -5,9 +5,9 @@ import com.badlogic.gdx.graphics.g2d.Sprite
import com.badlogic.gdx.graphics.g2d.SpriteBatch
import se.battlegoo.battlegoose.Game
import se.battlegoo.battlegoose.datamodels.ScreenVector
import se.battlegoo.battlegoose.utils.gridmath.isPointInsideHexagon
import se.battlegoo.battlegoose.utils.TextureAsset
import se.battlegoo.battlegoose.utils.WavePulsator
import se.battlegoo.battlegoose.utils.gridmath.isPointInsideHexagon
import se.battlegoo.battlegoose.views.utils.ClickObserver
import se.battlegoo.battlegoose.views.utils.ClickableImpl
import se.battlegoo.battlegoose.views.utils.ClickableView
......
......@@ -34,15 +34,23 @@ class MainMenuView(
)
private val joinLobbyBtn = ButtonView(
"joinLobbyBtn.png",
x0 + MenuLayout.BUTTON_WIDTH + MenuLayout.SPACER, y0, MenuLayout.BUTTON_WIDTH, onClickJoinLobby
x0 + MenuLayout.BUTTON_WIDTH + MenuLayout.SPACER,
y0,
MenuLayout.BUTTON_WIDTH, onClickJoinLobby
)
private val quickJoinBtn = ButtonView(
"quickJoinBtn.png",
x0 + 2 * (MenuLayout.BUTTON_WIDTH + MenuLayout.SPACER), y0, MenuLayout.BUTTON_WIDTH, onClickQuickJoin
x0 + 2 * (MenuLayout.BUTTON_WIDTH + MenuLayout.SPACER),
y0,
MenuLayout.BUTTON_WIDTH,
onClickQuickJoin
)
private val leaderboardBtn = ButtonView(
"leaderboardBtn.png",
x0 + 3 * (MenuLayout.BUTTON_WIDTH + MenuLayout.SPACER), y0, MenuLayout.BUTTON_WIDTH, onClickLeaderboard
x0 + 3 * (MenuLayout.BUTTON_WIDTH + MenuLayout.SPACER),
y0,
MenuLayout.BUTTON_WIDTH,
onClickLeaderboard
)
private val tutorialBtn = TextButton("How to play", skin)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment