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

Diff of /enigma/src/world.cc

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

revision 1.13 by dheck, Sun Feb 16 12:12:15 2003 UTC revision 1.14 by dheck, Wed Feb 26 21:11:31 2003 UTC
# Line 119  namespace world Line 119  namespace world
119          // Variables.          // Variables.
120          Actor *actor, *actor2;          Actor *actor, *actor2;
121          Stone *stone;          Stone *stone;
122          display::RubberID model;          display::RubberHandle model;
123          double strength, length;          double strength, length;
124      };      };
125  }  }
# Line 333  namespace Line 333  namespace
333              h = hh;              h = hh;
334          }          }
335          ~Level() {          ~Level() {
336                fields = FieldArray(0,0);
337              for_each(actorlist.begin(), actorlist.end(), mem_fun(&Actor::dispose));              for_each(actorlist.begin(), actorlist.end(), mem_fun(&Actor::dispose));
338              delete_sequence (rubbers.begin(), rubbers.end());              delete_sequence (rubbers.begin(), rubbers.end());
             fields = FieldArray(0,0);  
339          }          }
340    
341          bool contains (GridPos p) {          bool contains (GridPos p) {
# Line 602  handle_stone_contact(V3 normal, StoneCon Line 602  handle_stone_contact(V3 normal, StoneCon
602              normal /= length(normal);              normal /= length(normal);
603                            
604              if (length(ai->vel) > 0.1) {              if (length(ai->vel) > 0.1) {
605                  AddSprite(display::SPRITE_EFFECT, sc.contact_point, "ring-anim");                  display::AddEffect (sc.contact_point, "ring-anim");
606                  sound::PlaySound(sc.sound.c_str(), px::V2(sc.contact_point[0],                  sound::PlaySound(sc.sound.c_str(), px::V2(sc.contact_point[0],
607                                                            sc.contact_point[1]));                                                            sc.contact_point[1]));
608              }              }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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