package net.torvald.terrarum.gameactors

import net.torvald.terrarum.Terrarum
import org.newdawn.slick.GameContainer

/**
 * Created by minjaesong on 16-05-25.
 */
class ThreadActorUpdate(val startIndex: Int, val endIndex: Int,
                        val gc: GameContainer, val delta: Int) : Runnable {
    override fun run() {
        for (i in startIndex..endIndex)
            Terrarum.ingame!!.actorContainer[i].update(gc, delta)
    }
}