Commit Graph

113 Commits

Author SHA1 Message Date
9bf1595f29 Adds methods to JSONHelper to read boolean values. 2020-09-17 00:50:27 -07:00
4a1145fd28 Adds JSONHelper methods to read numbers as ints. 2020-09-17 00:30:22 -07:00
82625d4548 Adds JSONHelper methods to read numbers as NSNumber objects. 2020-09-17 00:27:40 -07:00
bc23b55429 Adds JSONHelper methods to read strings. (+1 squashed commit)
Squashed commits:
[30b0a71] Adds JSONHelper methods to read strings.
2020-09-17 00:23:28 -07:00
42baec2a38 Adds armor class to monster cards. 2020-09-15 20:26:39 -07:00
8029fb7540 Adds HTMLHelper to convert from HTML in an NSString to a properly attributed NSAttributedString. 2020-09-15 20:18:08 -07:00
4ff6a28c67 Adds armorClassDescription to Monster. 2020-09-15 20:00:15 -07:00
3e93aa59b4 Adds shieldBonus to Monster entity.
Adds tests for shieldBonus.
2020-09-15 20:00:15 -07:00
bead4f8ee5 Adds otherArmorDescription to Monster entity.
Adds tests for otherArmorDescription.
2020-09-15 20:00:15 -07:00
5aa88932f7 Adds armorName to Monster entity.
Adds tests for armorName.
2020-09-15 20:00:15 -07:00
a6f048cc2d Moves ability scores to Core Data entity. 2020-09-15 20:00:15 -07:00
e541fdcae3 Adds charismaScore and charismaModifier to Monster.
Adds tests for charismaScore and charismaModifier.
2020-09-15 20:00:15 -07:00
a26031a04f Adds wisdomScore and wisdomModifier to Monster.
Adds tests for wisdomScore and wisdomModifier.
2020-09-15 20:00:15 -07:00
05b3ad1280 Adds intelligenceScore and intelligenceModifier to Monster.
Adds tests for intelligenceScore and intelligenceModifier.
2020-09-15 20:00:15 -07:00
26f92e43f6 Adds constitutionScore and constitutionModifier to Monster.
Adds tests for constitutionScore and constitutionModifier.
2020-09-15 20:00:15 -07:00
d3dd60fb2c Adds dexterityScore and dexterityModifier to Monster.
Adds tests for dexterityScore and dexterityModifier.
2020-09-15 20:00:14 -07:00
91a99a5df3 Adds strengthScore and strengthModifier to Monster.
Adds tests for strengthScore and strengthModifier.
2020-09-15 20:00:14 -07:00
2fd50a9f68 Adds abilityModifierForScore and tests. 2020-09-15 19:58:58 -07:00
513e2c3511 Adds alignment to monsters.
Adds tests for editing alignment on monsters.
Adds tests for monster meta text when alignment is set.
2020-09-12 17:39:07 -07:00
0c1deecb5b Adds subtype to monster.
Adds EditMonsterViewController tests for editing subtype.
Adds tests for meta property of Monster.
2020-09-12 17:16:36 -07:00
42ddfbd52f Adds monster type to editor.
Sets all entity attributes for monster to default to empty string instead of null.
Adds test for copyFromMonster.
Makes initWithMonster:andContext call copyFromMonster to ensure they use the same logic to clone the other monster.
2020-09-12 12:52:45 -07:00
ee9994c2c8 Adds meta string to monster cards.
Implements meta method in Monster to return a formatted meta string.
Adds size to edit monster.
Moves monster copy logic to copyFromMonster in the Monster class.
Fixes JSON parsing to set strings to an empty string if they're missing from the json blob.
Makes Monster.size default to an empty string instead of null.
Cleans up some raw strings to use NSLocalizedString instead.
2020-09-12 03:08:10 -07:00
dd05b39ea9 Makes search and library use the same monster detail view/controller. 2020-09-12 02:16:14 -07:00
68e2f84e21 Fixes tests.
Adds CoreData codegen categories to tests.
Updates initializers to pass coredata contexts.
2020-09-12 02:06:25 -07:00
8efb17a56c Makes the search bar redo the search when the view is reloaded. 2020-09-12 01:26:59 -07:00
fade50eef5 Adds swipe action to delete a card from the library. 2020-09-12 01:25:56 -07:00
2e70466891 Makes views use monsters from CoreData instead of hard coded ones. 2020-09-12 01:16:56 -07:00
fb6418cc80 Makes Monster a CoreData entity 2020-09-12 00:55:49 -07:00
f0e804ce59 Adds monster name as editable in the edit monster view controller. 2020-09-12 00:21:49 -07:00
0e1a07972b Adds string form field cell for use in table views to edit a string property. 2020-09-12 00:17:41 -07:00
25b9d06935 Makes nav back from edit monster to monster view update the monster. 2020-09-12 00:14:01 -07:00
5f58e9e41d Adds a monster edit view. 2020-09-12 00:11:20 -07:00
651a8e30d4 Makes the library view display a list of monsters.
Makes the library view ad search view share a view controller for their destination.
2020-09-11 23:42:23 -07:00
327a640b83 Adds copy constructor to Monster initWithMonster. 2020-09-11 23:30:22 -07:00
15a89785c6 Removes some debug logging statements. 2020-09-07 22:37:57 -07:00
437e18d2cc Droppes deployment target to iOS 13.0 2020-09-07 18:13:59 -07:00
e18f44a136 Makes the search screen actually do searches.
Makes the monster detail view set the title if there is no name label bound.
2020-09-07 16:26:51 -07:00
48792ceebe Removes default text in search bar. 2020-09-06 18:47:14 -07:00
0ff71193d6 Adds name to Monster detail view.
Adds json initializers for Monster.
2020-09-06 17:33:58 -07:00
d338d42912 Adds name to monster detail view.
Passes the selected monster from the search view to the monster detail view.
2020-09-06 16:42:40 -07:00
3db7334ba4 Adds placeholder monsters to search view.
Adds navigation from search view to monster detail view.
2020-09-06 13:05:14 -07:00
757f0ded69 Adds UITableView for search results.
Adds constraints to search view.
2020-09-06 12:48:03 -07:00
d6f12b302a Fixes default initializer of Skill model.
Adds tests for Skill model.
2020-09-05 23:25:40 -07:00
bab5a55c3b Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
2020-09-05 22:06:51 -07:00
f688898d96 Fixes default initializer of SavingThrow model.
Adds tests for SavingThrow model.
2020-09-05 21:15:07 -07:00
8a758448a0 Fixes typing in Language initializer.
Fixes default initializer of Language model.
Adds tests for Language model.
2020-09-05 21:01:23 -07:00
bfcef65da3 Fixes default initializer of DamageType model.
Adds tests for DamageType model.
2020-09-05 20:01:53 -07:00
937aba27b1 Fixes default initializer of Action model.
Adds tests for Action model.
2020-09-05 19:37:28 -07:00
90c28b6629 Fixes default initializer of Ability model.
Adds tests for Ability model.
2020-09-05 19:33:05 -07:00
06c1e1b880 Adds StringHelper with isStringNilOrEmpty method. 2020-09-05 19:06:39 -07:00