ability to change current player as other NPC (maybe… maybe not…)

Former-commit-id: 54773bfa17456aaf42003c1d514e80dd860f58eb
Former-commit-id: e84f8312c99cff0e0692a492b7b850d09ffe4e44
This commit is contained in:
Song Minjae
2016-10-23 17:21:20 +09:00
parent 2b31bb962a
commit 9e8171b5b9
12 changed files with 106 additions and 30 deletions

View File

@@ -11,9 +11,8 @@ object PlayerBuilder {
private val JSONPATH = "./assets/raw/"
private val jsonString = String()
@Throws(IOException::class, SlickException::class)
fun create(): Player {
val p: Player = Player(Terrarum.ingame.world.time.currentTimeAsGameDate)
fun create(): Actor {
val p: Actor = Player(Terrarum.ingame.world.time.currentTimeAsGameDate)
CreatureRawInjector.inject(p.actorValue, "CreatureHuman.json")
// attach sprite