shaheenm82 / quest-list

Automatically exported from code.google.com/p/quest-list
0 stars 0 forks source link

Quests #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Quests Should
have a created date.
have a public/personal flag
Contain one or more tasks.
have an experience value associated with completing the quest.
have a completed date.

Original issue reported on code.google.com by shaheen....@gmail.com on 25 Feb 2015 at 8:01

GoogleCodeExporter commented 8 years ago

Original comment by shaheen....@gmail.com on 25 Feb 2015 at 8:05

GoogleCodeExporter commented 8 years ago
Created in the database using the following SQL

private static final String CREATE_TABLE_QUEST = 
        "CREATE TABLE " + TABLE_QUEST
        + "(" + KEY_ID + " INTEGER PRIMARY KEY,"
        + COL_QUEST_NAME + " TEXT NOT NULL,"
        + COL_QUEST_TYPE + " TEXT NOT NULL,"
        + COL_QUEST_XP + " INTEGER DEFAULT 0,"
        + COL_QUEST_CREATED + " TEXT NOT NULL,"
        + COL_QUEST_COMPLETED + " TEXT "
        + ")";

Original comment by shaheen....@gmail.com on 4 Mar 2015 at 5:16

GoogleCodeExporter commented 8 years ago
Created a POJO to keep the data for this object.  The quest object also 
includes an ArrayList of tasks to represent the tasks that are associated with 
the quest.

A Helper object is used to write quest data to the database and to read quest 
data from the database.

Original comment by shaheen....@gmail.com on 4 Mar 2015 at 5:45