Making a object requires a class call, but also has to be rendered.
Monster monster{};
monster = new Monster[10];
void render_monster(Monster* monster_array);
The iso c++ standard says you should use classes for making objects,
not structs(structures). Considering it is a standard. With emphasis
on should, not must. It is a standard, not a coding rule. It was set
forth by iso commitee and bjarne stroustrup.
Polymorphism allows us to make multiple monster arch map types.
virtual void render_monster(std::string map_name, int type=0);
Atch map is a data map about what all is happening in the game, like
for example campaign map. It allows making archetypes. monsters,
for more efficient run time memory and pointers managing bugs and
random access memory. Random access memory can hold quite many
objects.
class BackPack
{
std::string inventory_node{};
};
Comments
Post a Comment