merovingien / AIWar

Create your Artificial Intelligence to win the war
GNU General Public License v3.0
4 stars 2 forks source link

Add Minerals of BASE on main terminal log #12

Closed leguims closed 11 years ago

leguims commented 12 years ago

On terminal log, you write stats of team 1 and 2. It could be usefull to show mineral storage of BASE.

merovingien commented 12 years ago

Mineral storage of a base is not a global information so it should not appear in summary.

It is the player responsability to print information about its base.

However a feature should be added to the renderer to print information about items, like their mineral storage or life.

leguims commented 12 years ago

Instead of minerals storage of the base, it could be a good metrics to have : Mineral gather (pushed or pulled to base) and mineral spent (to build ships and missiles). It could complete the informations of number of ships of the team.

merovingien commented 12 years ago

Indeed it would be nice to have this information, it it not implemented yet, but it should be present in a future release.

leguims commented 12 years ago

I pushed half the solution : Spent Minerals.

"Spent minerals" includes building Fighter and MiningShip, but not Missile. 2 difficult for Missiles : no team associates and used when launching from Figther an already bought missile.

For "Saved minerals", base.cpp need to have the pointer on gameManager instance.

I hope it will help you. :c)

merovingien commented 12 years ago

I reopen the issue because of the discussion above.

Computing statistics is planned for future works.

merovingien commented 11 years ago

Commit d0045a148ccad914197a3c2b5c5537b956be52ad adds support of global statistics, including saved and spent Mineral. This closes this issue.