Skip to content

User Statistics

Millie Macdonald edited this page Jan 18, 2017 · 1 revision

Basic Info

The UserStatistics class found here in singularity handles the database side of statistics tracking and is the overall statistics for a particular user. It is an extension of the common statistics class which you can read about here.

This class has two main purposes the first, is to handle the interaction with the singularity server. That is to help the uploading and pulling of the statistics from the database. As stated before this class is intended to store overall statistics regardless of the champion being played. The second purpose of this class is to help keep track of the statistics. Several methods have been implemented to help with that.

Method Summary

Modifier and Type Method Description
UserStatistics addToUserLevel(int value) Adds to the designated value to the user level
UserStatistics addToUserLevel(String value) Adds to the designated value to the user level
boolean equals(Object obj)
String getUserLevel() Gets the User's Level
int hashCode()
UserStatistics mergeStatistics(UserStatistics otherStats) Merges the two statistics objects together
UserStatistics setUserLevel(String value) Updates the user level to the new specified value
String toString()

Home

Saving and Loading

Statistics tracking

Game Play

APIs


Game Guide

Other Guides

Design Guides

Overviews

Features

Animations

Splash Screen & Create Account Screen

Player Account Settings

AI

Duck Dust


Brainstorming


Future Development


http://cultofthepartyparrot.com/parrots/partyparrot.gifhttp://cultofthepartyparrot.com/parrots/partyparrot.gifhttp://cultofthepartyparrot.com/parrots/partyparrot.gifhttp://cultofthepartyparrot.com/parrots/partyparrot.gif

Clone this wiki locally