engine.teleport documentation - wladekpal/The-Lazy-Snek GitHub Wiki
engine.teleport.EndTeleport
Field subclass representing place where snake is teleported.
Properties:
- inherited from Field
Constructor
Constructor method, sets class attributes and loads texture.
place_flat(flat)
Method has no effect
place_convex(convex)
Method has no effect
try_placing(block)
Method always returns False
engine.teleport.BeginTeleport
Field subclass representing place that teleports snake.
Properties:
- inherited from Field
linked_coordinates
- coordinate pair informing about assigned EndTeleport field locationlinked_end
- EndTeleport object - assigned EndTeleport field
Constructor
Constructor method, sets class attributes and loads texture.
get_additional_data()
Method returning Dictionary object containing coordinate pair informing about assigned EndTeleport field location
set_additional_data(key, data)
Method used to set linked_coordinates attribute
manage_additional_data()
Method sets linked_end attribute
link()
Method sets linked_end attribute
set_coordinates(coordinates):
Method used to set coordinates attribute.
set_board(board)
Method used to set board attribute.
check_snake_move(snake)
Method that returns True
if snake can enter, False
otherwise.
get_coords_to_move()
Method returns linked_end coordinates.
snake_entered(snake)
Method that simulates snake enterance.
place_snake(snake)
Method has no effect.
place_flat()
Method has no effect.
check_convex_move(direction)
Method that returns True
if convex can enter linked_end, False
otherwise.
convex_entered(convex, direction)
Method that simulates convex enterance.
place_convex(convex)
Method has no effect.
try_placing(block)
Method always returns false.