mail[Wesnoth-commits] r44525 - /trunk/src/whiteboard/manager.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by gabrielmorin on July 22, 2010 - 05:11:
Author: gabba
Date: Thu Jul 22 05:11:52 2010
New Revision: 44525

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44525&view=rev
Log:
Whiteboard: Added logging around action creation/deletion/execution/etc.

Modified:
    trunk/src/whiteboard/manager.cpp

Modified: trunk/src/whiteboard/manager.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/manager.cpp?rev=44525&r1=44524&r2=44525&view=diff
==============================================================================
--- trunk/src/whiteboard/manager.cpp (original)
+++ trunk/src/whiteboard/manager.cpp Thu Jul 22 05:11:52 2010
@@ -361,6 +361,7 @@
                fake_unit->set_disabled_ghosted(false);
                viewer_actions()->queue_move(*route_, move_arrow, fake_unit);
                erase_temp_move();
+               LOG_WB << *viewer_actions() << "\n";
        }
 }
 
@@ -404,6 +405,7 @@
 
                resources::screen->invalidate(target_hex);
                erase_temp_move();
+               LOG_WB << *viewer_actions() << "\n";
        }
 }
 
@@ -414,6 +416,7 @@
        {
                erase_temp_move();
                validate_viewer_actions();
+               LOG_WB << *viewer_actions() << "\n";
 
                action_ptr action;
                side_actions::iterator it;
@@ -438,6 +441,7 @@
                        viewer_actions()->execute_next();
                        executing_actions_ = false;
                }
+               LOG_WB << *viewer_actions() << "\n";
        }
 }
 
@@ -447,6 +451,7 @@
        {
                erase_temp_move();
                validate_viewer_actions();
+               LOG_WB << *viewer_actions() << "\n";
 
                action_ptr action;
                side_actions::iterator it;
@@ -465,6 +470,7 @@
                {
                        
viewer_actions()->remove_action(viewer_actions()->end() - 1);
                }
+               LOG_WB << *viewer_actions() << "\n";
        }
 }
 
@@ -474,10 +480,12 @@
        {
 
                validate_viewer_actions();
+               LOG_WB << *viewer_actions() << "\n";
                action_ptr action = highlighter_->get_bump_target();
                if (action)
                {
                        
viewer_actions()->bump_earlier(viewer_actions()->get_position_of(action));
+                       LOG_WB << *viewer_actions() << "\n";
                }
        }
 }
@@ -488,11 +496,12 @@
        {
 
                validate_viewer_actions();
-
+               LOG_WB << *viewer_actions() << "\n";
                action_ptr action = highlighter_->get_bump_target();
                if (action)
                {
                        
viewer_actions()->bump_later(viewer_actions()->get_position_of(action));
+                       LOG_WB << *viewer_actions() << "\n";
                }
        }
 }




Related Messages


Powered by MHonArc, Updated Thu Jul 22 07:20:12 2010