Dialogs

abstract class Dialogs(dialogs: ArrayDeque<Dialogs.Dialog>, messageX: Int, messageY: Int, initialX: Int, initialY: Int) : RenderableObject

Dialogs of the game, used to explain the useless game background.

Author

KKoishi_

Constructors

Link copied to clipboard
constructor(dialogs: ArrayDeque<Dialogs.Dialog>, messageX: Int, messageY: Int, initialX: Int, initialY: Int)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
open class Dialog(val faces: ArrayDeque<Dialogs.Face>, val message: String)
Link copied to clipboard
data class Face(val face: Texture, val x: Int, val y: Int, val state: Dialogs.FaceState)
Link copied to clipboard

Properties

Link copied to clipboard
open override val uuid: UUID

The universally unique identifier(UUID) of this object

Functions

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

Test if the object collide with another object o.

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

Render the object.

Link copied to clipboard
abstract fun paintBackground(g: Graphics2D)
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)