/[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.42 by mhawlisch, Mon Aug 25 13:09:10 2003 UTC revision 1.43 by reallysoft, Sun Sep 7 09:56:55 2003 UTC
# Line 835  namespace{ Line 835  namespace{
835                  case BREAKING: set_anim("st-stone_break-anim"); break;                  case BREAKING: set_anim("st-stone_break-anim"); break;
836             }             }
837          }          }
838            
839          void animcb() {          void animcb() {
840              if( state == ACTIVE) {              if( state == ACTIVE) {
841                  // Spread                  // Spread
# Line 844  namespace{ Line 844  namespace{
844                  if( DoubleRand(0, 1) > 0.7) spread (move(p, EAST));                  if( DoubleRand(0, 1) > 0.7) spread (move(p, EAST));
845                  if( DoubleRand(0, 1) > 0.7) spread (move(p, SOUTH));                  if( DoubleRand(0, 1) > 0.7) spread (move(p, SOUTH));
846                  if( DoubleRand(0, 1) > 0.7) spread (move(p, WEST));                  if( DoubleRand(0, 1) > 0.7) spread (move(p, WEST));
847        
848                  // Be finished at random time                  // Be finished at random time
849                  if( DoubleRand(0, 1) > 0.95)                  if( DoubleRand(0, 1) > 0.95)
850                      state = FINISHED;                      state = FINISHED;
# Line 854  namespace{ Line 854  namespace{
854              }              }
855          }          }
856    
857          void message(const string &msg, const Value &val) {          void message(const string &msg, const Value &) {
858              if (msg == "trigger") {              if (msg == "trigger") {
859                  if (state == INACTIVE) {                  if (state == INACTIVE) {
860                      state = ACTIVE;                      state = ACTIVE;
# Line 862  namespace{ Line 862  namespace{
862                  }                  }
863              }              }
864          }          }
865            
866          void spread( GridPos p) {          void spread( GridPos p) {
867              Stone *st = GetStone(p);              Stone *st = GetStone(p);
868              if( !st) {              if( !st) {

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

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