Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Botpack.Ladder


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
//=============================================================================
// Ladder
// A ladder game ladder.
//=============================================================================
class Ladder extends Info
    abstract
    config(user);

var() int           Matches;                        // # of matches in ladder.
var() bool          bTeamGame;                      // TeamGame ladder?
var() localized string      Titles[9];                      // Ranking titles.
var() string        MapPrefix;                      // Match map prefix.

// 32 Matches
var() string        Maps[32];                       // Match map.
var() string        MapAuthors[32];                 // Map authors.
var() localized string      MapTitle[32];                   // Map title.
var() localized string      MapDescription[32];             // Map description.
var() int           RankedGame[32];                 // Rank to award upon completion.
var() int           GoalTeamScore[32];              // Match goalteamscore.
var() int           FragLimits[32];                 // Match fraglimit.
var() int           TimeLimits[32];                 // Match timelimit.
var() string        MatchInfo[32];                  // BotConfig to use for each game
                                                    // The botconfig has all the info about
                                                    // individual bots in this match
var() int           DemoDisplay[32];                // This match is for demo display only.

var() class<RatedTeamInfo> LadderTeams[32];         // Teams that can be fought in this ladder
var() int           NumTeams;                       // Number of LadderTeams

var   globalconfig bool HasBeatenGame;

static function Class<RatedMatchInfo> GetMatchConfigType(int Index)
{
    return Class<RatedMatchInfo>(DynamicLoadObject(Default.MatchInfo[Index], class'Class'));
}

static function string GetMap( int Index )
{
    return Default.Maps[Index];
}

static function string GetAuthor( int Index )
{
    return Default.MapAuthors[Index];
}

static function string GetMapTitle( int Index )
{
    return Default.MapTitle[Index];
}

static function string GetDesc( int Index )
{
    return Default.MapDescription[Index];
}

static function string GetRank( int Index )
{
    return Default.Titles[Index];
}

static function int GetFragLimit( int Index )
{
    return Default.FragLimits[Index];
}

static function int GetGoalTeamScore( int Index )
{
    return Default.GoalTeamScore[Index];
}

defaultproperties
{
     Titles(0)="Untrained"
     Titles(1)="Contender"
     Titles(2)="Light Weight"
     Titles(3)="Heavy Weight"
     Titles(4)="Warlord"
     Titles(5)="Battle Master"
     Titles(6)="Champion"
     LadderTeams(0)=Class'Botpack.RatedTeamInfo1'
     LadderTeams(1)=Class'Botpack.RatedTeamInfo2'
     LadderTeams(2)=Class'Botpack.RatedTeamInfo3'
     LadderTeams(3)=Class'Botpack.RatedTeamInfo4'
     LadderTeams(4)=Class'Botpack.RatedTeamInfo5'
     LadderTeams(5)=Class'Botpack.RatedTeamInfo6'
     LadderTeams(6)=Class'Botpack.RatedTeamInfoS'
     LadderTeams(7)=Class'Botpack.RatedTeamInfoDemo1'
     LadderTeams(8)=Class'Botpack.RatedTeamInfoDemo2'
     NumTeams=7
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Do 19.5.2005 19:42:14.000 - Creation time: Fr 7.6.2013 13:15:48.611 - Created with UnCodeX