示例#1
0
 def record(self, **kwargs):  # 记录玩家动作
     card_val = self.game_data.last_chu_card_val
     cards = [card_val]
     act_record = ActRecord(self.seat_id, Act.PENG, cards)
     self.game_data.act_record_list.append(act_record)
     self.players[self.seat_id].hand_card.record_peng_card(card_val)
     return 1
示例#2
0
 def record(self, seat_id, params, config_params):  # 记录玩家动作
     act_record = ActRecord(self.seat_id, Act.DIAN_HU,
                            [self.game_data.last_chu_card_val])
     self.game_data.act_record_list.append(act_record)
     self.players[self.seat_id].hand_card.record_dian_hu_card(
         self.game_data.last_chu_card_seat_id,
         self.game_data.last_chu_card_val)
     return 1
示例#3
0
 def record(self, **kwargs):           # 记录玩家动作
     cards = [self.bugang_cardval]
     act_record = ActRecord(self.seat_id, Act.BU_GANG, cards)
     self.game_data.act_record_list.append(act_record)
     self.players[self.seat_id].hand_card.record_bu_gang_card(self.bugang_cardval)
     return 1
示例#4
0
 def record(self, **kwargs):  # 记录玩家动作
     act_record = ActRecord(self.seat_id, Act.ZI_MO, [])
     self.game_data.act_record_list.append(act_record)
     return 1
示例#5
0
 def record(self, **kwargs):  # 记录玩家动作
     act_record = ActRecord(self.seat_id, Act.CHI, self.chi_group)
     self.game_data.act_record_list.append(act_record)
     self.players[self.seat_id].hand_card.record_chi_card(
         self.game_data.last_chu_card_val, self.used_cards)
     return 1
示例#6
0
文件: ting.py 项目: st199051/majiong
 def record(self, **kwargs):  # 记录玩家动作
     act_record = ActRecord(self.seat_id, Act.TING, self.chu_card_val)
     self.game_data.act_record_list.append(act_record)
     self.players[self.seat_id].hand_card.record_ting_info(
         self.chu_card_val, self.players[self.seat_id].ting_info)
     return 1
示例#7
0
文件: chu.py 项目: st199051/majiong
 def record(self, **kwargs):  # 记录玩家动作
     act_record = ActRecord(self.seat_id, Act.CHU, [self.chu_cardval])
     self.game_data.act_record_list.append(act_record)
     return 1