public class Game
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private SQLiteDatabase |
db |
static Game |
SINGLETON |
Constructor and Description |
---|
Game() |
Modifier and Type | Method and Description |
---|---|
Level |
createLevel(int lvlNum)
It creates a level based on the parameter passed.
|
boolean |
importer(JSONObject rootObject)
Imports the json file to the database.
|
void |
initializer(Context context)
Initializes the database.
|
private SQLiteDatabase db
public static final Game SINGLETON
public void initializer(Context context)
public boolean importer(JSONObject rootObject)
public Level createLevel(int lvlNum)
lvlNum
- is the level number that the game needs to create.