X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a8803d96a8a33195ae9234b5e6ea84d7eefa0fd9..f61a5ebd00d4620af70c3780ba821f5af68def1c:/Model/include/simulator.h diff --git a/Model/include/simulator.h b/Model/include/simulator.h index cd68c05..e19a038 100644 --- a/Model/include/simulator.h +++ b/Model/include/simulator.h @@ -50,7 +50,7 @@ public: /// Tipos de elementos enum {PUMP, UNION, SPLITTER, CONDUCT, EXCLUSA, TANK, DRAINAGE}; - bool pump_deactivate(const std::string &name); + bool set_open(const std::string &name, bool open = true); protected: // Los mantengo en listas separadas para ahorrar // CPU y no tener que usar dinamic_cast @@ -79,6 +79,8 @@ protected: void loadUnion(xmlNodePtr nodo); void loadDrain(xmlNodePtr nodo); + RGB loadRGB(xmlNodePtr nodo); + // Frame. Define el orden para los cuadros del XML unsigned long int frame; };