| 1 | /* | |
| 2 | * To change this license header, choose License Headers in Project Properties. | |
| 3 | * To change this template file, choose Tools | Templates | |
| 4 | * and open the template in the editor. | |
| 5 | */ | |
| 6 | package dev.kumpulatd.logic; | |
| 7 | ||
| 8 | import dev.kumpulatd.ui.GameView; | |
| 9 | ||
| 10 | /** | |
| 11 | * | |
| 12 | * @author kummi | |
| 13 | */ | |
| 14 | public class CommandHandler { | |
| 15 | ||
| 16 | public static void handleCommand(char nextCommand, int currentTower, Game game, GameView view) { | |
| 17 |
1
1. handleCommand : negated conditional → NO_COVERAGE |
if (nextCommand != ' ') { |
| 18 | ||
| 19 |
1
1. handleCommand : negated conditional → NO_COVERAGE |
if (nextCommand == 'a') { |
| 20 |
1
1. handleCommand : removed call to dev/kumpulatd/logic/Game::buyTower → NO_COVERAGE |
game.buyTower(currentTower, "Tutor"); |
| 21 |
1
1. handleCommand : removed call to dev/kumpulatd/ui/GameView::resetCommand → NO_COVERAGE |
view.resetCommand(); |
| 22 |
1
1. handleCommand : negated conditional → NO_COVERAGE |
} else if (nextCommand == 's') { |
| 23 |
1
1. handleCommand : removed call to dev/kumpulatd/logic/Game::sellTower → NO_COVERAGE |
game.sellTower(currentTower, "Tutor"); |
| 24 |
1
1. handleCommand : removed call to dev/kumpulatd/ui/GameView::resetCommand → NO_COVERAGE |
view.resetCommand(); |
| 25 |
1
1. handleCommand : negated conditional → NO_COVERAGE |
} else if (nextCommand == 'd') { |
| 26 |
1
1. handleCommand : removed call to dev/kumpulatd/logic/Game::upgradeTower → NO_COVERAGE |
game.upgradeTower(currentTower, "Tutor"); |
| 27 |
1
1. handleCommand : removed call to dev/kumpulatd/ui/GameView::resetCommand → NO_COVERAGE |
view.resetCommand(); |
| 28 |
1
1. handleCommand : negated conditional → NO_COVERAGE |
} else if (nextCommand == 'q') { |
| 29 |
1
1. handleCommand : removed call to dev/kumpulatd/logic/Game::buyTower → NO_COVERAGE |
game.buyTower(currentTower, "Professor"); |
| 30 |
1
1. handleCommand : removed call to dev/kumpulatd/ui/GameView::resetCommand → NO_COVERAGE |
view.resetCommand(); |
| 31 |
1
1. handleCommand : negated conditional → NO_COVERAGE |
} else if (nextCommand == 'w') { |
| 32 |
1
1. handleCommand : removed call to dev/kumpulatd/logic/Game::sellTower → NO_COVERAGE |
game.sellTower(currentTower, "Professor"); |
| 33 |
1
1. handleCommand : removed call to dev/kumpulatd/ui/GameView::resetCommand → NO_COVERAGE |
view.resetCommand(); |
| 34 |
1
1. handleCommand : negated conditional → NO_COVERAGE |
} else if (nextCommand == 'e') { |
| 35 |
1
1. handleCommand : removed call to dev/kumpulatd/logic/Game::upgradeTower → NO_COVERAGE |
game.upgradeTower(currentTower, "Professor"); |
| 36 |
1
1. handleCommand : removed call to dev/kumpulatd/ui/GameView::resetCommand → NO_COVERAGE |
view.resetCommand(); |
| 37 | } | |
| 38 | } | |
| 39 |
1
1. handleCommand : removed call to dev/kumpulatd/ui/GameView::resetCommand → NO_COVERAGE |
view.resetCommand(); |
| 40 | } | |
| 41 | } | |
Mutations | ||
| 17 |
1.1 |
|
| 19 |
1.1 |
|
| 20 |
1.1 |
|
| 21 |
1.1 |
|
| 22 |
1.1 |
|
| 23 |
1.1 |
|
| 24 |
1.1 |
|
| 25 |
1.1 |
|
| 26 |
1.1 |
|
| 27 |
1.1 |
|
| 28 |
1.1 |
|
| 29 |
1.1 |
|
| 30 |
1.1 |
|
| 31 |
1.1 |
|
| 32 |
1.1 |
|
| 33 |
1.1 |
|
| 34 |
1.1 |
|
| 35 |
1.1 |
|
| 36 |
1.1 |
|
| 39 |
1.1 |


Select Ikea speakers up to 15 percent starting on November 21st
by Dean DaleyIkea is running a speaker sale starting on November 21st continuing until November 24th.
The sale will offer select speakers for up to 15 percent off.
While it’s currently unclear exactly what will be on sale, we do know that the Symfonisk Wi-Fi bookshelf speaker in black and white will cost $129, making it $20 off.
Ikea also sells the Symfonisk table lamp with Wi-Fi speaker and more that we’re also hoping goes on sale.
Check out Ikea’s speakers, here and learn more about Ikea’s Sonos integration, here.
Source: RedFlagDeals


-
MIT License
-
Copyright (c) 2020 top4u
-
Permission is hereby granted, free of charge, to any person obtaining a copy
-
of this software and associated documentation files (the “Software”), to deal
-
in the Software without restriction, including without limitation the rights
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-
copies of the Software, and to permit persons to whom the Software is
-
furnished to do so, subject to the following conditions:
-
The above copyright notice and this permission notice shall be included in all
-
copies or substantial portions of the Software.
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-
SOFTWARE.