i'm trying to develop an android app to handle character sheets in roleplay games like D&D and Pathfinder.
My target is to avoid calculations of bonuses by the player who only cares to set which talent is he using or by which magic he is afflicted.
The easiest way (imho) is to handle all talents and magic with classes, with methods that modify the attributes of the character class.
Another way is to store all talents and spells in a db and read from it when the user choose or use a talent or a spell.
Am i right saying that with 1st way i use more memory than the 2nd? (if not i'm choosing it)
If is better using db, I don't know how to save the data because is poorly structured:
Talent Improved Bluff: +2 to Bluff checks
Talent Speed: if the character wears no armor or light armor he moves 5 feet fast than his base speed
I can save the talent description as a meta-code string and parse it whithin the program but it seems too complicated. Do you have any better ideas for this db?