5#ifndef DEEPRTS_UNITSCREATED_H
6#define DEEPRTS_UNITSCREATED_H
13 int unitsCreatedLimit;
19 [[nodiscard]]
int reward()
const override;
20 [[nodiscard]] std::shared_ptr<ScenarioCriteria>
clone()
const override{
21 return std::shared_ptr<ScenarioCriteria>(
new UnitsCreated(*
this));
Definition: ScenarioCriteria.h:14
const int rewardFailure
Definition: ScenarioCriteria.h:18
const int rewardSuccess
Definition: ScenarioCriteria.h:17
Definition: UnitsCreated.h:12
std::shared_ptr< ScenarioCriteria > clone() const override
Definition: UnitsCreated.h:20
int reward() const override
Definition: UnitsCreated.cpp:18
UnitsCreated(int unitsCreatedLimit, int rewardSuccess=0.01, int rewardFailure=-0.01)
Definition: UnitsCreated.cpp:7
bool evaluate(const Player &player) override
Definition: UnitsCreated.cpp:13
Definition: DamageDone.h:10