code cleanup related to ActorWithPhysics

This commit is contained in:
minjaesong
2017-05-10 21:02:05 +09:00
parent f45dc6fde2
commit 3de9cedec3
6 changed files with 15 additions and 12 deletions

View File

@@ -80,7 +80,7 @@ class Hitbox(x1: Double, y1: Double, width: Double, height: Double) {
fun setPositionX(x: Double) = setPosition(x, posY)
fun setPositionY(y: Double) = setPosition(posX, y)
fun setPositionFromPoint(x1: Double, y1: Double): Hitbox {
fun setPositionFromPointed(x1: Double, y1: Double): Hitbox {
hitboxStart = Point2d(x1 - width / 2, y1 - height)
return this
}