pywargame 0.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pywargame/__init__.py +2 -0
- pywargame/common/__init__.py +3 -0
- pywargame/common/collector.py +87 -0
- pywargame/common/dicedraw.py +363 -0
- pywargame/common/drawdice.py +40 -0
- pywargame/common/singleton.py +22 -0
- pywargame/common/test.py +25 -0
- pywargame/common/verbose.py +59 -0
- pywargame/common/verboseguard.py +53 -0
- pywargame/cyberboard/__init__.py +18 -0
- pywargame/cyberboard/archive.py +283 -0
- pywargame/cyberboard/base.py +63 -0
- pywargame/cyberboard/board.py +462 -0
- pywargame/cyberboard/cell.py +200 -0
- pywargame/cyberboard/collect.py +49 -0
- pywargame/cyberboard/collectgbx0pwd.py +30 -0
- pywargame/cyberboard/collectgbxext.py +30 -0
- pywargame/cyberboard/collectgsnexp.py +32 -0
- pywargame/cyberboard/collectgsnext.py +30 -0
- pywargame/cyberboard/draw.py +396 -0
- pywargame/cyberboard/exporter.py +1132 -0
- pywargame/cyberboard/extractor.py +240 -0
- pywargame/cyberboard/features.py +17 -0
- pywargame/cyberboard/gamebox.py +81 -0
- pywargame/cyberboard/gbxexp.py +76 -0
- pywargame/cyberboard/gbxext.py +64 -0
- pywargame/cyberboard/gsnexp.py +147 -0
- pywargame/cyberboard/gsnext.py +59 -0
- pywargame/cyberboard/head.py +111 -0
- pywargame/cyberboard/image.py +76 -0
- pywargame/cyberboard/main.py +47 -0
- pywargame/cyberboard/mark.py +102 -0
- pywargame/cyberboard/palette.py +36 -0
- pywargame/cyberboard/piece.py +169 -0
- pywargame/cyberboard/player.py +36 -0
- pywargame/cyberboard/scenario.py +115 -0
- pywargame/cyberboard/testgrid.py +156 -0
- pywargame/cyberboard/tile.py +121 -0
- pywargame/cyberboard/tray.py +68 -0
- pywargame/cyberboard/windows.py +41 -0
- pywargame/cyberboard/zeropwd.py +45 -0
- pywargame/cyberboard.py +2728 -0
- pywargame/gbx0pwd.py +2776 -0
- pywargame/gbxextract.py +2795 -0
- pywargame/gsnexport.py +16499 -0
- pywargame/gsnextract.py +2790 -0
- pywargame/latex/__init__.py +2 -0
- pywargame/latex/collect.py +34 -0
- pywargame/latex/latexexporter.py +4010 -0
- pywargame/latex/main.py +184 -0
- pywargame/vassal/__init__.py +66 -0
- pywargame/vassal/base.py +139 -0
- pywargame/vassal/board.py +243 -0
- pywargame/vassal/buildfile.py +60 -0
- pywargame/vassal/chart.py +79 -0
- pywargame/vassal/chessclock.py +197 -0
- pywargame/vassal/collect.py +98 -0
- pywargame/vassal/collectpatch.py +28 -0
- pywargame/vassal/command.py +21 -0
- pywargame/vassal/documentation.py +322 -0
- pywargame/vassal/dumpcollect.py +28 -0
- pywargame/vassal/dumpvsav.py +28 -0
- pywargame/vassal/element.py +439 -0
- pywargame/vassal/exporter.py +89 -0
- pywargame/vassal/extension.py +101 -0
- pywargame/vassal/folder.py +103 -0
- pywargame/vassal/game.py +940 -0
- pywargame/vassal/gameelements.py +1091 -0
- pywargame/vassal/globalkey.py +127 -0
- pywargame/vassal/globalproperty.py +433 -0
- pywargame/vassal/grid.py +573 -0
- pywargame/vassal/map.py +1061 -0
- pywargame/vassal/mapelements.py +1020 -0
- pywargame/vassal/merge.py +57 -0
- pywargame/vassal/merger.py +460 -0
- pywargame/vassal/moduledata.py +275 -0
- pywargame/vassal/mrgcollect.py +31 -0
- pywargame/vassal/patch.py +44 -0
- pywargame/vassal/patchcollect.py +28 -0
- pywargame/vassal/player.py +83 -0
- pywargame/vassal/save.py +495 -0
- pywargame/vassal/skel.py +380 -0
- pywargame/vassal/trait.py +224 -0
- pywargame/vassal/traits/__init__.py +36 -0
- pywargame/vassal/traits/area.py +50 -0
- pywargame/vassal/traits/basic.py +35 -0
- pywargame/vassal/traits/calculatedproperty.py +22 -0
- pywargame/vassal/traits/cargo.py +29 -0
- pywargame/vassal/traits/click.py +41 -0
- pywargame/vassal/traits/clone.py +28 -0
- pywargame/vassal/traits/delete.py +24 -0
- pywargame/vassal/traits/deselect.py +32 -0
- pywargame/vassal/traits/dynamicproperty.py +112 -0
- pywargame/vassal/traits/globalcommand.py +55 -0
- pywargame/vassal/traits/globalhotkey.py +26 -0
- pywargame/vassal/traits/globalproperty.py +54 -0
- pywargame/vassal/traits/hide.py +67 -0
- pywargame/vassal/traits/label.py +76 -0
- pywargame/vassal/traits/layer.py +105 -0
- pywargame/vassal/traits/mark.py +20 -0
- pywargame/vassal/traits/mask.py +85 -0
- pywargame/vassal/traits/mat.py +26 -0
- pywargame/vassal/traits/moved.py +35 -0
- pywargame/vassal/traits/movefixed.py +51 -0
- pywargame/vassal/traits/nonrect.py +95 -0
- pywargame/vassal/traits/nostack.py +55 -0
- pywargame/vassal/traits/place.py +104 -0
- pywargame/vassal/traits/prototype.py +20 -0
- pywargame/vassal/traits/report.py +34 -0
- pywargame/vassal/traits/restrictaccess.py +28 -0
- pywargame/vassal/traits/restrictcommand.py +32 -0
- pywargame/vassal/traits/return.py +40 -0
- pywargame/vassal/traits/rotate.py +62 -0
- pywargame/vassal/traits/sendto.py +59 -0
- pywargame/vassal/traits/sheet.py +129 -0
- pywargame/vassal/traits/skel.py +9 -0
- pywargame/vassal/traits/stack.py +28 -0
- pywargame/vassal/traits/submenu.py +27 -0
- pywargame/vassal/traits/trail.py +61 -0
- pywargame/vassal/traits/trigger.py +72 -0
- pywargame/vassal/turn.py +272 -0
- pywargame/vassal/upgrade.py +191 -0
- pywargame/vassal/vmod.py +323 -0
- pywargame/vassal/vsav.py +100 -0
- pywargame/vassal/widget.py +358 -0
- pywargame/vassal/withtraits.py +634 -0
- pywargame/vassal/xml.py +4 -0
- pywargame/vassal/zone.py +399 -0
- pywargame/vassal.py +12500 -0
- pywargame/vmodpatch.py +12548 -0
- pywargame/vsavdump.py +12533 -0
- pywargame/vslmerge.py +13015 -0
- pywargame/wgexport.py +16689 -0
- pywargame/ztexport.py +14351 -0
- pywargame/zuntzu/__init__.py +5 -0
- pywargame/zuntzu/base.py +82 -0
- pywargame/zuntzu/collect.py +38 -0
- pywargame/zuntzu/countersheet.py +250 -0
- pywargame/zuntzu/dicehand.py +48 -0
- pywargame/zuntzu/exporter.py +936 -0
- pywargame/zuntzu/gamebox.py +154 -0
- pywargame/zuntzu/map.py +36 -0
- pywargame/zuntzu/piece.py +37 -0
- pywargame/zuntzu/scenario.py +208 -0
- pywargame/zuntzu/ztexp.py +115 -0
- pywargame-0.3.1.dist-info/METADATA +353 -0
- pywargame-0.3.1.dist-info/RECORD +150 -0
- pywargame-0.3.1.dist-info/WHEEL +5 -0
- pywargame-0.3.1.dist-info/licenses/LICENSE +5 -0
- pywargame-0.3.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,103 @@
|
|
1
|
+
## BEGIN_IMPORT
|
2
|
+
from common import VerboseGuard
|
3
|
+
from . base import *
|
4
|
+
from . element import Element
|
5
|
+
## END_IMPORT
|
6
|
+
|
7
|
+
class BaseFolder(Element):
|
8
|
+
UNIQUE = ['name']
|
9
|
+
|
10
|
+
def __init__(self,parent,tag,node=None,name='',description='',**kwargs):
|
11
|
+
'''Create a folder'''
|
12
|
+
super().__init__(parent,
|
13
|
+
tag,
|
14
|
+
node = node,
|
15
|
+
name = name,
|
16
|
+
desc = description,
|
17
|
+
**kwargs)
|
18
|
+
|
19
|
+
# --------------------------------------------------------------------
|
20
|
+
class GlobalPropertyFolder(BaseFolder):
|
21
|
+
TAG = Element.FOLDER+'GlobalPropertySubFolder'
|
22
|
+
def __init__(self,
|
23
|
+
parent,
|
24
|
+
node=None,
|
25
|
+
name='',
|
26
|
+
description=''):
|
27
|
+
super().__init__(parent,
|
28
|
+
tag = self.TAG,
|
29
|
+
node = node,
|
30
|
+
name = name,
|
31
|
+
description = description)
|
32
|
+
|
33
|
+
registerElement(GlobalPropertyFolder)
|
34
|
+
|
35
|
+
# --------------------------------------------------------------------
|
36
|
+
class DeckFolder(BaseFolder):
|
37
|
+
TAG = Element.FOLDER+'DeckSubFolder'
|
38
|
+
def __init__(self,
|
39
|
+
parent,
|
40
|
+
node=None,
|
41
|
+
name='',
|
42
|
+
description=''):
|
43
|
+
super().__init__(parent,
|
44
|
+
tag = self.TAG,
|
45
|
+
node = node,
|
46
|
+
name = name,
|
47
|
+
description = description)
|
48
|
+
|
49
|
+
registerElement(DeckFolder)
|
50
|
+
|
51
|
+
# --------------------------------------------------------------------
|
52
|
+
class MapFolder(BaseFolder):
|
53
|
+
TAG = Element.FOLDER+'MapSubFolder'
|
54
|
+
def __init__(self,
|
55
|
+
parent,
|
56
|
+
node=None,
|
57
|
+
name='',
|
58
|
+
description=''):
|
59
|
+
super().__init__(parent,
|
60
|
+
tag = self.TAG,
|
61
|
+
node = node,
|
62
|
+
name = name,
|
63
|
+
description = description)
|
64
|
+
|
65
|
+
registerElement(MapFolder)
|
66
|
+
|
67
|
+
# --------------------------------------------------------------------
|
68
|
+
class ModuleFolder(BaseFolder):
|
69
|
+
TAG = Element.FOLDER+'ModuleSubFolder'
|
70
|
+
def __init__(self,
|
71
|
+
parent,
|
72
|
+
node=None,
|
73
|
+
name='',
|
74
|
+
description=''):
|
75
|
+
super().__init__(parent,
|
76
|
+
tag = self.TAG,
|
77
|
+
node = node,
|
78
|
+
name = name,
|
79
|
+
description = description)
|
80
|
+
|
81
|
+
registerElement(ModuleFolder)
|
82
|
+
|
83
|
+
# --------------------------------------------------------------------
|
84
|
+
class PrototypeFolder(BaseFolder):
|
85
|
+
TAG = Element.FOLDER+'PrototypeSubFolder'
|
86
|
+
def __init__(self,
|
87
|
+
parent,
|
88
|
+
node=None,
|
89
|
+
name='',
|
90
|
+
description=''):
|
91
|
+
super().__init__(parent,
|
92
|
+
tag = self.TAG,
|
93
|
+
node = node,
|
94
|
+
name = name,
|
95
|
+
description = description)
|
96
|
+
|
97
|
+
registerElement(PrototypeFolder)
|
98
|
+
|
99
|
+
# --------------------------------------------------------------------
|
100
|
+
#
|
101
|
+
# EOF
|
102
|
+
#
|
103
|
+
|