Powers.hpp
Go to the documentation of this file.
1 // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
2 
3 // We are making my contributions/submissions to this project solely in our
4 // personal capacity and are not conveying any rights to any intellectual
5 // property of any third parties.
6 
7 #ifndef ROSETTASTONE_POWERS_HPP
8 #define ROSETTASTONE_POWERS_HPP
9 
11 
12 #include <map>
13 #include <string>
14 
15 namespace RosettaStone
16 {
22 class Powers
23 {
24  public:
26  Powers(const Powers& powers) = delete;
27 
29  Powers(Powers&& powers) = delete;
30 
32  Powers& operator=(const Powers& powers) = delete;
33 
35  Powers& operator=(Powers&& powers) = delete;
36 
39  static Powers& GetInstance();
40 
44  Power FindPowerByCardID(const std::string& cardID);
45 
46  private:
48  Powers();
49 
51  ~Powers();
52 
53  std::map<std::string, Power> m_powers;
54 };
55 } // namespace RosettaStone
56 
57 #endif // ROSETTASTONE_POWERS_HPP
static Powers & GetInstance()
Power class.
Definition: Power.hpp:24
Power FindPowerByCardID(const std::string &cardID)
Definition: AccountInfo.hpp:14
Powers class.
Definition: Powers.hpp:22
Powers & operator=(const Powers &powers)=delete
Deleted copy assignment operator.