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

Diff of /enigma/src/stones_complex.cc

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

revision 1.33 by reallysoft, Sun Jul 13 19:29:53 2003 UTC revision 1.34 by reallysoft, Mon Jul 14 22:23:24 2003 UTC
# Line 591  namespace Line 591  namespace
591    
592          void actor_inside(Actor *a) {SendMessage(a, "shatter");}          void actor_inside(Actor *a) {SendMessage(a, "shatter");}
593    
594            void message(const string& msg, const Value &val) {
595                if (msg == "direction" && val.get_type() == Value::DOUBLE) {
596                    Direction dir = static_cast<Direction>(val.get_double());
597                    set_dir(dir);
598                    init_model();
599                }
600            }
601      };      };
602  }  }
603    
# Line 1216  PuzzleStone::message(const string& msg, Line 1223  PuzzleStone::message(const string& msg,
1223          // warning("received 'scramble'. dir=%s size=%i", to_suffix(dir).c_str(), size);          // warning("received 'scramble'. dir=%s size=%i", to_suffix(dir).c_str(), size);
1224    
1225          if (size >= 2) {          if (size >= 2) {
1226              int count = IntegerRand(1, size-1);              int count = IntegerRand(0, size-1);
1227              while (count--)              while (count--)
1228                  rotate_cluster(c);                  rotate_cluster(c);
1229          }          }

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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