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

Diff of /enigma/src/stones_simple.cc

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

revision 1.22 by reallysoft, Wed Jun 25 13:28:26 2003 UTC revision 1.23 by reallysoft, Wed Jun 25 19:35:53 2003 UTC
# Line 642  namespace Line 642  namespace
642          Stonebrush() : Stone("st-stonebrush"), state(INVISIBLE) {}          Stonebrush() : Stone("st-stonebrush"), state(INVISIBLE) {}
643      private:      private:
644          enum State { INVISIBLE, BRUSH } state;          enum State { INVISIBLE, BRUSH } state;
645          void actor_hit(const StoneContact &sc)  
646          {          void actor_hit(const StoneContact &sc) {
647              if( state == INVISIBLE)              if( state == INVISIBLE) {
             {  
648                  if (wielded_item_is(sc.actor, "it-brush")) {                  if (wielded_item_is(sc.actor, "it-brush")) {
649                      play_sound("st-magic");                      play_sound("st-magic");
650                      state = BRUSH;                      state = BRUSH;
651                      set_model("st-rock4");                      if (enigma::GameCompatibility == GAMET_PEROXYD) {
652                            set_model("st-likeoxydc-open");
653                        }
654                        else {
655                            set_model("st-rock4");
656                        }
657                  }                  }
658              }              }
659          }          }

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

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