Base methods in unit

This commit is contained in:
2024-09-11 15:20:50 +02:00
parent de44ead6db
commit 7af25040f9
6 changed files with 29 additions and 10 deletions

View File

@ -57,3 +57,9 @@ void Unit::checkBounds() {
if (y < MIN_Y) y = MIN_Y;
if (y > MAX_Y) y = MAX_Y;
}
// Default implementation
bool Unit::isAlive() const { return true; }
bool Unit::isToBeJunked() const { return false; }
void Unit::doCrash() {}
void Unit::draw(QGraphicsScene *) const {}