DIR : /home/kozerus/public_html/dgs/tournaments/include/types/private_ladder.php
/home/kozerus/public_html/dgs/tournaments/include/types
<?php
/*
Dragon Go Server
Copyright (C) 2001- Erik Ouchterlony, Jens-Uwe Gaspar
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Author: Jens-Uwe Gaspar */
$TranslateGroups[] = "Tournament";
require_once 'tournaments/include/tournament_globals.php';
require_once 'tournaments/include/tournament_utils.php';
require_once 'tournaments/include/tournament_limits.php';
require_once 'tournaments/include/tournament_template_ladder.php';
require_once 'tournaments/include/tournament_properties.php';
require_once 'tournaments/include/tournament_rules.php';
require_once 'tournaments/include/tournament_ladder_props.php';
/*!
* \file private_ladder.php
*
* \brief Classes and functions to handle Ladder-typed tournament
*/
/*!
* \class PrivateLadderTournament
*
* \brief Template-pattern for private Ladder-tournament
*/
class PrivateLadderTournament extends TournamentTemplateLadder
{
public function __construct()
{
parent::__construct( TOURNEY_WIZTYPE_PRIVATE_LADDER,
T_('Private Ladder#tourney'), TOURNEY_TITLE_GAME_RESTRICTION|TOURNEY_TITLE_INVITE_ONLY );
// overwrite tournament-type-specific properties
//$this->need_admin_create_tourney = false;
$this->limits->setLimits( TLIMITS_MAX_TP, false, 2, 100 );
$this->limits->setLimits( TLIMITS_TL_MAX_DF, false, 0, 5 );
$this->limits->setLimits( TLIMITS_TL_MAX_CH, false, 1, 5 );
}
public function createTournament()
{
global $player_row;
$tourney = $this->make_tournament( TOURNEY_SCOPE_PRIVATE,
sprintf( T_('%s\'s Private Ladder#tourney'), $player_row['Handle'] ) );
$tprops = new TournamentProperties();
$tprops->MinParticipants = 0;
$tprops->MaxParticipants = 50;
$trules = new TournamentRules();
$tl_props = new TournamentLadderProps();
$tl_props->ChallengeRangeAbsolute = 10;
$tl_props->MaxChallenges = 3;
$tl_props->MaxDefenses = 3;
return $this->_createTournament( $tourney, $tprops, $trules, $tl_props );
}//createTournament
} // end of 'PrivateLadderTournament'
?>
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer