You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
299 B

6 months ago
#include "gameobject.h"
GameObject::GameObject(QObject *parent)
:QObject(parent)
{}
GameObject::~GameObject()
{
//qDebug()<<"gameobject deleted";
}
QPointF GameObject::getCenterPos()
{
return QPointF(pos().x()+(pixmap().width()*scale()/2),pos().y()+(pixmap().height()*scale()/2));
}