C++ Joueur Client
 All Classes Namespaces Functions Variables
warehouse.hpp
1 #ifndef GAMES_ANARCHY_WAREHOUSE_H
2 #define GAMES_ANARCHY_WAREHOUSE_H
3 
4 // Warehouse
5 // A typical abandoned warehouse that anarchists hang out in and can be bribed to burn down Buildings.
6 
7 // DO NOT MODIFY THIS FILE
8 // Never try to directly create an instance of this class, or modify its member variables.
9 // Instead, you should only be reading its variables and calling its functions.
10 
11 #include <vector>
12 #include <queue>
13 #include <deque>
14 #include <unordered_map>
15 #include <string>
16 #include <initializer_list>
17 
18 #include "../../joueur/src/any.hpp"
19 
20 #include "building.hpp"
21 
22 #include "impl/anarchy_fwd.hpp"
23 
24 // <<-- Creer-Merge: includes -->> - Code you add between this comment and the end comment will be preserved between Creer re-runs.
25 // you can add additional #includes here
26 // <<-- /Creer-Merge: includes -->>
27 
28 namespace cpp_client
29 {
30 
31 namespace anarchy
32 {
33 
37 class Warehouse : public Building
38 {
39 public:
40 
44  const int& exposure;
45 
49  const int& fire_added;
50 
51  // <<-- Creer-Merge: member variables -->> - Code you add between this comment and the end comment will be preserved between Creer re-runs.
52  // You can add additional member variables here. None of them will be tracked or updated by the server.
53  // <<-- /Creer-Merge: member variables -->>
54 
55 
60  int ignite(const Building& building);
61 
62 
63  // <<-- Creer-Merge: methods -->> - Code you add between this comment and the end comment will be preserved between Creer re-runs.
64  // You can add additional methods here.
65  // <<-- /Creer-Merge: methods -->>
66 
67  ~Warehouse_();
68 
69  // ####################
70  // Don't edit these!
71  // ####################
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;
82  // ####################
83  // Don't edit these!
84  // ####################
85 };
86 
87 } // anarchy
88 
89 } // cpp_client
90 
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