Static Public Member Functions | |
static void | SetHoldingObject (Matrix::SizeType xIndex, Matrix::SizeType yIndex) |
Sets new x and y coordinates of the holding object. | |
static bool | IsHoldingSomething () |
Returns true if there currently is some holding object. | |
static void | SetNotHoldingObject () |
Sets holding flag to false (object was put or holding was canceled). | |
static Matrix::SizeType | GetX () |
Returns x-index of the holding object. | |
static Matrix::SizeType | GetY () |
Returns y-index of the holding object. | |
Private Member Functions | |
HoldingObject () | |
~HoldingObject () | |
HoldingObject (const HoldingObject &) | |
HoldingObject & | operator= (const HoldingObject &) |
Static Private Attributes | |
static bool | isHolding |
Are we holding something? | |
static Matrix::SizeType | x |
x-index of the holding object | |
static Matrix::SizeType | y |
y-index of the holding object |
This class contains only static methods/attributes - kind of Singleton without object instance.
GUI::Canvas::HoldingObject::HoldingObject | ( | ) | [private] |
GUI::Canvas::HoldingObject::~HoldingObject | ( | ) | [private] |
GUI::Canvas::HoldingObject::HoldingObject | ( | const HoldingObject & | ) | [private] |
static Matrix::SizeType GUI::Canvas::HoldingObject::GetX | ( | ) | [inline, static] |
Returns x-index of the holding object.
static Matrix::SizeType GUI::Canvas::HoldingObject::GetY | ( | ) | [inline, static] |
Returns y-index of the holding object.
static bool GUI::Canvas::HoldingObject::IsHoldingSomething | ( | ) | [inline, static] |
Returns true if there currently is some holding object.
HoldingObject& GUI::Canvas::HoldingObject::operator= | ( | const HoldingObject & | ) | [private] |
static void GUI::Canvas::HoldingObject::SetHoldingObject | ( | Matrix::SizeType | xIndex, | |
Matrix::SizeType | yIndex | |||
) | [inline, static] |
Sets new x and y coordinates of the holding object.
xIndex | First index | |
yIndex | Second index |
static void GUI::Canvas::HoldingObject::SetNotHoldingObject | ( | ) | [inline, static] |
Sets holding flag to false (object was put or holding was canceled).
bool GUI::Canvas::HoldingObject::isHolding [static, private] |
Are we holding something?
Matrix::SizeType GUI::Canvas::HoldingObject::x [static, private] |
x-index of the holding object
Matrix::SizeType GUI::Canvas::HoldingObject::y [static, private] |
y-index of the holding object