fix
This commit is contained in:
parent
0859b78f94
commit
e5bb93e489
2 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,12 @@ Combat::Combat() {
|
|||
enemy = new IaEnemy();
|
||||
}
|
||||
|
||||
Combat::Combat(bool ia) {
|
||||
this->ia = ia;
|
||||
playerOneTurn = true;
|
||||
if (ia) enemy = new IaEnemy();
|
||||
else enemy = new Player();
|
||||
}
|
||||
|
||||
void Combat::update(float deltaTime, sf::RenderWindow *window) {
|
||||
if (playerOneTurn) player.update(deltaTime, window);
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
class Combat : public Scene {
|
||||
public:
|
||||
Combat();
|
||||
Combat(bool ia);
|
||||
Combat(const Combat& m) = delete;
|
||||
Combat(const Combat&& m) = delete;
|
||||
Combat& operator=(Combat& m) = delete;
|
||||
|
|
Reference in a new issue