package ru.deadsoftware.cavedroid.game.mobs import ru.deadsoftware.cavedroid.game.GameItemsHolder import ru.deadsoftware.cavedroid.game.GameScope import java.io.Serializable import java.util.* import javax.inject.Inject @GameScope class MobsController @Inject constructor( gameItemsHolder: GameItemsHolder ) : Serializable { private val _mobs = LinkedList() val player: Player = Player(gameItemsHolder) val mobs: List get() = _mobs fun addMob(mob: Mob) { _mobs.add(mob) } companion object { private const val TAG = "MobsController" } }