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

Diff of /enigma/src/stones.cc

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

revision 1.8 by reallysoft, Fri May 30 08:07:39 2003 UTC revision 1.9 by reallysoft, Fri May 30 09:01:30 2003 UTC
# Line 78  namespace Line 78  namespace
78      public:      public:
79          BrakeStone() : Stone("st-brake") {}          BrakeStone() : Stone("st-brake") {}
80    
81            void on_creation() {
82                Stone::on_creation();
83    
84                GridPos  p  = get_pos();
85                Item    *it = GetItem(p);
86                if (it && 0 == strcmp(it->get_kind(), "it-blocker")) {
87                    KillItem(p);
88                    play_sound("explosion1");
89                }
90            }
91    
92          StoneResponse collision_response(const StoneContact &/*sc*/) {          StoneResponse collision_response(const StoneContact &/*sc*/) {
93              return STONE_PASS;              return STONE_PASS;
94          }          }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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