9 static const String TXT_VALUE;
18 return "A crystal clear dewdrop.";
24 static const int MAX_VOLUME = 10;
26 static const String AC_DRINK;
28 static const float TIME_TO_DRINK;
30 static const String TXT_VALUE;
31 static const String TXT_STATUS;
33 static const String TXT_AUTO_DRINK;
34 static const String TXT_COLLECTED;
35 static const String TXT_FULL;
36 static const String TXT_EMPTY;
40 static const String VOLUME;
42 static const double NUM;
43 static const double POW;
54 virtual void execute(
Hero* hero, std::string action);
64 return volume >= MAX_VOLUME;
74 return isFull() ? WHITE : NULL;
79 std::string(
"You can store excess dew in this tiny vessel for drinking it later. ") +
80 std::string(
"If the vial is full, in a moment of deadly peril the dew will be ") +
81 std::string(
"consumed automatically.");
virtual String info()
Definition dewdrop.h:77
static void autoDrink(Hero *hero)
Definition dewdrop.cpp:149
void collectDew(Dewdrop *dew)
Definition dewdrop.cpp:137
virtual void execute(Hero *hero, std::string action)
Definition dewdrop.cpp:100
virtual std::string getClassName()
Definition dewdrop.h:49
virtual boolean isIdentified()
Definition dewdrop.h:60
boolean isFull()
Definition dewdrop.h:63
virtual void storeInBundle(Bundle *bundle)
Definition dewdrop.cpp:80
virtual ItemSprite::Glowing * glowing()
Definition dewdrop.h:73
DewVial()
Definition dewdrop.cpp:69
virtual boolean isUpgradable()
Definition dewdrop.h:56
void fill()
Definition dewdrop.h:67
virtual String status()
Definition dewdrop.cpp:160
virtual void restoreFromBundle(Bundle *bundle)
Definition dewdrop.cpp:86
virtual void actions(Hero *hero, std::vector< std::string > &actions)
Definition dewdrop.cpp:92
Dewdrop()
Definition dewdrop.cpp:13
virtual std::string getClassName()
Definition dewdrop.h:13
virtual boolean doPickUp(Hero *hero)
Definition dewdrop.cpp:21
virtual String info()
Definition dewdrop.h:17
Item()
Definition item.cpp:65
void updateQuickslot()
Definition item.cpp:381
Definition itemsprite.h:10
std::string String
Definition typedefine.h:8