/[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.25 by reallysoft, Sat Jun 28 10:55:26 2003 UTC revision 1.26 by reallysoft, Sun Jun 29 00:57:13 2003 UTC
# Line 199  namespace Line 199  namespace
199    
200    
201  //----------------------------------------  //----------------------------------------
202    // Grate1/Grate2
203    //
204    // Actor may pass if on floor
205    //----------------------------------------
206    namespace
207    {
208        class Grate1 : public Stone {
209            SINGLETONOBJ(Grate1);
210        public:
211            Grate1() : Stone("st-grate1") {}
212    
213            StoneResponse collision_response(const StoneContact &sc) {
214                // tested with per.oxyd
215                return sc.actor->is_on_floor() ? STONE_PASS : STONE_REBOUND;
216            }
217        };
218        class Grate2 : public Stone {
219            SINGLETONOBJ(Grate2);
220        public:
221            Grate2() : Stone("st-grate2") {}
222    
223            StoneResponse collision_response(const StoneContact &sc) {
224                // tested with per.oxyd
225                return sc.actor->is_on_floor() ? STONE_PASS : STONE_REBOUND;
226            }
227        };
228    }
229    
230    
231    //----------------------------------------
232  // Grate3  // Grate3
233  //  //
234  // Horses and small marbles can move through this stone, but normal  // Horses and small marbles can move through this stone, but normal
# Line 2038  void stones::Init_simple() Line 2068  void stones::Init_simple()
2068      Register(new FartStone);      Register(new FartStone);
2069      Register(new FloppyStone);      Register(new FloppyStone);
2070      Register(new FourSwitch);      Register(new FourSwitch);
2071        Register(new Grate1);
2072        Register(new Grate2);
2073      Register(new Grate3);      Register(new Grate3);
2074      Register(new InvisibleMagic);      Register(new InvisibleMagic);
2075      Register(new LaserSwitch);      Register(new LaserSwitch);

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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