Deep RTS
Public Member Functions | List of all members
DeepRTS::Criteria::LumberCollect Class Reference

#include <LumberCollect.h>

Inheritance diagram for DeepRTS::Criteria::LumberCollect:
DeepRTS::Criteria::ScenarioCriteria

Public Member Functions

 LumberCollect (int lumberCollectLimit, int rewardSuccess=0.01, int rewardFailure=-0.01)
 
bool evaluate (const Player &player) override
 
int reward () const override
 
std::shared_ptr< ScenarioCriteriaclone () const override
 
- Public Member Functions inherited from DeepRTS::Criteria::ScenarioCriteria
 ScenarioCriteria (int rewardSuccess=0.01, int rewardFailure=-0.01)
 

Additional Inherited Members

- Public Types inherited from DeepRTS::Criteria::ScenarioCriteria
using ScenarioContainer = std::vector< std::shared_ptr< ScenarioCriteria > >
 
- Protected Attributes inherited from DeepRTS::Criteria::ScenarioCriteria
const int rewardSuccess
 
const int rewardFailure
 

Constructor & Destructor Documentation

◆ LumberCollect()

DeepRTS::Criteria::LumberCollect::LumberCollect ( int  lumberCollectLimit,
int  rewardSuccess = 0.01,
int  rewardFailure = -0.01 
)
explicit

Member Function Documentation

◆ clone()

std::shared_ptr< ScenarioCriteria > DeepRTS::Criteria::LumberCollect::clone ( ) const
inlineoverridevirtual

◆ evaluate()

bool DeepRTS::Criteria::LumberCollect::evaluate ( const Player player)
overridevirtual

◆ reward()

int DeepRTS::Criteria::LumberCollect::reward ( ) const
overridevirtual

The documentation for this class was generated from the following files: