Minion.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_MINION_HPP
8 #define ROSETTASTONE_MINION_HPP
9 
11 
12 namespace RosettaStone
13 {
19 class Minion : public Character
20 {
21  public:
23  Minion() = default;
24 
28  Minion(Player& _owner, Card& _card);
29 
31  virtual ~Minion() = default;
32 
34  Minion(const Minion& minion) = default;
35 
37  Minion(Minion&& minion) = default;
38 
40  Minion& operator=(const Minion& minion) = default;
41 
43  Minion& operator=(Minion&& minion) = default;
44 
46  void Destroy() override;
47 };
48 } // namespace RosettaStone
49 
50 #endif // ROSETTASTONE_MINION_HPP
Minion & operator=(const Minion &minion)=default
Default copy assignment operator.
void Destroy() override
Destroys minion.
Minion class.
Definition: Minion.hpp:19
Card class.
Definition: Card.hpp:27
Player class.
Definition: Player.hpp:33
Definition: AccountInfo.hpp:14
virtual ~Minion()=default
Default destructor.
Abstract character class that stores hero and minion data.
Definition: Character.hpp:21
Minion()=default
Default constructor.