lib/strategy_game_backend/behaviours/movable.rb
def move(x, y, force_move: false)
        raise StrategyGameBackend::Behaviours::Movable::Error, "Cannot move to #{x}, #{y}" if force_move == false && !can_move_to?(x, y)

        @x = x
        @y = y
      end
# Sets the position of the movable thing to the given x and y coordinates if
# it is possible to move there. This might be implemented differently in other
# movable things, since things need to take time to move.
#
# The default implementation is effectively teleporting, which is not ideal.
Sets the position of the movable thing to the given x and y coordinates if
it is possible to move there. This might be implemented differently in other
movable things, since things need to take time to move.

The default implementation is effectively teleporting, which is not ideal.
Sets the position of the movable thing to the given x and y coordinates if it is possible to move there . This might be implemented differently in other movable things since things need to take time to move . The default implementation is effectively teleporting which is not ideal .
def move(x, y, force_move: false)
        raise StrategyGameBackend::Behaviours::Movable::Error, "Cannot move to #{x}, #{y}" if force_move == false && !can_move_to?(x, y)
        @x = x
        @y = y
      end
def move ( x , y , force_move : false ) raise StrategyGameBackend :: Behaviours :: Movable :: Error , "Cannot move to #{x}, #{y}" if force_move == false && ! can_move_to? ( x , y ) @x = x @y = y end
Sets the position of the movable thing to the given x and y coordinates if
it is possible to move there.
Sets the position of the movable thing to the given x and y coordinates if it is possible to move there .
x
y
force_move