PancakeWorld

This universe is very simple, with only five functions provided.

[!java|c]int [/!]getTamanhoDaPilha()  [!scala]:Int[/!]
Returns the size of the stack, that is the amount of pancakes it contains.
[!java|c]int [/!]getRaioPanqueca([!java|c]int [/!]rank[!scala]:Int[/!])  [!scala]:Int[/!]
Returns the radius of the pancake passed as argument, with the rank of the top-most pancake being 0.
[!java]boolean [/!][!c]int [/!]panquecaDeCabeçaPraBaixo([!java|c]int [/!]rank[!scala]:Int[/!])   [!scala]:Boolean[/!]
Returns whether the pancake passed as argument upside-down, that is, if its burned side is on top. As usual, the top-most pancake is of rank 0.
[!java|c]void [/!]flip([!java|c]int [/!]amount[!scala]:Int[/!])
Flips the amount first pancakes composing the stack, from the top of it.
[!java]boolean [/!][!c]int [/!]estáOrdenado()   [!scala]:Boolean[/!]
Returns whether the pancake stack is correctly sorted.
[!java]boolean [/!][!c]int [/!]selecionado()   [!scala]:Boolean[/!]
Retorna verdadeiro se o mundo atual está selecionado na interface gráfica.