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

clean up


Origin commit data
------------------
Commit: c8716f5b39
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-12-10 (Mon, 10 Dec 2018)
This commit is contained in:
2018-12-10 22:37:05 +01:00
committed by vanhofen
parent aed5eeb242
commit 7a79e99d53
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;
}