The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE2:GameStats (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> Actor >> Info >> GameStats
Package: 
Engine
Direct subclass:
MasterServerGameStats
This class in other games:
UE2Runtime, U2, UT2003

Class: Engine.GameStats Parent: Engine.Info

the GameStats object is used to send individual stat events to the stats server. Each game should spawn a GameStats object if it wishes to have stat logging.

Properties

bLocalLog

Type: bool

Modifiers: globalconfig

create local stat logs

bShowBots

Type: bool


GRI

Type: GameReplicationInfo


LogFileName

Type: string

Modifiers: globalconfig

filename to use, check GetLogFilename() for replacements

Default value: "Stats_%P_%Y_%M_%D_%H_%I_%S"

Tab

Type: string


TempLog

Type: FileLog


Functions

Native functions

GetMapFileName

native final function string GetMapFileName ()


GetStatsIdentifier

native final function string GetStatsIdentifier (Controller C)


Events

Destroyed

event Destroyed ()

Overrides: Actor.Destroyed


PostBeginPlay

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


Other instance functions

ConnectEvent

function ConnectEvent (PlayerReplicationInfo Who)


DisconnectEvent

function DisconnectEvent (PlayerReplicationInfo Who)


EndGame

function EndGame (string Reason)


FullTimeDate

function string FullTimeDate ()


GameEvent

function GameEvent (string GEvent, string Desc, PlayerReplicationInfo Who)


GetLogFilename

function string GetLogFilename ()

return the filename to use for the log file. The following formatting rules are accepted: %P server port %Y year %M month %D day %H hour %I minute %S second %W day of the week

Header

function string Header ()


Init

function Init ()


KillEvent

function KillEvent (string Killtype, PlayerReplicationInfo Killer, PlayerReplicationInfo Victim, class<DamageTypeDamage)


Logf

function Logf (string LogString)


MapName

function string MapName ()


NewGame

function NewGame ()


ScoreEvent

function ScoreEvent (PlayerReplicationInfo Who, float Points, string Desc)


ServerInfo

function ServerInfo ()


Shutdown

function Shutdown ()


SpecialEvent

function SpecialEvent (PlayerReplicationInfo Who, string Desc)


StartGame

function StartGame ()


TeamScoreEvent

function TeamScoreEvent (int Team, float Points, string Desc)


TimeStamp

function string TimeStamp ()


TimeZone

function string TimeZone ()