More work on cleaning up debug trace logs. Added getDisplayName() overrides to the Ability & NextGamePhase interrupts so that there's now more contextual info in the output log. You'll now see what game phase is being added/resolved on the stack, and instead of a generic 'StackAbility' entry, it'll tell you what source it's coming from.
Also deleted a few debug output traces that were truly uninformative.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "../include/config.h"
|
||||
#include "../include/DebugRoutines.h"
|
||||
#include "../include/GameObserver.h"
|
||||
#include "../include/GameOptions.h"
|
||||
#include "../include/CardGui.h"
|
||||
@@ -380,9 +381,7 @@ void GameObserver::Render()
|
||||
|
||||
|
||||
void GameObserver::ButtonPressed(PlayGuiObject * target){
|
||||
#if defined (WIN32) || defined (LINUX)
|
||||
OutputDebugString("GAMEOBSERVER Click\n");
|
||||
#endif
|
||||
DebugTrace("GAMEOBSERVER Click");
|
||||
if (CardView* cardview = dynamic_cast<CardView*>(target)){
|
||||
MTGCardInstance * card = cardview->getCard();
|
||||
cardClick(card, card);
|
||||
|
||||
Reference in New Issue
Block a user