Initial work on calculator program.
This commit is contained in:
27
calculator/Recipe.h
Normal file
27
calculator/Recipe.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef SATISFACTORY_RECIPE
|
||||
#define SATISFACTORY_RECIPE
|
||||
|
||||
#include "Product.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class Recipe {
|
||||
public:
|
||||
Recipe()
|
||||
{
|
||||
// TEST:
|
||||
ingredients.push_back({Product(), 20.0});
|
||||
ingredients.push_back({Product(), 4.0});
|
||||
ingredients.push_back({Product(), 60.0});
|
||||
}
|
||||
~Recipe() {}
|
||||
|
||||
std::pair<Product, float> Produces() const { return produces; }
|
||||
std::vector<std::pair<Product, float> > Ingredients(float overclock = 1.0f);
|
||||
|
||||
private:
|
||||
std::pair<Product, float> produces;
|
||||
std::vector<std::pair<Product, float> > ingredients;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user