FigurePosition

Figure type, orientation and position container

Constructors

this
this(int index, int orientation, int x, int y)
Undocumented in source.

Members

Functions

move
FigurePosition move(int dx, int dy)

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

Variables

index
int index;
Undocumented in source.
orientation
int orientation;
Undocumented in source.
x
int x;
Undocumented in source.
y
int y;
Undocumented in source.

Meta