fucked up while making ActorValue delegated – not applicable; can't have default value

making commits for files to keep so that I can discard changes
This commit is contained in:
minjaesong
2017-05-07 18:39:26 +09:00
parent 14dfb5c963
commit 959873413d
8 changed files with 53 additions and 52 deletions

View File

@@ -133,4 +133,8 @@ class Hitbox(x1: Double, y1: Double, width: Double, height: Double) {
fun fromTwoPoints(x1: Double, y1: Double, x2: Double, y2: Double) =
Hitbox(x1, y1, x2 - x1, y2 - y1)
}
operator fun minus(other: Hitbox): Vector2 {
return Vector2(other.centeredX - this.centeredX, other.centeredY - this.centeredY)
}
}