I'm spending a lot more time making sure things are consistent though. For example, the following would work for any of my math classes:
template void Display(const ValueType &Value){ MessageBox(0, Value.ToString().c_str(), "Displaying value...", 0);}template ValueType Load(std::ifstream &Stream){ char Buffer[256]; Stream.getline(Buffer, 255); return ValueType::FromString(Buffer);}template ValueType Load(TiXmlElement *Element){ return ValueType::FromXmlElement(Element);}
I wouldn't actually use any of them (other than for testing or something), but they would work for all of my classes. Hell, they'd ever work for some of my other classes.
I know I keep changing my plans, but I need to start thinking more about my future and less about practice. I'm going to do Chompy, Blocks Gone Wild, and Spelunker to test the engine, but then I'm going to focus on something else. I still plan on finishing Invasion, it's just going to take a little longer than I want it to.
I need to go to sleep now. kthxbai
Seems like that should be
I.e. why the 255 character limit instead of just having the underlying ValueType::FromString method read in the data it needs from the stream?