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

Diff of /enigma/src/objects.cc

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

revision 1.35 by sfennig, Thu Mar 20 23:29:09 2003 UTC revision 1.36 by sfennig, Fri Mar 21 23:42:19 2003 UTC
# Line 3194  namespace Line 3194  namespace
3194  }  }
3195    
3196  //----------------------------------------  //----------------------------------------
3197    // Glass1_hole
3198    //----------------------------------------
3199    namespace
3200    {
3201        class Glass1_hole : public Stone {
3202            CLONEOBJ(Glass1_hole);
3203        public:
3204            Glass1_hole() : Stone("st-glass1_hole") {}
3205            StoneResponse collision_response(const StoneContact &sc) {
3206                return STONE_PASS;
3207            }
3208            bool on_laserhit(Direction) { return true; }
3209        };
3210    }
3211    
3212    //----------------------------------------
3213  // Black stones  // Black stones
3214  //----------------------------------------  //----------------------------------------
3215  namespace  namespace
# Line 3469  namespace Line 3485  namespace
3485  }  }
3486    
3487  //----------------------------------------  //----------------------------------------
3488    // Glass1
3489    //
3490    // Laser light may pass this stone, but actors may not.
3491    //----------------------------------------
3492    namespace
3493    {
3494        class Glass1 : public Stone {
3495            CLONEOBJ(Glass1);
3496        public:
3497            Glass1() : Stone("st-glass1") {}
3498        private:
3499            bool on_laserhit(Direction dir) { return true; }
3500        };
3501    }
3502    
3503    //----------------------------------------
3504  // MagicStone  // MagicStone
3505  //----------------------------------------  //----------------------------------------
3506  namespace  namespace
# Line 3704  ObjectRepos::ObjectRepos() Line 3736  ObjectRepos::ObjectRepos()
3736      add_templ(new FartStone);      add_templ(new FartStone);
3737      add_templ(new FloppyStone);      add_templ(new FloppyStone);
3738      add_templ(new GlassStone);      add_templ(new GlassStone);
3739        add_templ(new Glass1);
3740        add_templ(new Glass1_hole);
3741      add_templ(new Grate1);      add_templ(new Grate1);
3742      add_templ(new Grate2);      add_templ(new Grate2);
3743      add_templ(new HollowStoneImpulseStone);      add_templ(new HollowStoneImpulseStone);

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

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