Basicly it provides {@link quest.server.util.QuestDatabase} to offer persistant storage through {@link quest.server.util.MYSQLCommunicator}. QuestDatabase provides means to account for user information in the database.
user information table specification: +-------------+----------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+----------+------+-----+---------+-------+ | username | char(32) | | PRI | | | | password | char(32) | | | | | | ranking | int(4) | | MUL | 1500 | | | gamesplayed | int(4) | | | 0 | | | wins | int(4) | | | 0 | | | lost | int(4) | | | 0 | | +-------------+----------+------+-----+---------+-------+
Field | Format | Explanation |
---|---|---|
username | Plain ascii. | The username of the user, 32 max, 4 min(the latter is enforeced by client) |
password | SQL PASSWORD encryption. | The password of the user, 4 chars min(client enforced) |
ranking | Integer | Calculated after a match according to an yet-to-be-specified ELO rating |
gamesplayed | Positive integer | Number of games user has played |
wins | Positive integer | Number of games user has won |
lost | Positive integer | Number of games user has lost |