~brightside/mimir/char-skills-certs

Viewing all changes in revision 26.

  • Committer: Espen Rønnevik
  • Date: 2009-05-20 19:38:23 UTC
  • Revision ID: brightside@quasinet.org-20090520193823-4ogtlzejp3kabta7
Enhancement: Improvements to Skill and SkillCollection

Improved code readability. SkillID and GroupID are now named sid and gid
respectabely. Added sid as property to the skill class. 

Skill will return a iteritems iterator for skillBonus and requiredSkill

Removed "*args, **kwargs" from Skill, it has no function as
SkillCollection never passed it. 

Removed _set and _clear methods that will
not be needed during xml parsing, the skilltree with skills and groups
should be considered read-only after creation. If there is a new version
of the xml datafile, the whole tree should be recreated.

SkillCollection is now iterable and will return all skill objects.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: