cc_draw.cpp/h: move more methodes into cpp file

clean up
This commit is contained in:
2018-12-07 21:09:41 +01:00
parent d4fb223045
commit 7eeb270cba
2 changed files with 27 additions and 9 deletions

View File

@@ -904,3 +904,26 @@ int CCDraw::getWidth()
{
return width;
}
void CCDraw::setDimensionsAll(const int& xpos, const int& ypos, const int& w, const int& h)
{
setPos(xpos, ypos); setWidth(w); setHeight(h);
}
void CCDraw::setPos(const int& xpos, const int& ypos)
{
setXPos(xpos); setYPos(ypos);
}
void CCDraw::allowPaint(bool allow)
{
if (allow != cc_allow_paint)
cc_allow_paint = allow;
if (cc_allow_paint)
is_painted = false;
}
bool CCDraw::paintAllowed()
{
return cc_allow_paint;
}