var $old_asta_pnt;
var $old_mult;
var $old_pnt;
- var $old_win;
+ var $old_asta_win;
var $old_friend;
function Bin5_table()
$thiz->old_asta_pnt = -1;
$thiz->old_mult = -1;
$thiz->old_pnt = -1;
- $thiz->old_win = -1;
+ $thiz->old_asta_win = -1;
$thiz->old_friend = -1;
return ($thiz);
$thiz->old_asta_pnt = $from->old_asta_pnt;
$thiz->old_mult = $from->mult;
$thiz->old_pnt = $from->old_pnt;
- $thiz->old_win = $from->old_win;
+ $thiz->old_asta_win = $from->old_asta_win;
$thiz->old_friend = $from->old_friend;
return ($thiz);
$thiz->mazzo = rand(0,PLAYERS_N-1);
$thiz->points_n = 0;
$thiz->mult = 0;
- $thiz->old_win = -1;
+ $thiz->old_asta_win = -1;
$thiz->old_reason = "";
// players are rearranged in an dedicated array
for ($i = 0 ; $i < $from->player_n ; $i++)
$thiz->player[$i] = $i;
- log_main("TABLE_OLD_WIN - spawn:".$thiz->old_win);
+ log_main("TABLE_OLD_WIN - spawn:".$thiz->old_asta_win);
return ($thiz);
}
$this->mazzo = rand(0,PLAYERS_N-1);
$this->points_n = 0;
$this->mult = 0;
- $this->old_win = -1;
+ $this->old_asta_win = -1;
$this->old_reason = "";
*/
for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) {
}
$this->table[0] = Bin5_table::spawn(&$table);
- log_main("TABLE_OLD_WIN - Bin5:".$this->table[0]->old_win);
+ log_main("TABLE_OLD_WIN - Bin5:".$this->table[0]->old_asta_win);
$this->table_idx = $table_idx;
$this->table_token = $table_token;
$table->asta_pnt = 61;
$table->old_reason = "";
- $table->old_win = $table->asta_win;
+ $table->old_asta_win = $table->asta_win;
$table->old_friend = $table->friend;
$table->old_asta_pnt = $table->asta_pnt;
$table->old_mult = $table->mult;
$noty .= sprintf("<hr><b>%s</b><br>", xcape($table->old_reason));
}
- if ($table->old_win != -1) {
- log_main("TABLE_OLD_WIN:".$table->old_win);
- $win = $table->player[$table->old_win];
+ if ($table->old_asta_win != -1) {
+ log_main("TABLE_OLD_WIN:".$table->old_asta_win);
+ $win = $table->player[$table->old_asta_win];
log_main("TABLE_OLD_FRIEND:".$table->old_friend);
$fri = $table->player[$table->old_friend];