class

Escapist::LaserBlock

Inherits Escapist::MovableBlock < Escapist::BaseBlock < Escapist::TileObj < JSON::Serializable < Reference < Object

Constants

Key = "laser"
LaserBarrelColor = SF::Color.new(153, 0, 0, 51)
LaserBarrelColorFilled = SF::Color.new(51, 51, 51)
LaserBarrelOutlineColor = SF::Color.new(153, 0, 0, 153)
LaserBarrelOutlineThickness = 3
LaserCenterColor = SF::Color.new(153, 0, 0, 153)
LaserCenterOutlineColor = SF::Color.new(102, 0, 0, 102)
LaserCenterOutlineThickness = 2
LaserCenterWidth = 4
LaserColor = SF::Color.new(102, 0, 0, 102)
LaserOutlineColor = SF::Color.new(153, 0, 0, 51)
LaserOutlineThickness = 4
LaserWidth = 16
RotatableIndicatorOutlineColor = SF::Color.new(153, 0, 0, 153)
RotatableIndicatorOutlineThickness = 6
RotationAmount = 45
RotationSpeed = 90

Constructors

new(col = 0, row = 0)
Source

Class methods

Instance methods

area?
Source
area_box
Source
area_entered
Source
area_entered?
Source
area_exited
Source
cast_ray(start_point, direction, room)
Source
done_rotating?
Source
draw_laser(window, laser)
Source
draw_laser_barrel(window)
Source
draw_lasers(window)
Source
draw_movable(window : SF::RenderWindow)
Source
draw_rotatable_indicator(window)
Source
laser_switch_collision?(laser_switch : LaserSwitch, x, y, distance)
Source
laser_switch_found?(row, col, room, x, y, distance)
Source
lasers
Source
rotatable?
Source
rotate(direction : Int32 = 1)
Source
rotate_reverse
Source
rotating?
Source
rotation_angle
Source
tile_found?(row, col, room)
Source
update(frame_time, room)
Source
update_laser_distance(room)
Source
update_rotation(frame_time)
Source