Exemple #1
0
	def __init__(self, PonyCardGame):
		State.__init__(self, PonyCardGame, 'main', 'main menu')
		self.addCommand('^(bits?)$', self.bits, 'display your [bits]')
		self.addCommand('^(username)$', self.username, 'display your [username]')
		self.addCommand('^(options?)$', self.options, 'go to the [options] menu')
		self.addCommand('^(exit|quit)$', self.exit, '[exit] the application')
		#self.addCommand('^(play)$', self.play, 'go to the [play] menu')
		#self.addCommand('^(adventures?|solo|solo adventures?)$', self.adventures, 'go to the [solo adventures] menu')
		#self.addCommand('^(the arena|arena)$', self.arena, 'go to [the arena] menu')
		#self.addCommand('^(tavern brawl|tavern|brawl)$', self.brawl, 'go to [tavern brawl] menu')
		#self.addCommand('^(quests?)$', self.quests, 'go to the [quests] menu')
		self.addCommand('^(shop)$', self.shop, 'go to the [shop] menu')
		self.addCommand('^(open|packs?|open packs?)$', self.packs, 'go to the \'open [packs]\' menu')
Exemple #2
0
	def __init__(self, PonyCardGame):
		State.__init__(self, PonyCardGame, 'packs', 'open packs menu')
		self.addCommand('^(back)$', self.back, 'go [back] to the main menu')
		self.addCommand('^(list packs?|list|packs?)$', self.listPacks, '[list] your unopened packs')
		self.addCommand('^(open all packs)$', self.openAllPacks, '[open all packs]')
		self.addCommand('^(open) ([0-9]+|all)? ?([a-z]+) (packs?)$', self.openPacks, '[open] a {number} of {pack name} [packs]')
	def __init__(self, PonyCardGame):
		State.__init__(self, PonyCardGame, 'tutorial')
Exemple #4
0
	def __init__(self, PonyCardGame):
		State.__init__(self, PonyCardGame, 'setup')
		self.setupdata = dict()
		self.setupdata['bits'] = 0
		self.setupdata['version'] = self.PonyCardGame.version
Exemple #5
0
	def __init__(self, PonyCardGame):
		State.__init__(self, PonyCardGame, 'options', 'options menu')
		self.addCommand('^(back)$', self.back, 'go [back] to the main menu')
		self.addCommand('^(credits?)$', self.credits, 'read the [credits]')
		self.addCommand('^(reset)$', self.reset, '[reset] the game')