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

Diff of /enigma/src/laser.cc

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

revision 1.11 by reallysoft, Mon May 19 12:14:35 2003 UTC revision 1.12 by sfennig, Sat May 24 20:19:42 2003 UTC
# Line 441  MirrorStone::message(const string &m, co Line 441  MirrorStone::message(const string &m, co
441      if (m == "trigger" || m=="turn") {      if (m == "trigger" || m=="turn") {
442          rotate_right();          rotate_right();
443      }      }
444    {
445        if (m == "mirror-north") {
446            set_attrib("orientation", Value(3));
447            set_orientation(get_orientation());
448            init_model();
449            MaybeRecalcLight(get_pos());
450        }
451    {
452        if (m == "mirror-east") {
453            set_attrib("orientation", Value(4));
454            set_orientation(get_orientation());
455            init_model();
456            MaybeRecalcLight(get_pos());
457        }
458    {
459        if (m == "mirror-south") {
460            set_attrib("orientation", Value(1));
461            set_orientation(get_orientation());
462            init_model();
463            MaybeRecalcLight(get_pos());
464        }
465    {
466        if (m == "mirror-west") {
467            set_attrib("orientation", Value(2));
468            set_orientation(get_orientation());
469            init_model();
470            MaybeRecalcLight(get_pos());
471        }
472            }
473          }
474        }
475      }
476  }  }
477    
   
478  void MirrorStone::actor_hit(const StoneContact &sc)  void MirrorStone::actor_hit(const StoneContact &sc)
479  {  {
480      if (is_movable())      if (is_movable())
481          MovableStone::actor_hit(sc);          MovableStone::actor_hit(sc);
482      rotate_right();          rotate_right();
483  }  }
484    
485  void MirrorStone::on_creation()  void MirrorStone::on_creation()

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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