Assemberist / cppRpg

0 stars 0 forks source link

Translate c++ code to pure c #38

Open Assemberist opened 5 months ago

Assemberist commented 5 months ago

It was old sticker. The project is mostly written on c++ so it is better to revrite it with better practices of c++. And also internal data structures can collapse some elements to std elements (use vector and other containers).

Assemberist commented 5 months ago

Some small parts can be done on pure C but not business-logic nor object system.

Assemberist commented 5 months ago

As part of the issue: 1) Move "static log* l;" from object and state classes to new class (done with Curiously recurring template pattern). 2) Simplify item class: internal struct info can be collapsed since it is unused. 3) item_def has been deleted as unused. 4) Target list removed from object as unused (possibly target list will be choosed in alles class).

Assemberist commented 5 months ago

stat field of object class is public. Should it be protected?