DamageTask.hpp
Go to the documentation of this file.
1 // This code is based on Sabberstone project.
2 // Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
3 // Hearthstone++ is hearthstone simulator using C++ with reinforcement learning.
4 // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
5 
6 #ifndef ROSETTASTONE_DAMAGE_TASK_HPP
7 #define ROSETTASTONE_DAMAGE_TASK_HPP
8 
10 
12 {
18 class DamageTask : public ITask
19 {
20  public:
24  DamageTask(EntityType entityType, std::size_t damage);
25 
28  TaskID GetTaskID() const override;
29 
30  private:
34  TaskStatus Impl(Player& player) override;
35 
36  std::size_t m_damage = 0;
37 };
38 } // namespace RosettaStone::SimpleTasks
39 
40 #endif // ROSETTASTONE_DAMAGE_TASK_HPP
TaskStatus
Meta data to represent the result of the task.
Definition: TaskStatus.hpp:15
TaskID GetTaskID() const override
DamageTask class.
Definition: DamageTask.hpp:18
DamageTask(EntityType entityType, std::size_t damage)
Player class.
Definition: Player.hpp:33
ITask class.
Definition: Tasks.hpp:22
Definition: AddEnchantmentTask.hpp:11