Mercurial > traipse_dev
comparison orpg/gametree/nodehandlers/dnd3e.py @ 66:c54768cffbd4 ornery-dev
Traipse Dev 'OpenRPG' {090818-00}
Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user.
Update Summary:
*Unstable*
This is the first wave of Code Refinement updates. Includes new material from Core Beta; new debugger material (partially implemented), beginnings of switch to etree, TerminalWriter, and a little more. open_rpg has been renamed to component; functioning now as component.get(), component.add(), component.delete(). This version has known bugs, specifically with the gametree and nodes. I think the XML files where not removed during testing of Core and switching back.
author | sirebral |
---|---|
date | Tue, 18 Aug 2009 06:33:37 -0500 |
parents | 3b2cfa13b610 |
children | c5bc2abaf7f8 |
comparison
equal
deleted
inserted
replaced
65:4840657c23c5 | 66:c54768cffbd4 |
---|---|
231 | 231 |
232 self.hparent = None #a 1.5002 allow ability to run up tree, this is the | 232 self.hparent = None #a 1.5002 allow ability to run up tree, this is the |
233 #a 1.5002 top of the handler tree, this is used to flag where to stop | 233 #a 1.5002 top of the handler tree, this is used to flag where to stop |
234 #a 1.5002 on the way up. Changing this will break getRoot(self) | 234 #a 1.5002 on the way up. Changing this will break getRoot(self) |
235 | 235 |
236 self.frame = open_rpg.get_component('frame') | 236 self.frame = component.get('frame') |
237 self.child_handlers = {} | 237 self.child_handlers = {} |
238 self.new_child_handler('howtouse','HowTo use this tool',dnd3ehowto,'note') | 238 self.new_child_handler('howtouse','HowTo use this tool',dnd3ehowto,'note') |
239 self.new_child_handler('general','GeneralInformation',dnd3egeneral,'gear') | 239 self.new_child_handler('general','GeneralInformation',dnd3egeneral,'gear') |
240 self.new_child_handler('inventory','MoneyAndInventory',dnd3einventory,'money') | 240 self.new_child_handler('inventory','MoneyAndInventory',dnd3einventory,'money') |
241 self.new_child_handler('character','ClassesAndStats',dnd3eclassnstats,'knight') | 241 self.new_child_handler('character','ClassesAndStats',dnd3eclassnstats,'knight') |
333 """ | 333 """ |
334 def __init__(self,xml_dom,tree_node,parent): | 334 def __init__(self,xml_dom,tree_node,parent): |
335 node_handler.__init__(self,xml_dom,tree_node) | 335 node_handler.__init__(self,xml_dom,tree_node) |
336 self.char_hander = parent | 336 self.char_hander = parent |
337 self.drag = False | 337 self.drag = False |
338 self.frame = open_rpg.get_component('frame') | 338 self.frame = component.get('frame') |
339 self.myeditor = None | 339 self.myeditor = None |
340 | 340 |
341 | 341 |
342 def on_drop(self,evt): | 342 def on_drop(self,evt): |
343 pass | 343 pass |
599 """ | 599 """ |
600 def __init__(self,xml_dom,tree_node,parent): | 600 def __init__(self,xml_dom,tree_node,parent): |
601 node_handler.__init__(self,xml_dom,tree_node) | 601 node_handler.__init__(self,xml_dom,tree_node) |
602 self.hparent = parent #a 1.5002 allow ability to run up tree. | 602 self.hparent = parent #a 1.5002 allow ability to run up tree. |
603 dnd3e_char_child.__init__(self,xml_dom,tree_node,parent) | 603 dnd3e_char_child.__init__(self,xml_dom,tree_node,parent) |
604 self.frame = open_rpg.get_component('frame') | 604 self.frame = component.get('frame') |
605 self.child_handlers = {} | 605 self.child_handlers = {} |
606 self.new_child_handler('abilities','Abilities Scores',dnd3eability,'gear') | 606 self.new_child_handler('abilities','Abilities Scores',dnd3eability,'gear') |
607 self.new_child_handler('classes','Classes',dnd3eclasses,'knight') | 607 self.new_child_handler('classes','Classes',dnd3eclasses,'knight') |
608 self.new_child_handler('saves','Saves',dnd3esaves,'skull') | 608 self.new_child_handler('saves','Saves',dnd3esaves,'skull') |
609 self.myeditor = None | 609 self.myeditor = None |
631 """ | 631 """ |
632 def __init__(self,xml_dom,tree_node,parent): | 632 def __init__(self,xml_dom,tree_node,parent): |
633 node_handler.__init__(self,xml_dom,tree_node) | 633 node_handler.__init__(self,xml_dom,tree_node) |
634 self.char_hander = parent | 634 self.char_hander = parent |
635 self.drag = False | 635 self.drag = False |
636 self.frame = open_rpg.get_component('frame') | 636 self.frame = component.get('frame') |
637 self.myeditor = None | 637 self.myeditor = None |
638 | 638 |
639 def on_drop(self,evt): | 639 def on_drop(self,evt): |
640 pass | 640 pass |
641 | 641 |
1148 #print "dnd3eskillsnfeats - init, parent ",self.hparent #a (debug) 1.5002 | 1148 #print "dnd3eskillsnfeats - init, parent ",self.hparent #a (debug) 1.5002 |
1149 #print "dnd3eskillsnfeats - init, parent ",parent.dnd3eclassnstats #a (debug) 1.5002 | 1149 #print "dnd3eskillsnfeats - init, parent ",parent.dnd3eclassnstats #a (debug) 1.5002 |
1150 | 1150 |
1151 node_handler.__init__(self,xml_dom,tree_node) | 1151 node_handler.__init__(self,xml_dom,tree_node) |
1152 dnd3e_char_child.__init__(self,xml_dom,tree_node,parent) | 1152 dnd3e_char_child.__init__(self,xml_dom,tree_node,parent) |
1153 self.frame = open_rpg.get_component('frame') | 1153 self.frame = component.get('frame') |
1154 self.child_handlers = {} | 1154 self.child_handlers = {} |
1155 self.new_child_handler('skills','Skills',dnd3eskill,'book') | 1155 self.new_child_handler('skills','Skills',dnd3eskill,'book') |
1156 self.new_child_handler('feats','Feats',dnd3efeats,'book') | 1156 self.new_child_handler('feats','Feats',dnd3efeats,'book') |
1157 #wxMenuItem(self.tree.std_menu, dnd3e_EXPORT, "Export...", "Export") | 1157 #wxMenuItem(self.tree.std_menu, dnd3e_EXPORT, "Export...", "Export") |
1158 self.myeditor = None | 1158 self.myeditor = None |
1180 """ | 1180 """ |
1181 def __init__(self,xml_dom,tree_node,parent): | 1181 def __init__(self,xml_dom,tree_node,parent): |
1182 node_handler.__init__(self,xml_dom,tree_node) | 1182 node_handler.__init__(self,xml_dom,tree_node) |
1183 self.char_hander = parent | 1183 self.char_hander = parent |
1184 self.drag = False | 1184 self.drag = False |
1185 self.frame = open_rpg.get_component('frame') | 1185 self.frame = component.get('frame') |
1186 self.myeditor = None | 1186 self.myeditor = None |
1187 | 1187 |
1188 | 1188 |
1189 | 1189 |
1190 def on_drop(self,evt): | 1190 def on_drop(self,evt): |
1592 | 1592 |
1593 | 1593 |
1594 | 1594 |
1595 #mark3 | 1595 #mark3 |
1596 dnd3e_char_child.__init__(self,xml_dom,tree_node,parent) | 1596 dnd3e_char_child.__init__(self,xml_dom,tree_node,parent) |
1597 self.frame = open_rpg.get_component('frame') | 1597 self.frame = component.get('frame') |
1598 self.child_handlers = {} | 1598 self.child_handlers = {} |
1599 self.new_child_handler('hp','Hit Points',dnd3ehp,'gear') | 1599 self.new_child_handler('hp','Hit Points',dnd3ehp,'gear') |
1600 self.new_child_handler('attacks','Attacks',dnd3eattacks,'spears') | 1600 self.new_child_handler('attacks','Attacks',dnd3eattacks,'spears') |
1601 self.new_child_handler('ac','Armor',dnd3earmor,'spears') | 1601 self.new_child_handler('ac','Armor',dnd3earmor,'spears') |
1602 #print "combat",self.child_handlers #a (debug) 1.5002 | 1602 #print "combat",self.child_handlers #a (debug) 1.5002 |
1626 """ | 1626 """ |
1627 def __init__(self,xml_dom,tree_node,parent): | 1627 def __init__(self,xml_dom,tree_node,parent): |
1628 node_handler.__init__(self,xml_dom,tree_node) | 1628 node_handler.__init__(self,xml_dom,tree_node) |
1629 self.char_hander = parent | 1629 self.char_hander = parent |
1630 self.drag = False | 1630 self.drag = False |
1631 self.frame = open_rpg.get_component('frame') | 1631 self.frame = component.get('frame') |
1632 self.myeditor = None | 1632 self.myeditor = None |
1633 | 1633 |
1634 | 1634 |
1635 def on_drop(self,evt): | 1635 def on_drop(self,evt): |
1636 pass | 1636 pass |
2618 node_handler.__init__(self,xml_dom,tree_node) | 2618 node_handler.__init__(self,xml_dom,tree_node) |
2619 dnd3e_char_child.__init__(self,xml_dom,tree_node,parent) | 2619 dnd3e_char_child.__init__(self,xml_dom,tree_node,parent) |
2620 self.hparent = parent #a 1.5002 allow ability to run up tree. | 2620 self.hparent = parent #a 1.5002 allow ability to run up tree. |
2621 | 2621 |
2622 | 2622 |
2623 self.frame = open_rpg.get_component('frame') | 2623 self.frame = component.get('frame') |
2624 self.child_handlers = {} | 2624 self.child_handlers = {} |
2625 self.new_child_handler('spells','Spells',dnd3espells,'book') | 2625 self.new_child_handler('spells','Spells',dnd3espells,'book') |
2626 self.new_child_handler('divine','Divine Spells',dnd3edivine,'book') | 2626 self.new_child_handler('divine','Divine Spells',dnd3edivine,'book') |
2627 self.new_child_handler('powers','Powers',dnd3epowers,'book') | 2627 self.new_child_handler('powers','Powers',dnd3epowers,'book') |
2628 self.new_child_handler('pp','Power Points',dnd3epp,'gear') | 2628 self.new_child_handler('pp','Power Points',dnd3epp,'gear') |
2656 """ | 2656 """ |
2657 def __init__(self,xml_dom,tree_node,parent): | 2657 def __init__(self,xml_dom,tree_node,parent): |
2658 node_handler.__init__(self,xml_dom,tree_node) | 2658 node_handler.__init__(self,xml_dom,tree_node) |
2659 self.char_hander = parent | 2659 self.char_hander = parent |
2660 self.drag = False | 2660 self.drag = False |
2661 self.frame = open_rpg.get_component('frame') | 2661 self.frame = component.get('frame') |
2662 self.myeditor = None | 2662 self.myeditor = None |
2663 | 2663 |
2664 | 2664 |
2665 | 2665 |
2666 def on_drop(self,evt): | 2666 def on_drop(self,evt): |