Adds a manager to handle entity data and logic processing.
The first commit moves the functions from entity.h into a containing class, so everything that called them now prefixes the calls with EntityManager.. The functions in entity.cpp were sorted, but mainly kept intact.
The second commit is mostly a noop; it moves the comments for each function into the class declaration (helps my IntelliSense/tooltips).
The third commit moves number_of_entities into EntityManager, and starts treating active as a boolean instead of '=1' and '=0' all over the place. An attempt to make getters and setters for number_of_entities was started, but there were a few C-isms that caused issues, so I left them off for now.
Adds a manager to handle entity data and logic processing.
entity.h
into a containing class, so everything that called them now prefixes the calls withEntityManager.
. The functions inentity.cpp
were sorted, but mainly kept intact.number_of_entities
into EntityManager, and starts treatingactive
as a boolean instead of '=1' and '=0' all over the place. An attempt to make getters and setters fornumber_of_entities
was started, but there were a few C-isms that caused issues, so I left them off for now.