return litros > 0;
}
-void Tank::update()
+void Tank::update(int dir)
{
updated = true;
}
}
}
+void Tank::get_state_as_xml(std::stringstream &out)
+{
+ // El tanque no emite flujo actual!
+ out << "\t<tank name=\"" << name << "\">" << std::endl;
+ out << "\t\t<capacity>" << capacity << "</capacity>" << std::endl;
+ out << "\t\t<litros>" << litros << "</litros>" << std::endl;
+ out << "\t</tank>" << std::endl;
+}