mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
- "unpacking" fresh new tool would un-register quickslot desig. - priority issue on "equipped by quickslot change" and "equipped by inventory UI"
34 lines
719 B
Kotlin
34 lines
719 B
Kotlin
package net.torvald.terrarum.gameactors
|
|
|
|
import org.newdawn.slick.GameContainer
|
|
|
|
/**
|
|
* Game player (YOU!)
|
|
*
|
|
* Created by minjaesong on 15-12-31.
|
|
*/
|
|
|
|
class Player(born: GameDate) : ActorHumanoid(born) {
|
|
|
|
companion object {
|
|
@Transient const val PLAYER_REF_ID: Int = 0x91A7E2
|
|
}
|
|
|
|
/**
|
|
* Creates new Player instance with empty elements (sprites, actorvalue, etc.).
|
|
|
|
* **Use PlayerFactory to build player!**
|
|
|
|
* @throws SlickException
|
|
*/
|
|
init {
|
|
referenceID = PLAYER_REF_ID // forcibly set ID
|
|
density = BASE_DENSITY
|
|
collisionType = COLLISION_KINEMATIC
|
|
}
|
|
|
|
override fun update(gc: GameContainer, delta: Int) {
|
|
super.update(gc, delta)
|
|
}
|
|
|
|
} |