1 #ifndef GAMES_ANARCHY_WAREHOUSE_H 
    2 #define GAMES_ANARCHY_WAREHOUSE_H 
   14 #include <unordered_map> 
   16 #include <initializer_list> 
   18 #include "../../joueur/src/any.hpp" 
   20 #include "building.hpp" 
   22 #include "impl/anarchy_fwd.hpp" 
   73    Warehouse_(std::initializer_list<std::pair<std::string, Any&&>> init);
 
   74    Warehouse_() : Warehouse_({}){}
 
   75    virtual void resize(
const std::string& name, std::size_t size) 
override;
 
   76    virtual void change_vec_values(
const std::string& name, std::vector<std::pair<std::size_t, Any>>& values) 
override;
 
   77    virtual void remove_key(
const std::string& name, Any& key) 
override;
 
   78    virtual std::unique_ptr<Any> add_key_value(
const std::string& name, Any& key, Any& value) 
override;
 
   79    virtual bool is_map(
const std::string& name) 
override;
 
   80    virtual void rebind_by_name(Any* to_change, 
const std::string& member, std::shared_ptr<Base_object> ref) 
override;
 
   91 #endif // GAMES_ANARCHY_WAREHOUSE_H 
int ignite(const Building &building)
bribes the _warehouse to light a _building on fire. _this adds this building's fire_added to their fi...
 
A basic building. It does nothing besides burn down. Other Buildings inherit from this class...
Definition: building.hpp:37
 
const int & exposure
How exposed the anarchists in this warehouse are to PoliceDepartments. Raises when bribed to ignite b...
Definition: warehouse.hpp:44
 
A typical abandoned warehouse that anarchists hang out in and can be bribed to burn down Buildings...
Definition: warehouse.hpp:37
 
const int & fire_added
The amount of fire added to buildings when bribed to ignite a building. Headquarters add more fire th...
Definition: warehouse.hpp:49