Games
in package
Class Games
Table of Contents
- getBestSelf() : int|mixed
- Get the highest ID for the user
- getHighScore() : int
- Picks high score
- getScores() : string
- Just to get the score of the tetris game
- getScoresRank() : string
- Show the ranking of one ID Used in x_get_data after the reached results
- getScoreTable() : string
- getTotal() : mixed
- Total games
- getTotalFromUser() : mixed
- Total games from user
- getScoreRows() : string
Methods
getBestSelf()
Get the highest ID for the user
public
static getBestSelf([string $game = 'tetris' ]) : int|mixed
Parameters
- $game : string = 'tetris'
Return values
int|mixed —getHighScore()
Picks high score
public
static getHighScore([string $game = 'tetris' ]) : int
Parameters
- $game : string = 'tetris'
Return values
int —getScores()
Just to get the score of the tetris game
public
static getScores([string $game = 'tetris' ]) : string
Parameters
- $game : string = 'tetris'
Return values
string —- table
getScoresRank()
Show the ranking of one ID Used in x_get_data after the reached results
public
static getScoresRank(int $nID[, string $game = 'tetris' ]) : string
Parameters
- $nID : int
- $game : string = 'tetris'
Return values
string —getScoreTable()
public
static getScoreTable([string $strGame = 'tetris' ], mixed $nNowID) : string
Parameters
- $strGame : string = 'tetris'
- $nNowID : mixed
Return values
string —getTotal()
Total games
public
static getTotal([string $game = 'tetris' ]) : mixed
Parameters
- $game : string = 'tetris'
Return values
mixed —getTotalFromUser()
Total games from user
public
static getTotalFromUser([string $game = 'tetris' ]) : mixed
Parameters
- $game : string = 'tetris'
Return values
mixed —getScoreRows()
protected
static getScoreRows(bool|mysqli_result|array<string|int, mixed> $result[, string $game = 'tetris' ], int $nID) : string
Parameters
- $result : bool|mysqli_result|array<string|int, mixed>
- $game : string = 'tetris'
- $nID : int