Deep RTS
LumberCollect.h
Go to the documentation of this file.
1//
2// Created by per on 9/6/21.
3//
4
5#ifndef DEEPRTS_LUMBERCOLLECT_H
6#define DEEPRTS_LUMBERCOLLECT_H
7
8
9#include "ScenarioCriteria.h"
10namespace DeepRTS::Criteria{
12 int lumberCollectLimit;
13 bool isValid;
14 public:
15 explicit LumberCollect(int lumberCollectLimit, int rewardSuccess=0.01, int rewardFailure=-0.01);
16
17 [[nodiscard]] bool evaluate(const Player& player) override;
18 [[nodiscard]] int reward() const override;
19 [[nodiscard]] std::shared_ptr<ScenarioCriteria> clone() const override{
20 return std::shared_ptr<ScenarioCriteria>(new LumberCollect(*this));
21 }
22 };
23}
24
25
26#endif //DEEPRTS_LUMBERCOLLECT_H
Definition: LumberCollect.h:11
int reward() const override
Definition: LumberCollect.cpp:18
LumberCollect(int lumberCollectLimit, int rewardSuccess=0.01, int rewardFailure=-0.01)
Definition: LumberCollect.cpp:7
std::shared_ptr< ScenarioCriteria > clone() const override
Definition: LumberCollect.h:19
bool evaluate(const Player &player) override
Definition: LumberCollect.cpp:13
Definition: ScenarioCriteria.h:14
const int rewardFailure
Definition: ScenarioCriteria.h:18
const int rewardSuccess
Definition: ScenarioCriteria.h:17
Definition: Player.h:18
Definition: DamageDone.h:10