[Greenengine-developer] Fixes and changes
Status: Planning
Brought to you by:
jeromiya
|
From: Jeremy B. <bel...@gm...> - 2007-04-16 22:37:13
|
Just a heads up: I fixed the seg fault bug, it was due to the improper dynamic cast. shared_ptr must be dynamicly cast using the boost::dynamic_pointer_cast method. See boost docs for exact usage. Also, I changed the way VariableTableTemplate handles InitFormat. It now uses a shared_ptr internally, and you must send it a shared_ptr when calling SetInitFormat method. I also moved InitFormat and InitArgFormat (along with their respective shared_ptr typedefs) outside of VariableTableTemplate so you don't have to type VariableTableTemplate::InitFormatPtr just InitFormatPtr. Oh, and also I added some Print functions to TemplateTable and VariableTableTemplate base classes, which should generally be useful for subclasses. I may add an additional Print function (which TemplateTable::Print function uses) in EntityTemplate to print out behaviors. Cheers, Jeremy |