[Ohrrpgce] SVN: teeemcee/10874 Replace all Clear*Data, etc subs with Destructor+Constructor calls, and

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Mon Nov 19 21:37:58 PST 2018


teeemcee
2018-11-19 21:37:58 -0800 (Mon, 19 Nov 2018)
713
Replace all Clear*Data, etc subs with Destructor+Constructor calls, and add Ctor/Dtors to some UDTs

Some UDTs have implicit constructors (due to the UDT defining default values for
members directly), others need explicit ones. Some have both - I'm not sure
whether that's good or bad style.

ClearVehicle disappeared because the VehicleState implicit constructor did the
same thing

HeroDef now has a ctor that does quite a lot (creating the battle menu as a
RELOAD tree), but it almost always only gets called immediately before
loadherodata anyway, which is far slower.
In future, I'd really like to just store all HeroDefs in memory for simplicity
and efficiency, because there are so many loadherodata calls.
---
U   wip/game.bas
U   wip/game_udts.bi
U   wip/loading.bi
U   wip/loading.rbas
U   wip/menus.bas
U   wip/udts.bi
U   wip/walkabouts.bas


More information about the Ohrrpgce mailing list