Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/setup/level.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/level.py')
-rw-r--r--src/setup/level.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/setup/level.py b/src/setup/level.py
new file mode 100644
index 0000000..907d8bd
--- /dev/null
+++ b/src/setup/level.py
@@ -0,0 +1,31 @@
+'''
+
+'''
+from lxml import etree
+from utils import utils
+
+class LevelInfo(object):
+ '''
+ '''
+
+ def __init__(self, path):
+ '''
+ Constructor
+ '''
+
+ #open up the mlvl file and read in its basic properties
+ root = utils.getXMLRoot(path)
+ self.name = root.xpath('//level-info/@name')[0]
+ self.description = root.xpath('//level-info/@description')[0]
+ pass
+
+ def getName(self):
+ '''Gets the name of this level'''
+ return self.name
+
+ def getDescription(self):
+ '''Gets the description of this level'''
+ return self.description
+
+
+ \ No newline at end of file