mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Refactored QuestMatchState
GameInfo is renamed to GameSummary and is now an observer for game state. It's purpose is now to hold statistic data on game and actions performed by players. The former functionality moved to ColorChanger and Phase (all combat damage prevention due to Fog spell). Since then game turns calculation is done properly (no need to add/substract 1) Total cleanup at Gui_WinLose, removed all references to global objects for quest and match-related entites. Some of quest rewards calculations use now special functions in QuestData class. Tracking of win and lose conditions refactored (see Player and Upkeep classes)
This commit is contained in:
@@ -3,6 +3,8 @@ package forge;
|
||||
import org.testng.Assert;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import forge.quest.data.QuestMatchState;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: dhudson
|
||||
@@ -15,7 +17,7 @@ public class GuiWinLoseTest {
|
||||
*/
|
||||
@Test(groups = {"UnitTest", "fast"})
|
||||
public void GuiWinLoseTest1() {
|
||||
Gui_WinLose dialog = new Gui_WinLose();
|
||||
Gui_WinLose dialog = new Gui_WinLose( new QuestMatchState(), null, null );
|
||||
dialog.setVisible(true);
|
||||
Assert.assertNotNull(dialog);
|
||||
dialog.dispose();
|
||||
|
||||
Reference in New Issue
Block a user