From 9bc26146397acb5a216e20d5eb55bb2a582fdd3e Mon Sep 17 00:00:00 2001 From: Szymon Szukalski Date: Thu, 24 Oct 2024 21:10:57 +1100 Subject: Implement key data model - Added classes for Person, Gender, Family, FamilyTree - Replaced FamilyTreeManager with FamilyTree - Add FamilyFactory for seeding the initial FamilyTree for King Arthur and Queen Margaret - Added a RelationshipManager for linking spouses correctly - Refactored ActionFileExecutor for readability - More test coverage --- data/actions.txt | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) (limited to 'data/actions.txt') diff --git a/data/actions.txt b/data/actions.txt index f7e1ff0..8988068 100644 --- a/data/actions.txt +++ b/data/actions.txt @@ -1,3 +1,35 @@ -ADD_CHILD Flora Minerva Female -GET_RELATIONSHIP Remus Maternal-Aunt -GET_RELATIONSHIP Minerva Siblings \ No newline at end of file +GET_RELATIONSHIP "Queen Margaret" "Mother" +GET_RELATIONSHIP "King Arthur" "Mother" +GET_RELATIONSHIP "Bill" "Mother" +GET_RELATIONSHIP "Charlie" "Mother" +GET_RELATIONSHIP "Percy" "Mother" +GET_RELATIONSHIP "Ronald" "Mother" +GET_RELATIONSHIP "Ginerva" "Mother" +GET_RELATIONSHIP "Flora" "Mother" +GET_RELATIONSHIP "Victoire" "Mother" +GET_RELATIONSHIP "Dominique" "Mother" +GET_RELATIONSHIP "Louis" "Mother" +GET_RELATIONSHIP "Ted" "Mother" +GET_RELATIONSHIP "Remus" "Mother" +GET_RELATIONSHIP "Audrey" "Mother" +GET_RELATIONSHIP "Molly" "Mother" +GET_RELATIONSHIP "Lucy" "Mother" +GET_RELATIONSHIP "Helen" "Mother" +GET_RELATIONSHIP "Rose" "Mother" +GET_RELATIONSHIP "Hugo" "Mother" +GET_RELATIONSHIP "Malfoy" "Mother" +GET_RELATIONSHIP "Draco" "Mother" +GET_RELATIONSHIP "Aster" "Mother" +GET_RELATIONSHIP "Harry" "Mother" +GET_RELATIONSHIP "James" "Mother" +GET_RELATIONSHIP "Albus" "Mother" +GET_RELATIONSHIP "Lily" "Mother" +GET_RELATIONSHIP "Darcy" "Mother" +GET_RELATIONSHIP "William" "Mother" +GET_RELATIONSHIP "Alice" "Mother" +GET_RELATIONSHIP "Ron" "Mother" +GET_RELATIONSHIP "Ginny" "Mother" + +GET_RELATIONSHIP "Molly" "Father" + +GET_RELATIONSHIP "Bill" "Siblings" \ No newline at end of file -- cgit v1.2.3