log_main("bunch_make end");
}
- function init(&$userarr)
+ function init($userarr)
{
/* MOVED INTO SPAWN
$this->mazzo = rand(0,PLAYERS_N-1);
*/
for ($i = 0 ; $i < BRISKIN5_PLAYERS_N ; $i++) {
$this->total[$i] = 0;
- $user_cur = &$userarr[$this->player[$i]];
+ $user_cur = $userarr[$this->player[$i]];
$user_cur->exitislock = TRUE;
}
log_main("table::init: ci siamo");
}
- function game_init(&$userarr)
+ function game_init($userarr)
{
log_rd2("GSTART 4");
for ($i = 0 ; $i < BRISKIN5_PLAYERS_N ; $i++) {
$this->asta_pla[$i] = TRUE;
- $user_cur = &$userarr[$this->player[$i]];
+ $user_cur = $userarr[$this->player[$i]];
$user_cur->subst = 'asta';
$user_cur->asta_card = -2;
$user_cur->asta_pnt = -1;
}
- function exitlock_show(&$userarr, $table_pos)
+ function exitlock_show($userarr, $table_pos)
{
- $ct = $this->exitlock_calc(&$userarr, $table_pos);
+ $ct = $this->exitlock_calc($userarr, $table_pos);
$ret = sprintf('exitlock_show(%d, %s);', $ct,
($userarr[$this->player[$table_pos]]->exitislock ? 'true' : 'false'));
exit;
}
- $user =& $room->user;
- $table =& $room->table[$table_idx];
+ $user = $room->user;
+ $table = $room->table[$table_idx];
log_wr("Briskin5 constructor");
for ($i = 0 ; $i < $table->player_n ; $i++) {
$user[$table->player[$i]]->table_token = $table_token;
- $this->user[$i] =& User_briskin5::spawn(&$user[$table->player[$i]], $table_idx, $i);
+ $this->user[$i] =& User_briskin5::spawn($user[$table->player[$i]], $table_idx, $i);
}
$this->table[0] =& Table_briskin5::spawn(&$table);
if ($force || $this->garbage_timeout < $curtime) {
for ($i = 0 ; $i < BRISKIN5_MAX_PLAYERS ; $i++) {
- $user_cur = &$this->user[$i];
+ $user_cur = $this->user[$i];
if ($user_cur->sess == "" ||
($user_cur->stat == 'table' && ($user_cur->subst == 'shutdowned' || $user_cur->subst == 'shutdowner')))
continue;
}
// $user->bantime = $user->laccwr + BAN_TIME;
- $this->table_wakeup(&$user_cur);
+ $this->table_wakeup($user_cur);
}
}
}
}
- function chatt_send(&$user, $mesg)
+ function chatt_send($user, $mesg)
{
GLOBAL $mlang_brisk, $G_lang;
// update local graph
// update remote graphs
for ($i = 0 ; $i < BRISKIN5_MAX_PLAYERS ; $i++) {
- $user_cur = &$this->user[$i];
+ $user_cur = $this->user[$i];
// if ($user_cur->sess == '' || $user_cur->stat != 'room')
if ($user_cur->sess == '')
continue;
}
}
- function table_wakeup(&$user)
+ function table_wakeup($user)
{
$table = &$this->table[0];
function show_table(&$room, &$user, $sendstep, $is_transition, $is_again)
{
$table_idx = $user->table;
- $table = &$room->table[$table_idx];
+ $table = $room->table[$table_idx];
$table_pos = $user->table_pos;
$ret = "table_init();";
GLOBAL $G_lang, $mlang_bin5_bin5;
$ret = "";
- $user = &$room->user[$table->player[$table_pos]];
+ $user = $room->user[$table->player[$table_pos]];
$pnt_min = $table->points_n - MAX_POINTS < 0 ? 0 : $table->points_n - MAX_POINTS;
$noty = sprintf('<table class=\"points\"><tr><th></th>');
}
}
-function log_points($curtime, &$user, $where, $mesg)
+function log_points($curtime, $user, $where, $mesg)
{
GLOBAL $_SERVER;