# Main player Butaba class
+import constants
+
class Butaba:
- # Position definitions
- LEFT = 0
- RIGHT = 1
- FRONT = 2
- BACK = 3
- MAXITEMS = 8
- MAXHEALTH = 100
# initialize our character
- def __init__ (self, startrow, startcol, position=LEFT, health=100, magic=1, experience=1, strength=1, gold=0, inventory = []):
+ def __init__ (self, startrow, startcol, imageleft, imageright, imagefront, imageback, portrait,
+ position=constants.LEFT, health=100, magic=1, experience=1, strength=1, gold=0, inventory = []):
self.position = position
+ self.imageleft = imageleft
+ self.imageright = imageright
+ self.imagefront = imagefront
+ self.imageback = imageback
+ self.portrait = portrait
self.row = startrow
self.col = startcol
self.magic = magic