Deep RTS
Public Types | Public Member Functions | Protected Attributes | List of all members
DeepRTS::Criteria::ScenarioCriteria Class Referenceabstract

#include <ScenarioCriteria.h>

Inheritance diagram for DeepRTS::Criteria::ScenarioCriteria:
DeepRTS::Criteria::DamageDone DeepRTS::Criteria::DamageDoneIncrement DeepRTS::Criteria::DamageTaken DeepRTS::Criteria::DamageTakenIncrement DeepRTS::Criteria::FoodConsumption DeepRTS::Criteria::FoodCount DeepRTS::Criteria::GoldCollect DeepRTS::Criteria::LumberCollect DeepRTS::Criteria::NumUnitTypeCreated DeepRTS::Criteria::ResourceIncrement DeepRTS::Criteria::StoneCollect DeepRTS::Criteria::UnitIncrement DeepRTS::Criteria::UnitsCreated

Public Types

using ScenarioContainer = std::vector< std::shared_ptr< ScenarioCriteria > >
 

Public Member Functions

 ScenarioCriteria (int rewardSuccess=0.01, int rewardFailure=-0.01)
 
virtual std::shared_ptr< ScenarioCriteriaclone () const =0
 
virtual bool evaluate (const Player &player)=0
 
virtual int reward () const =0
 

Protected Attributes

const int rewardSuccess
 
const int rewardFailure
 

Member Typedef Documentation

◆ ScenarioContainer

Constructor & Destructor Documentation

◆ ScenarioCriteria()

DeepRTS::Criteria::ScenarioCriteria::ScenarioCriteria ( int  rewardSuccess = 0.01,
int  rewardFailure = -0.01 
)

Member Function Documentation

◆ clone()

virtual std::shared_ptr< ScenarioCriteria > DeepRTS::Criteria::ScenarioCriteria::clone ( ) const
pure virtual

◆ evaluate()

virtual bool DeepRTS::Criteria::ScenarioCriteria::evaluate ( const Player player)
pure virtual

◆ reward()

virtual int DeepRTS::Criteria::ScenarioCriteria::reward ( ) const
pure virtual

Member Data Documentation

◆ rewardFailure

const int DeepRTS::Criteria::ScenarioCriteria::rewardFailure
protected

◆ rewardSuccess

const int DeepRTS::Criteria::ScenarioCriteria::rewardSuccess
protected

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