BaseBoss

abstract class BaseBoss(initialX: Int, initialY: Int, firstAction: BossAction) : Boss

Constructors

Link copied to clipboard
constructor(initialX: Int, initialY: Int, firstAction: BossAction)

Properties

Link copied to clipboard
val lock: Any
Link copied to clipboard
open override val uuid: UUID

The universally unique identifier(UUID) of this object

Functions

Link copied to clipboard
open override fun action()
Link copied to clipboard
fun addAction(action: BossAction)
Link copied to clipboard
open override fun afterDead()
Link copied to clipboard
abstract fun beingHit(o: Object)

What to do after hit.

Link copied to clipboard
open override fun collide(o: Object): Boolean

Test if the object collide with another object o.

Link copied to clipboard
abstract fun dead()

Actions invoked after the entity is dead.

Link copied to clipboard
open override fun end(): Boolean
Link copied to clipboard
open override fun isDead(): Boolean

If the entity is dead.

Link copied to clipboard
abstract fun move()

How the entity move.

Link copied to clipboard
open override fun paint(g: Graphics2D)

Render the object.

Link copied to clipboard
abstract fun paintBossBar(r: Graphics2D)
Link copied to clipboard
abstract fun paintOthers(r: Graphics2D)
Link copied to clipboard
abstract fun shape(): Shape

The shape of the entity, used for collide test.

Link copied to clipboard
abstract fun texture(): String
Link copied to clipboard
open override fun update(): Boolean

Check the state of the object, and if this need to be removed, true should be returned.

Link copied to clipboard
fun x(): Double
fun x(x: Double)
Link copied to clipboard
fun y(): Double
fun y(y: Double)