game_status

Contains functions related to updating and displaying the current MindUnit scores in the game. The MindUnit scores represent the current global score for each faction in Ingress.

Methods

inner updateGameScore(dataopt)

Updates the game score displayed on the map. This function queries the current global MindUnit score for each faction from the Ingress servers and updates the display. The scores are displayed in a percentage format, showing the dominance of each faction. If the data isn't available, this function attempts to fetch it from the server.

Parameters:
Name Type Attributes Description
data Object <optional>

The game score data retrieved from the Ingress servers. If not provided, the function will make a server request to fetch the data.