mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
UML for gameactors update
Former-commit-id: 607bd54b185df58d97ca1201979f0a071dd33463 Former-commit-id: 9d27207dc5fdec388844c2d15e4f4edd6f70628d
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
out/*
|
||||
bin/*
|
||||
hs_err_pid*
|
||||
/.idea/workspace.xml
|
||||
.idea/workspace.xml
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user