コード例 #1
0
 def pick_up(self, message, item):
     print 'picking up'
     if quest.users_turn(message.sender.nick) and quest.status == 'started':
         response = quest.pick_up(item)
         print 'response to pick up is {0}'.format(response)
         self.reply(message, response)
コード例 #2
0
 def use(self, message, item):
     print 'using'
     if quest.users_turn(message.sender.nick) and quest.status == 'started':
         response = quest.use(item)
         print 'response to use is {0}'.format(response)
         self.reply(message, response)
コード例 #3
0
 def attack(self, message, monster):
     print 'attacking'
     if quest.users_turn(message.sender.nick) and quest.status == 'started':
         response = quest.attack(monster)
         print 'response to atack is {0}'.format(response)
         self.reply(message, response)
コード例 #4
0
 def move_north(self, message):
     if quest.users_turn(message.sender.nick) and quest.status == 'started':
         response = quest.move_north(message)
         print 'response from move north {0}'.format(response)
         self.reply(message, response)
コード例 #5
0
 def move_west(self, message):
     if quest.users_turn(message.sender.nick) and quest.status == 'started':
         response = quest.move_west(message)
         self.reply(message, response)
コード例 #6
0
ファイル: quest.py プロジェクト: csudcy/my-will
 def pick_up(self, message, item):
     print 'picking up'
     if quest.users_turn(message.sender.nick) and quest.status == 'started':
         response = quest.pick_up(item)
         print 'response to pick up is {0}'.format(response)
         self.reply(message, response)
コード例 #7
0
ファイル: quest.py プロジェクト: csudcy/my-will
 def attack(self, message, monster):
     print 'attacking'
     if quest.users_turn(message.sender.nick) and quest.status == 'started':
         response = quest.attack(monster)
         print 'response to atack is {0}'.format(response)
         self.reply(message, response)
コード例 #8
0
ファイル: quest.py プロジェクト: csudcy/my-will
 def use(self, message, item):
     print 'using'
     if quest.users_turn(message.sender.nick) and quest.status == 'started':
         response = quest.use(item)
         print 'response to use is {0}'.format(response)
         self.reply(message, response)
コード例 #9
0
ファイル: quest.py プロジェクト: csudcy/my-will
 def move_west(self, message):
     if quest.users_turn(message.sender.nick) and quest.status == 'started':
         response = quest.move_west(message)
         self.reply(message, response)
コード例 #10
0
ファイル: quest.py プロジェクト: csudcy/my-will
 def move_north(self, message):
     if quest.users_turn(message.sender.nick) and quest.status == 'started':
         response = quest.move_north(message)
         print 'response from move north {0}'.format(response)
         self.reply(message, response)