Laser2unType

abstract class Laser2unType : Bullet

Constructors

Link copied to clipboard
constructor(initialX: Int, initialY: Int, vararg initialBullets: Laser2unType.SubBullet)
constructor(initialX: Int, initialY: Int, initialBullets: Collection<Laser2unType.SubBullet>)

Types

Link copied to clipboard
abstract class SubBullet : AbstractBullet

Properties

Link copied to clipboard
open override val uuid: UUID

The universally unique identifier(UUID) of this object

Functions

Link copied to clipboard
override fun collide(o: Object): Boolean
Link copied to clipboard
fun count(): Int
Link copied to clipboard
open override fun paint(g: Graphics2D)

Render the object.

Link copied to clipboard
fun pos(): Point

Get the coordinates of the bullet.

Link copied to clipboard
fun setX(nX: Double)
fun setX(nX: Int)
Link copied to clipboard
fun setY(nY: Double)
fun setY(nY: Int)
Link copied to clipboard
override fun shape(): Shape
Link copied to clipboard
override fun toString(): 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(): Int

Get the X coordinates of the bullet in int.

Link copied to clipboard
fun xD(): Double

Get the X coordinates of the bullet in double.

Link copied to clipboard
fun y(): Int

Get the Y coordinates of the bullet in int.

Link copied to clipboard
fun yD(): Double

Get the Y coordinates of the bullet in double.