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"); |
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: |