## Engine
Class GameMessage

source: C:\XIII\Engine\Classes\GameMessage.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--Engine.LocalMessage
                |
                +--Engine.GameMessage

Direct Known Subclasses:XIIIMultiMessage

class GameMessage
extends Engine.LocalMessage

Variables
`string` | `EnteredMessage`
`string` | `FailedPlaceMessage`
`string` | `FailedSpawnMessage`
`string` | `FailedTeamMessage`
`string` | `GlobalNameChange`
`string` | `LeftMessage`
`string` | `NewTeamMessage`
`string` | `NewTeamMessageTrailer`
`string` | `NoNameChange`
`string` | `OvertimeMessage`
`string` | `SwitchLevelMessage`

Function Summary
`string` | `GetString(optional int, optional PlayerReplicationInfo, optional PlayerReplicationInfo, optional Object)`
    //
    // Messages common to GameInfo derivatives.
    //

Source Code

    00001	class GameMessage extends LocalMessage;
    00002
    00003	var localized string	      SwitchLevelMessage;
    00004	var localized string	      LeftMessage;
    00005	var localized string	      FailedTeamMessage;
    00006	var localized string	      FailedPlaceMessage;
    00007	var localized string	      FailedSpawnMessage;
    00008	var localized string	      EnteredMessage;
    00009	var	localized string	      MaxedOutMessage;
    00010	var localized string OvertimeMessage;
    00011	var localized string GlobalNameChange;
    00012	var localized string NewTeamMessage;
    00013	var localized string NewTeamMessageTrailer;
    00014	var localized string	NoNameChange;
    00015
    00016	//
    00017	// Messages common to GameInfo derivatives.
    00018	//
    00019	static function string GetString(
    00020		optional int Switch,
    00021		optional PlayerReplicationInfo RelatedPRI_1,
    00022		optional PlayerReplicationInfo RelatedPRI_2,
    00023		optional Object OptionalObject
    00024		)
    00025	{
    00026		switch (Switch)
    00027		{
    00028			case 0:
    00029				return Default.OverTimeMessage;
    00030				break;
    00031			case 1:
    00032				if (RelatedPRI_1 == None)
    00033					return "";
    00034
    00035				return RelatedPRI_1.playername$Default.EnteredMessage;
    00036				break;
    00037			case 2:
    00038				if (RelatedPRI_1 == None)
    00039					return "";
    00040
    00041				return RelatedPRI_1.OldName@Default.GlobalNameChange@RelatedPRI_1.PlayerName;
    00042				break;
    00043			case 3:
    00044				if (RelatedPRI_1 == None)
    00045					return "";
    00046				if (OptionalObject == None)
    00047					return "";
    00048
    00049				return RelatedPRI_1.playername@Default.NewTeamMessage@TeamInfo(OptionalObject).TeamName$Default.NewTeamMessageTrailer;
    00050				break;
    00051			case 4:
    00052				if (RelatedPRI_1 == None)
    00053					return "";
    00054
    00055				return RelatedPRI_1.playername$Default.LeftMessage;
    00056				break;
    00057			case 5:
    00058				return Default.SwitchLevelMessage;
    00059				break;
    00060			case 6:
    00061				return Default.FailedTeamMessage;
    00062				break;
    00063			case 7:
    00064				return Default.MaxedOutMessage;
    00065				break;
    00066			case 8:
    00067				return Default.NoNameChange;
    00068				break;
    00069		}
    00070		return "";
    00071	}
    00072
    00073	defaultproperties
    00074	{
    00075	     SwitchLevelMessage="Switching Levels"
    00076	     LeftMessage=" left the game."
    00077	     FailedTeamMessage="Could not find team for player"
    00078	     FailedPlaceMessage="Could not find a starting spot"
    00079	     FailedSpawnMessage="Could not spawn player"
    00080	     EnteredMessage=" entered the game."
    00081	     MaxedOutMessage="Server is already at capacity."
    00082	     OvertimeMessage="Score tied at the end of regulation. Sudden Death Overtime!!!"
    00083	     GlobalNameChange="changed name to"
    00084	     NewTeamMessage="is now on"
    00085	     NoNameChange="Name is already in use."
    00086	}

End Source Code