/[enigma]/enigma/laser.cc
ViewVC logotype

Diff of /enigma/laser.cc

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

revision 1.16 by dheck, Sun Dec 22 20:59:04 2002 UTC revision 1.17 by dheck, Tue Dec 31 10:09:23 2002 UTC
# Line 379  namespace Line 379  namespace
379    
380          void init_model();          void init_model();
381      private:      private:
382            // Object interface.
383            void message(const string &m, const Value &);
384            
385          // LaserEmitter interface          // LaserEmitter interface
386          DirectionBits emission_directions() const {          DirectionBits emission_directions() const {
387              return outdirs;              return outdirs;
# Line 419  MirrorStone::init_model() Line 422  MirrorStone::init_model()
422      set_model(mname);      set_model(mname);
423  }  }
424    
425    void
426    MirrorStone::message(const string &m, const Value &)
427    {
428        if (m == "trigger" || m=="turn") {
429            rotate_right();
430        }
431    }
432    
433    
434  void  void
435  MirrorStone::actor_hit(const StoneContact &sc)  MirrorStone::actor_hit(const StoneContact &sc)
436  {  {

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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