class Works::Struct::TransportBelt::Express
- Works::Struct::TransportBelt::Express
- Works::Struct::TransportBelt::Base
- Works::Struct::Base
- Works::Cell
- Reference
- Object
Defined in:
works/struct/transport_belt/express.crConstant Summary
-
BeltSpeed =
3
-
Color =
LibAllegro.map_rgb_f(0.25, 0.5, 0.9)
-
Key =
:express_transport_belt
-
Name =
"Express transport belt"
Class Method Summary
Instance Method Summary
Instance methods inherited from class Works::Struct::TransportBelt::Base
add_from_inserter(klass, amount, inserter_facing : Symbol)
add_from_inserter,
add_from_inserter?(item : Item::Base, inserter_facing : Symbol)
add_from_inserter?,
after_rotate(map : Map)
after_rotate,
background_color
background_color,
belt_speed
belt_speed,
can_overwrite?(strct : Struct::Base)
can_overwrite?,
can_receive_from_belt?(lane_index, facing)
can_receive_from_belt?,
check_perpendicular_input_belts(map : Map)
check_perpendicular_input_belts,
clone
clone,
draw(dx, dy)
draw,
draw_accents(dx, dy, color)
draw_accents,
draw_background(dx, dy)
draw_background,
draw_lanes(dx, dy)
draw_lanes,
draw_turning_text(dx, dy)
draw_turning_text,
facing : Symbol
facing,
facing_horizontal?
facing_horizontal?,
facing_vertical?
facing_vertical?,
find_belt(map : Map, col, row)
find_belt,
grab_item(item_grab_size)grab_item grab_item, increase_item_data_position(lane_index, index, data : ItemData) increase_item_data_position, input_belt(map : Map) input_belt, input_coords input_coords, item_class item_class, lane_from_inserter(inserter_facing : Symbol) lane_from_inserter, lanes : Tuple(Array(ItemData | Nil), Array(ItemData | Nil)) lanes, move_item_on_belt(lane_index, index, map : Map, data : ItemData) move_item_on_belt, move_to_belt(belt : Struct::TransportBelt::Base, lane_index, index, item : Item::Base) move_to_belt, output_belt(map : Map) output_belt, output_coords output_coords, perpendicular?(other_facing : Symbol) perpendicular?, position position, receive_from_belt(lane_index, item) receive_from_belt, remove_belt_update_turning_belts(map : Map) remove_belt_update_turning_belts, rotate rotate, turning_from : Symbol | Nil turning_from, update(map : Map) update, update_turning_belts(map : Map) update_turning_belts, update_turning_from(input_facing : Symbol, map : Map) update_turning_from
Constructor methods inherited from class Works::Struct::TransportBelt::Base
new(col = 0_u16, row = 0_u16)
new
Class methods inherited from class Works::Struct::TransportBelt::Base
background_color
background_color,
belt_speed
belt_speed,
color
color,
destroy
destroy,
init_animation
init_animation,
key
key,
name
name,
position
position,
update
update
Instance methods inherited from class Works::Struct::Base
accept_item?(item : Item::Base)
accept_item?,
add_from_inserter(klass, amount, inserter_facing : Symbol)
add_from_inserter,
add_from_inserter?(item : Item::Base, inserter_facing : Symbol)
add_from_inserter?,
after_rotate(map : Map)
after_rotate,
can_overwrite?(strct : Struct::Base)
can_overwrite?,
color
color,
destroy
destroy,
draw(dx, dy, color)draw(x, y) draw, draw_hover_info draw_hover_info, draw_struct_info(inventory_width, inventory_height) draw_struct_info, draw_struct_info_slots(inventory_width, inventory_height) draw_struct_info_slots, grab_item(item_grab_size)
grab_item grab_item, hide_hud hide_hud, hud_background_color hud_background_color, hud_hover_color hud_hover_color, hud_margin hud_margin, hud_shown? : Bool hud_shown?, hud_slot_size hud_slot_size, hud_x hud_x, hud_y(inventory_height) hud_y, item_class item_class, key key, overlaps_input?(col, row) overlaps_input?, overlaps_output?(col, row) overlaps_output?, rotate rotate, show_hud show_hud, slot_click(inventory : Inventory, mouse : Mouse) slot_click, slot_click_grab_item(inventory : Inventory, mouse : Mouse) slot_click_grab_item, slot_click_held_item(inventory : Inventory, held_item : Item::Held) slot_click_held_item, slot_hover?(slot_x, slot_y, mouse : Mouse) slot_hover?, update(map : Map) update, update_struct_info_slot_hovers(mouse : Mouse, inventory_width, inventory_height) update_struct_info_slot_hovers
Constructor methods inherited from class Works::Struct::Base
new(col = 0_u16, row = 0_u16)
new
Class methods inherited from class Works::Struct::Base
color
color,
hud_background_color
hud_background_color,
hud_hover_color
hud_hover_color,
hud_margin
hud_margin,
hud_slot_size
hud_slot_size,
key
key,
name
name
Instance methods inherited from class Works::Cell
clone
clone,
col : UInt16
col,
col=(col : UInt16)
col=,
cols : UInt8
cols,
dimensions : NamedTuple(x: UInt8, y: UInt8)
dimensions,
draw(x, y)
draw,
draw_selection(dx, dy, color = nil)
draw_selection,
height
height,
hover?(mouse_col, mouse_row)
hover?,
name
name,
overlaps?(o_col, o_row)overlaps?(cell : Cell) overlaps?, print_str print_str, row : UInt16 row, row=(row : UInt16) row=, rows : UInt8 rows, size : UInt16 size, width width, x x, y y