2019-12-02 17:25:22 +01:00
|
|
|
#include "game.h"
|
|
|
|
|
2019-12-09 19:08:05 +01:00
|
|
|
Game::Game() {}
|
2019-12-26 17:44:58 +01:00
|
|
|
Game::Game(LineSystem* ls_, PositionSystem* ps_) {
|
|
|
|
this->ls = ls_;
|
|
|
|
this->ps = ps_;
|
|
|
|
}
|
2019-12-02 17:25:22 +01:00
|
|
|
|
2019-12-11 16:29:18 +01:00
|
|
|
void Game::play(bool condition){
|
2019-12-26 17:44:58 +01:00
|
|
|
ps->update();
|
2020-01-15 13:55:51 +01:00
|
|
|
if(condition) {
|
|
|
|
realPlay();
|
|
|
|
ls->update();
|
|
|
|
}
|
2019-12-26 17:44:58 +01:00
|
|
|
|
2019-12-09 19:08:05 +01:00
|
|
|
}
|