Class: Game

Game()

This class represents a multiplayer match hosted by a player in the lobby. Having this represented as a class allows to leverage significant performance gains by caching computed, escaped, translated strings and sorting keys. Additionally class representation allows implementation of events such as a new match being hosted, a match having ended, or a buddy having joined a match. Ensure that escapeText is applied to player controlled data for display. Users of the properties of this class: GameList, GameDetails, MapFilters, JoinButton, any user of GameList.selectedGame()

Constructor

new Game()

Source:

Members

GameStatusOrder

Initial sorting order of the gamelist.
Source:

IncompatibleTags

Games that require different mods than the ones launched by the current player are grayed out.
Source:

PlayerCountTags

Color for the player count number in the games list.
Source:

StanzaKeys

These are all keys that occur in a gamelist stanza sent by XPartaMupp.
Source:

StateTags

Compatible games will be listed in these colors.
Source:

Methods

onBuddyChange()

Called from GameList to ensure call order.
Source:

update()

This function computes values that will either certainly or most likely be used later (i.e. by filtering, sorting and gamelist display). The performance benefit arises from the fact that for a new gamelist stanza many if not most games and game properties did not change.
Source: