Sunday 4th Feb 2024
Blog Entry 6
This progress update is a very good one as I got more than I expected done.
I have been able to complete work on not only the date management system but also the stats management system. I incorporated the date management system into the time of day management I already had in order to keep the time management together. Similar to the time of day management the date management also has a delegate to send out events when the date changes. I have also tied the time of day and date together so that when the time of day changed into a new day e.g. Evening -> Morning the date will change as well and when the date is changed there is the option to change the time of day to the starting value.
The stats management system uses Enums to keep track of what different stats there are in the game and has an array of stats with one item per enum value (excluding the SizeOfEnum value). This method makes it easy to get the stats and make functions to interact with the stats manager such as ones like this SetStat(StatEnum, NewValue) by using enums it makes it a lot easier to tell what is being changed when looking at the code and easier to write the code. The code also has checks to guard against things like using SizeOfEnum or trying to set the stat to an invalid value.
The next step is to make a UI for the game in order to be able to see what the players stats are and what the date and time of day are. Making a UI in C++ will certainly be a fun challenge but that’s what I have got myself into.