UML for gameactors update

Former-commit-id: 607bd54b185df58d97ca1201979f0a071dd33463
Former-commit-id: 9d27207dc5fdec388844c2d15e4f4edd6f70628d
This commit is contained in:
Song Minjae
2016-11-28 13:07:59 +09:00
parent c64c511bd3
commit a89bcff2bd
4 changed files with 8433 additions and 2548 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
out/*
bin/*
hs_err_pid*
/.idea/workspace.xml
.idea/workspace.xml

View File

@@ -39,10 +39,10 @@ open class ProjectileSimple(
*/
override val lightBoxList = ArrayList<Hitbox>()
val lifetimeMax = 2500
var lifetimeCounter = 0
private val lifetimeMax = 2500
private var lifetimeCounter = 0
val posPre: Point2d
private val posPre: Point2d
init {
setPosition(fromPoint.x, fromPoint.y)

View File

@@ -3,9 +3,31 @@ package net.torvald.terrarum.gameactors
/**
* Created by minjaesong on 16-04-26.
*/
class WeaponSwung(val itemID: Int) : ActorWithBody() {
class WeaponSwung(val itemID: Int) : ActorWithBody(), Luminous {
// just let the solver use AABB; it's cheap but works just enough
/**
* Recommended implementation:
*
override var luminosity: Int
get() = actorValue.getAsInt(AVKey.LUMINOSITY) ?: 0
set(value) {
actorValue[AVKey.LUMINOSITY] = value
}
*/
override var luminosity: Int
get() = throw UnsupportedOperationException()
set(value) {
}
/**
* Arguments:
*
* Hitbox(x-offset, y-offset, width, height)
* (Use ArrayList for normal circumstances)
*/
override val lightBoxList: List<Hitbox>
get() = throw UnsupportedOperationException()
init {
}

File diff suppressed because it is too large Load Diff