Initial commit
[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
11 # initialize our character
12 def __init__ (self, startrow, startcol, position=LEFT, health=100, magic=10, experience=10, strength=10, gold=0, inventory = []):
13 self.position = position
14 self.row = startrow
15 self.col = startcol
16 self.magic = magic
17 self.experience = experience
18 self.strength = strength
19 self.health = health
20 self.inventory = inventory
21 self.gold = gold
22