X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavedroid%2Fgame%2Fdebug%2FDebugInfoStringsProvider.kt;h=51dc335c50b3b302ea8cb7ce7d2ee50efe0fbe52;hb=0d6ab84418440a30f2de555cb30ce21af8dac12e;hp=f34903b143f8d505f3738f67dc68047327662586;hpb=c1b8f5c93482cb9933dd608c48f41622ce2994c6;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt b/core/src/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt index f34903b..51dc335 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt +++ b/core/src/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt @@ -3,7 +3,8 @@ package ru.deadsoftware.cavedroid.game.debug import com.badlogic.gdx.Gdx import ru.deadsoftware.cavedroid.game.GameScope import ru.deadsoftware.cavedroid.game.mobs.MobsController -import ru.deadsoftware.cavedroid.game.objects.DropController +import ru.deadsoftware.cavedroid.game.objects.container.ContainerController +import ru.deadsoftware.cavedroid.game.objects.drop.DropController import ru.deadsoftware.cavedroid.game.world.GameWorld import javax.inject.Inject @@ -11,7 +12,8 @@ import javax.inject.Inject class DebugInfoStringsProvider @Inject constructor( private val mobsController: MobsController, private val dropController: DropController, - private val gameWorld: GameWorld + private val containerController: ContainerController, + private val gameWorld: GameWorld, ) { fun getDebugStrings(): List { @@ -20,13 +22,14 @@ class DebugInfoStringsProvider @Inject constructor( return listOf( "FPS: ${Gdx.graphics.framesPerSecond}", "X: ${player.mapX}", - "Y: ${gameWorld.height - player.upperMapY}", + "Y: ${player.upperMapY} (${gameWorld.height - player.upperMapY})", "CurX: ${player.cursorX}", "CurY: ${player.cursorY}", "Velocity: ${player.velocity}", "Swim: ${player.swim}", "Mobs: ${mobsController.mobs.size}", "Drops: ${dropController.size}", + "Containers: ${containerController.size}", "Block: ${gameWorld.getForeMap(player.cursorX, player.cursorY).params.key}", "Hand: ${player.inventory.activeItem.item.params.key}", "Game mode: ${player.gameMode}",