edogdu / RAM_Cyber_Defenders

Cybersecurity Learning Game in AR/VR Environment
2 stars 1 forks source link

Game Engine in C++ Modularized #20

Closed edogdu closed 4 months ago

Luk-Er4 commented 4 months ago

Compared to the previous C++ script, I could improve readability by modulizing the function that calls the card information.

image

This is the picture of the callTheCardInfos function. There are problems with this code, first of all, it is hard to read, and if there were any updates with card information, it would be hard to make changes. By performing the modulization of this code, I could solve both of the problems.

image image

It took extra work to find the logic to handle this issue, but in the future, when it comes to expanding or updating this code, it pays off.

LightTheBlues commented 4 months ago

will not fix