My Project
 
Loading...
Searching...
No Matches
gold.h
Go to the documentation of this file.
1#pragma once
2
3#include "item.h"
4
5class Gold :public Item{
6private:
7 static const std::string TXT_COLLECT;
8 static const std::string TXT_INFO;
9 static const std::string TXT_INFO_1;
10 static const std::string TXT_VALUE;
11
12 static const std::string VALUE;
13public:
14 Gold();
15 Gold(int value);
16
17 virtual void actions(Hero* hero, std::vector<std::string>& actions);
18 virtual bool doPickUp(Hero* hero);
19 virtual bool isUpgradable() { return false; }
20 virtual bool isIdentified() { return true; }
21
22 virtual std::string info();
23 virtual Item* random();
24
25 virtual std::string getClassName() { return "Gold"; }
26 virtual void storeInBundle(Bundle* bundle);
27 virtual void restoreFromBundle(Bundle* bundle);
28
29 static Item* Create(){ return new Gold(); }
30};
virtual std::string info()
Definition gold.cpp:50
virtual bool isIdentified()
Definition gold.h:20
virtual void actions(Hero *hero, std::vector< std::string > &actions)
Definition gold.cpp:30
virtual bool isUpgradable()
Definition gold.h:19
virtual Item * random()
Definition gold.cpp:63
static Item * Create()
Definition gold.h:29
virtual bool doPickUp(Hero *hero)
Definition gold.cpp:35
virtual void restoreFromBundle(Bundle *bundle)
Definition gold.cpp:75
virtual std::string getClassName()
Definition gold.h:25
virtual void storeInBundle(Bundle *bundle)
Definition gold.cpp:69
Gold()
Definition gold.cpp:15
Definition hero.h:18
Definition item.h:15
Item()
Definition item.cpp:65