blob: 907d8bda52682302e8b16a5cb8911802ee3b6811 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|