Constructor






Methods






Wave:canEnd()

Returns:

1: boolean










Wave:onEnd(death: any)

Arguments:

death: any




Wave:setArenaOffset(x: any, y: any)

Arguments:

x: any
y: any


Wave:setArenaPosition(x: any, y: any)

Arguments:

x: any
y: any




Wave:setArenaSize(width: any, height: any)

Arguments:

width: any
height: any


Wave:setSoulOffset(x: any, y: any)

Arguments:

x: any
y: any


Wave:setSoulPosition(x: any, y: any)

Arguments:

x: any
y: any


Wave:spawnBullet(bullet: any, : unknown)

Arguments:

bullet: any
: unknown

Returns:

1: Bullet|nil


Wave:spawnBulletTo(parent: any, bullet: any, : unknown)

Arguments:

parent: any
bullet: any
: unknown

Returns:

1: Bullet|nil


Wave:spawnObject(object: any, x: any, y: any)

Arguments:

object: any
x: any
y: any

Returns:

1: unknown|nil


Wave:spawnObjectTo(parent: any, object: any, x: any, y: any)

Arguments:

parent: any
object: any
x: any
y: any

Returns:

1: unknown


Wave:spawnSprite(texture: any, x: any, y: any, layer: any)

Arguments:

texture: any
x: any
y: any
layer: any

Returns:

1: unknown|nil


Wave:spawnSpriteTo(parent: any, texture: any, x: any, y: any, layer: any)

Arguments:

parent: any
texture: any
x: any
y: any
layer: any

Returns:

1: unknown|nil





Fields



Undocumented







Wave.arena_shape: nil

Wave arena shape (overrides all rectangle options)





Wave.arena_width: nil

Wave arena rectangle size





Wave.arena_x: nil

Wave arena position













Wave.bullets: table

Contains bullets added via spawnBullet





Wave.encounter: any

Reference to the current encounter



Wave.finished: boolean

Whether the wave is done or not



Wave.has_arena: boolean

Whether the wave should spawn an arena





Wave.objects: table

Contains everything added via spawn functions (automatically cleared)













Wave.soul_start_x: nil

Position the soul will transition to at the start of the wave









Wave.time: integer

Seconds the wave will last (-1 for infinite)



Wave.timer: Timer

Timer for convenience