package net.torvald.terrarum.gameactors

import net.torvald.JsonFetcher
import net.torvald.random.Fudge3
import net.torvald.random.HQRNG
import net.torvald.terrarum.langpack.Lang
import com.google.gson.JsonObject
import org.newdawn.slick.SlickException
import java.io.IOException

/**
 * Created by minjaesong on 16-02-05.
 */

object CreatureBuilder {

    /**
     * @Param jsonFileName with extension
     */
    @Throws(IOException::class, SlickException::class)
    operator fun invoke(jsonFileName: String): ActorWithSprite {
        val actor = ActorWithSprite(ActorOrder.MIDDLE)
        InjectCreatureRaw(actor.actorValue, jsonFileName)

        return actor
    }
}