void Drainage::simulate()
{
+#ifdef DEBUG
std::cout << name << "::Flujo recibido = " << actual_flow << std::endl;
+#endif
updated = false;
- actual_flow = 0;
+ color_updated = false;
}
void Drainage::recieve_msg(int msg, IConector *who, void *data)
case MSG_QUERY_MAX_FLOW_OUT:
// FIXME Hacer INFINITO !!!
actual_flow = *((float *)data);
- std::cout << "DD" << std::endl;
tmp = 999999;
who->recieve_msg(MSG_RESPONSE_MAX_FLOW, this, &tmp);
updated = true;