ca448830eb46095bbdae7ba46f7974731b3ceffc
[butaba-adventures.git] / butaba.py
1 # Main player Butaba class
2
3 class Butaba:
4 # Position definitions
5 LEFT = 0
6 RIGHT = 1
7 FRONT = 2
8 BACK = 3
9 MAXITEMS = 8
10 MAXHEALTH = 100
11
12 # initialize our character
13 def __init__ (self, startrow, startcol, position=LEFT, health=100, magic=1, experience=1, strength=1, gold=0, inventory = []):
14 self.position = position
15 self.row = startrow
16 self.col = startcol
17 self.magic = magic
18 self.experience = experience
19 self.strength = strength
20 self.health = health
21 self.objects = inventory
22 self.gold = gold