/[enigma]/enigma/src/objects.cc
ViewVC logotype

Diff of /enigma/src/objects.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.53 by dheck, Sat Apr 26 17:20:03 2003 UTC revision 1.54 by reallysoft, Sun Apr 27 08:53:37 2003 UTC
# Line 2848  namespace Line 2848  namespace
2848              else if (state == CLOSING)              else if (state == CLOSING)
2849                  change_state (IDLE);                  change_state (IDLE);
2850          }          }
   
         // debugging only (ralf)  
         const char *stateName(State s) const {  
             switch (s) {  
                 case IDLE: return "IDLE";  
                 case PULSING: return "PULSING";  
                 case CLOSING: return "CLOSING";  
             }  
             return "UNKNOWN";  
         }  
   
2851      };      };
2852    
2853  }  }
# Line 2866  namespace Line 2855  namespace
2855  void  void
2856  StoneImpulse_Base::change_state(State st)  StoneImpulse_Base::change_state(State st)
2857  {  {
     {  
         GridPos p = get_pos();  
   
         fprintf(stderr, "%2i/%2i: %s -> %s\n", p.x, p.y, stateName(state), stateName(st));  
         fflush(stderr);  
     }  
   
2858      if (st == state) return;      if (st == state) return;
2859    
2860      GridPos p = get_pos();      GridPos p = get_pos();

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26