X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fbriskin5.phh;h=9701af918d46ac659ae73126c1e40e13064a6f7e;hb=ca4114fe5a3d9afe1d3b6861128fa96720f738f5;hp=068ea161d672a99ffe0d2ad3b009ecfe440f4fa6;hpb=66eaf1176bb114a40111960b5467201efef2b247;p=brisk.git
diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh
index 068ea16..9701af9 100644
--- a/web/briskin5/Obj/briskin5.phh
+++ b/web/briskin5/Obj/briskin5.phh
@@ -91,6 +91,8 @@ $mlang_bin5_bin5 = array(
'en' => ' The game worth %s.' ),
'info_yshuf'=> array( 'it' => 'Fai tu il mazzo, ',
'en' => 'It\'s your shuffled the cards, '),
+ 'info_match'=> array( 'it' => 'Il codice della partita è %d.',
+ 'en' => 'Match code is %d.'),
'btn_bkgame'=> array( 'it' => 'torna alla partita',
'en' => 'back to the game'),
'call_wptn' => array( 'it' => '
con %d punti',
@@ -180,6 +182,8 @@ class Bin5_table extends Table {
var $briscola;
var $friend; // the callee idx position at table
+ var $match_id; // the id of the match on the database (-1 == just not saved)
+
var $old_act; // last action that trigs the end of the game
var $old_mazzo;
var $old_reason;
@@ -217,6 +221,8 @@ class Bin5_table extends Table {
$thiz->friend = -1;
$thiz->turn = 0;
+ $thiz->match_id = -1;
+
$thiz->old_act = -1;
$thiz->old_mazzo = -1;
$thiz->old_reason = "";
@@ -257,6 +263,8 @@ class Bin5_table extends Table {
$thiz->briscola = $from->briscola;
$thiz->friend = $from->friend;
+ $thiz->match_id = $from->match_id;
+
$thiz->old_act = $from->old_act;
$thiz->old_mazzo = $from->old_mazzo;
$thiz->old_reason = $from->old_reason;
@@ -289,6 +297,9 @@ class Bin5_table extends Table {
$thiz->mazzo = rand(0,PLAYERS_N-1);
$thiz->points_n = 0;
$thiz->mult = 0;
+
+ $thiz->match_id = -1;
+
$thiz->old_asta_win = -1;
$thiz->old_reason = "";
@@ -553,7 +564,7 @@ class Bin5_table extends Table {
// return($pts);
break;
}
-
+
if ($pro >= $this->asta_pnt)
$sig = 1;
else
@@ -1795,6 +1806,10 @@ function show_table_info(&$bri, &$table, $table_pos)
$noty .= sprintf($mlang_bin5_bin5['info_mult'][$G_lang], multoval($multer) );
}
$noty .= "