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

Diff of /enigma/src/items.cc

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

revision 1.6 by dheck, Sun Jan 12 19:46:28 2003 UTC revision 1.7 by dheck, Thu Jan 23 22:41:00 2003 UTC
# Line 19  Line 19 
19   */   */
20    
21  #include "items.hh"  #include "items.hh"
22    #include "game.hh"
23  #include "object_mixins.hh"  #include "object_mixins.hh"
24  #include "display.hh"  #include "display.hh"
25  #include "sound.hh"  #include "sound.hh"
# Line 848  namespace Line 849  namespace
849          double range;           // Range of the force          double range;           // Range of the force
850      };      };
851    
852      class WormHole : public Item, public tools::TimeHandler      class WormHole : public Item, public enigma::TimeHandler
853      {      {
854          CLONEOBJ(WormHole);          CLONEOBJ(WormHole);
855      public:      public:
# Line 895  WormHole::actor_hit(Actor *actor) Line 896  WormHole::actor_hit(Actor *actor)
896          AddSprite(display::SPRITE_EFFECT, get_center(), "ring-anim");          AddSprite(display::SPRITE_EFFECT, get_center(), "ring-anim");
897          double x, y;          double x, y;
898          if (double_attrib("targetx", &x) && double_attrib("targety", &y)) {          if (double_attrib("targetx", &x) && double_attrib("targety", &y)) {
899                play_sound("warp");
900              world::WarpActor(actor, x, y);              world::WarpActor(actor, x, y);
901          }          }
902      }      }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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