FigurePosition

Figure type, orientation and position container

Members

Functions

move
FigurePosition move(int dx, int dy = 0)

return moved position

reset
void reset()

clears content

rotate
FigurePosition rotate(int angle)

return rotated position CCW for angle=1, CW for angle=-1

Properties

color
uint color [@property getter]

return color for figure

empty
empty [@property getter]

return true if figure index is not initialized

shape
FigureShape shape [@property getter]

return shape for figure orientation

Meta