various adjustments
This commit is contained in:
@ -1,15 +1,21 @@
|
||||
//
|
||||
// Created by stani on 3/10/2025.
|
||||
//
|
||||
|
||||
#ifndef ICOSTCOMPONENT_H
|
||||
#define ICOSTCOMPONENT_H
|
||||
#include "../model/Community.h"
|
||||
|
||||
class ICostComponent
|
||||
{
|
||||
#include <bitset>
|
||||
#include "../model/Community.h"
|
||||
#include "../Config.h"
|
||||
|
||||
class ICostComponent {
|
||||
public:
|
||||
std::bitset<MAX_CONDITIONS> applicableConditions;
|
||||
|
||||
template<typename... Conditions>
|
||||
ICostComponent(Conditions... conditions) {
|
||||
}
|
||||
|
||||
virtual ~ICostComponent() = default;
|
||||
virtual double apply(std::vector<std::unique_ptr<Community>>& communities) const = 0;
|
||||
|
||||
virtual void apply(std::unique_ptr<Building::Base> &building, std::unique_ptr<Community> &community) = 0;
|
||||
};
|
||||
|
||||
#endif //ICOSTCOMPONENT_H
|
||||
|
||||
Reference in New Issue
Block a user