Skip to content

Get game and sprite features

Raluca D. Gaina edited this page Feb 12, 2018 · 2 revisions

The remaining functions in the GameAnalyzer class provide you with different functions that extract features from the sprites and the game based on their interaction data. These features could be useful in estimating the usefulness of some sprites or amount of each one. The following table shows a list of these functions:

GameAnalyzer functions Description
int checkIfSpawned(String stype) Check if the sprite provided is spawned from another object. Return 0 if it is spawned and 1 otherwise.
int getPriorityNumber(String stype) Return an integer number equal to the number of repetition of this sprite in the interactions set.
double getMinScoreUnit() Return the minimum score change value found in the interactions.
double getMaxScoreUnit() Return the maximum score change value found in the interactions.

Table of Contents:

Clone this wiki locally