public class Levels_DAO extends Game_DAO
Modifier and Type | Field and Description |
---|---|
static Levels_DAO |
SINGLETON |
EMPTY_ARRAY_OF_STRINGS
Constructor and Description |
---|
Levels_DAO() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(JSONArray objArr)
Adds the json data to the database.
|
Level |
create(int lvlNum)
Creates a level object based on the parameter received
and the query made to the database.
|
private Asteroid[] |
createAsteroids(int lvlNum)
Creates an array of asteroid objects based on the parameter received
and the query made to the database.
|
private StaticObj[] |
createStaticObjs(int lvlNum)
Creates an array of background objects based on the parameter received
and the query made to the database.
|
public static final Levels_DAO SINGLETON
public boolean add(JSONArray objArr) throws JSONException
JSONException
private Asteroid[] createAsteroids(int lvlNum)
private StaticObj[] createStaticObjs(int lvlNum)
public Level create(int lvlNum)