Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Item:
- def _init_(self, tak=False, ent=False, hos=False, bea="Omega Device", inf="A mysterious item.", sen="There is a mysterious item in the room.", tim=1000000):
- self.tak = tak
- self.usa = usa
- self.ent = ent
- self.hos = hos
- self.pre = False
- self.bea = bea
- self.inf = inf
- self.sen = sen
- self.tim = tim
- class Entrance(Item):
- def _init_(self, inf="A mysterious entrance.", sen="There is a mysterious entrance in the room."):
- self.inf = inf
- self.sen = sen
- self.ent = True
- class Enemy(Item):
- def _init_(self, inf="A mysterious enemy.", sen="There is a mysterious enemy in the room."):
- self.inf = inf
- self.hos = True
- self.tim = tim
- def alpha():
- print "Alpha"
- return
- def beta():
- print "Beta"
- return
- def gamma():
- print "Gamma"
- return
- def delta():
- print "Delta"
- return
- def omega():
- print "Omega"
- return
- def game():
- alpha()
- beta()
- gamma()
- delta()
- omega()
- # Time for some placeholder objects: A ball (item), castle gates (entrance), and a teacher (enemy).
- print "Initializing objects..."
- ball = Item()
- print "ball.tak = " + ball.tak
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement