| 1 | package io.github.some_example_name; | |
| 2 | ||
| 3 | import com.badlogic.gdx.Game; | |
| 4 | import com.badlogic.gdx.Gdx; | |
| 5 | import com.badlogic.gdx.audio.Music; | |
| 6 | ||
| 7 | /** | |
| 8 | * <code> MyGame </code> handles creating and presenting the game from | |
| 9 | * the different screens. | |
| 10 | * @see com.badlogic.gdx.Game Game | |
| 11 | * @see com.badlogic.gdx.Screen Screen | |
| 12 | */ | |
| 13 | public class MyGame extends Game { | |
| 14 | GameScreen gameScreen; | |
| 15 | public static Music music; | |
| 16 | boolean won = false; | |
| 17 | public SettingsLogic settingsLogic = new SettingsLogic(0.5f); | |
| 18 | ||
| 19 | @Override | |
| 20 | public void create() { | |
| 21 | gameScreen = new GameScreen(this); | |
| 22 |
1
1. create : removed call to io/github/some_example_name/MyGame::setScreen → NO_COVERAGE |
setScreen(new MenuScreen(this)); |
| 23 | ||
| 24 | music = Gdx.audio.newMusic(Gdx.files.internal("background_music.mp3")); | |
| 25 |
1
1. create : removed call to com/badlogic/gdx/audio/Music::setLooping → NO_COVERAGE |
music.setLooping(true); |
| 26 |
1
1. create : removed call to com/badlogic/gdx/audio/Music::play → NO_COVERAGE |
music.play(); |
| 27 | } | |
| 28 | public void restartGame() { | |
| 29 | gameScreen = new GameScreen(this); | |
| 30 |
1
1. restartGame : removed call to io/github/some_example_name/MyGame::setScreen → NO_COVERAGE |
setScreen(gameScreen); |
| 31 | won = false; | |
| 32 | } | |
| 33 | ||
| 34 | public void goToGame() { | |
| 35 |
1
1. goToGame : removed call to io/github/some_example_name/MyGame::setScreen → NO_COVERAGE |
setScreen(gameScreen); |
| 36 | } | |
| 37 | } | |
| 38 | ||
| 39 | ||
| 40 | ||
Mutations | ||
| 22 |
1.1 |
|
| 25 |
1.1 |
|
| 26 |
1.1 |
|
| 30 |
1.1 |
|
| 35 |
1.1 |