PancakeWorld

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

[!java]int [/!]getStackSize()  [!scala]:Int[/!]
Returns the size of the stack, that is the amount of pancakes it contains.
[!java]int [/!]getPancakeRadius([!java]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 [/!]isPancakeUpsideDown([!java]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]void [/!]flip([!java]int [/!]amount[!scala]:Int[/!])
Flips the amount first pancakes composing the stack, from the top of it.
[!java]boolean [/!]isSorted()   [!scala]:Boolean[/!]
Returns whether the pancake stack is correctly sorted.
[!java]boolean [/!]isSelected()   [!scala]:Boolean[/!]
Returns whether the current world is selected in the graphical interface.