Graveyard.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_GRAVEYARD_HPP
8 #define ROSETTASTONE_GRAVEYARD_HPP
9 
11 
12 #include <vector>
13 
14 namespace RosettaStone
15 {
22 class Graveyard
23 {
24  public:
26  Graveyard();
27 
30  Player& GetOwner() const;
31 
34  void SetOwner(Player& owner);
35 
38  void AddCard(Entity& card);
39 
40  private:
41  Player* m_owner = nullptr;
42 
43  std::vector<Entity*> m_cards;
44 };
45 } // namespace RosettaStone
46 
47 #endif // ROSETTASTONE_GRAVEYARD_HPP
Graveyard()
Default constructor.
Graveyard class.
Definition: Graveyard.hpp:22
Abstract entity structure that stores card data.
Definition: Entity.hpp:28
void SetOwner(Player &owner)
void AddCard(Entity &card)
Player & GetOwner() const
Player class.
Definition: Player.hpp:33
Definition: AccountInfo.hpp:14