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

Diff of /enigma/src/items.cc

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

revision 1.69 by reallysoft, Sun Jul 6 12:47:31 2003 UTC revision 1.70 by dheck, Mon Jul 7 16:42:00 2003 UTC
# Line 80  Item::actor_hit(Actor *actor) Line 80  Item::actor_hit(Actor *actor)
80  namespace  namespace
81  {  {
82      DEF_ITEM(MagicWand, "it-magicwand");      DEF_ITEM(MagicWand, "it-magicwand");
     DEF_ITEM(Umbrella, "it-umbrella");  
83      DEF_ITEM(Floppy, "it-floppy");      DEF_ITEM(Floppy, "it-floppy");
84      DEF_ITEM(Brush, "it-brush");      DEF_ITEM(Brush, "it-brush");
85      DEF_ITEM(Odometer, "it-odometer");      DEF_ITEM(Odometer, "it-odometer");
# Line 157  namespace Line 156  namespace
156          ExtraLife() : Item("it-extralife") {}          ExtraLife() : Item("it-extralife") {}
157      };      };
158    
159        class Umbrella : public Item {
160            CLONEOBJ(Umbrella);
161    
162            ItemAction activate(Actor *a, GridPos)
163            {
164                SendMessage(a, "shield");
165                return ITEM_KILL;
166            }
167    
168        public:
169            Umbrella() : Item ("it-umbrella") {}
170        };
171    
172      class Key : public Item {      class Key : public Item {
173          CLONEOBJ(Key);          CLONEOBJ(Key);
174      public:      public:

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70

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