Weeding out The Bits
Well I was thinking today to present a net little perl script that read the PDF file I created in my last post and get some of the presto-chango automatic code generation.
Well I quickly gave that up as the PDF conversion simply but everything in alphabetical order so I lost any structure I had there. I did have to cheat and not use a PDF reader. I just slurped it in as a file and then use a reg-ex to suck out the bits I wanted. Really I had to double cheat and peek at the file first to see what to suck out.
Long story short without the structure intact I could of resorted to renaming all my objects to preserve the structure ie 1.1, 1.2 ~ 1.2.1 but that would take longer than just writing the Moose.
I did have a look at Toby's suggestion to use FreeMind. Well it did sort of do what I wanted though it was a little more convoluted than I expected and it did produce some nice and easy XML.
There is lots of potential there the only problem being one would have to spend just a much time adding in all the little bits than it would take writing the Moose. Too bad FreeMind does not have any plugin capability yet as a MOOSE OO design would be nice.
Anyway, so not much for today except I did work out my Namespace for RPG::ADD to be
RPG::ADD::Campaign
RPG::ADD::Character
RPG::ADD::Character::Ability
RPG::ADD::Character::Class
RPG::ADD::Character::Class::Cleric
RPG::ADD::Character::Class::Fighter
RPG::ADD::Character::Class::Monk
RPG::ADD::Character::Class::MU
RPG::ADD::Character::Class::Thief
RPG::ADD::Race
RPG::ADD::Race::Dwarf
RPG::ADD::Race::Elf
RPG::ADD::Race::Gnome
RPG::ADD::Race::HalfElf
RPG::ADD::Race::Halfling
RPG::ADD::Race::HalfOrc
RPG::ADD::Language
RPG::ADD::Ability
RPG::ADD::Monster
RPG::ADD::Spells
RPG::ADD::Weapons::Arms
RPG::ADD::Weapons::Armor
I will add the 'Mele' Roles under their classes
RPG::ADD::Character::Class::Cleric::SaveingThows
RPG::ADD::Character::Class::Fighter::THAC0
As Most Abilities are shared by many classes and can also be acquired by magic means they get their own spot.
As well I stubbed in Monsters, Spells, Weapons just for fun.
It is a start now to actually write them up and see if I can get Moose to play nicely with them all.
Leave a comment