WorldSim  inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
ItemFactory.hpp
Go to the documentation of this file.
1 #pragma once
2 #ifndef WORLDSIM_ITEM_FACTORY_HPP
3 #define WORLDSIM_ITEM_FACTORY_HPP
4 
5 #include "Item.hpp"
6 
7 /* Worldsim: ItemFactory.hpp
8  #include"ItemFactory.hpp"
9 
10  Class to produce items based on Character stats and equipment used to make item.
11 
12 */
13 
15 {
16  public:
17  ItemFactory();
18 
19  // Produce the item with stats relevant based on character skill, location, and tools used.
20  Item* produce(ItemType type, Character* character, Location* location /* TOOL */);
21 
22  // Produce worst guaranteed item with the given factors
23  Item* produceBasic(ItemType type, Character* character, Location* location /* TOOL */);
24 };
25 
26 #endif // WORLDSIM_ITEM_FACTORY_HPP
Definition: ItemFactory.hpp:14
Item * produce(ItemType type, Character *character, Location *location)
Definition: ItemFactory.cpp:16
Item * produceBasic(ItemType type, Character *character, Location *location)
Definition: ItemFactory.cpp:22
ItemFactory()
Definition: ItemFactory.cpp:11
Definition: Item.hpp:51
Definition: Character.hpp:38
Definition: Location.hpp:19
ItemType
Definition: Driver_Settings_Enums.hpp:268