## XIII
Class XIIIMultiMessage

source: C:\XIII\XIII\Classes\XIIIMultiMessage.uc

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

Direct Known Subclasses:None

class XIIIMultiMessage
extends Engine.GameMessage

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Variables
`string` | `GlobalNameChange`
`string` | `LeftMessage`
`string` | `WelcomeMessage`
`sOneFragLeft,` | `sOneMinuteLeft`
`string` | `sOverTimeMessage`

Function Summary
`string` | `GetString(optional int, optional PlayerReplicationInfo, optional PlayerReplicationInfo, optional Object)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class XIIIMultiMessage extends GameMessage;
    00005
    00006	var localized string WelcomeMessage;
    00007	var localized string GlobalNameChange;
    00008	var localized string LeftMessage;
    00009	var localized string sOverTimeMessage;
    00010	var localized string sOneFragLeft, sOneMinuteLeft;
    00011
    00012	//_____________________________________________________________________________
    00013	static function string GetString( optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject )
    00014	{
    00015	    switch (Switch)
    00016	    {
    00017	      case 0:
    00018	        return Default.sOverTimeMessage;
    00019	        break;
    00020	      case 1: // Welcome Message
    00021	        if (RelatedPRI_1 == None)
    00022	          return "";
    00023	        return RelatedPRI_1.playername@default.WelcomeMessage;
    00024	        break;
    00025	      case 2: // Changing Name Message
    00026	        if (RelatedPRI_1 == None)
    00027	          return "";
    00028	        return RelatedPRI_1.OldName@Default.GlobalNameChange@RelatedPRI_1.PlayerName;
    00029	        break;
    00030	      case 4: // Leaving game Message
    00031	        if (RelatedPRI_1 == None)
    00032	          return "";
    00033	        return RelatedPRI_1.playername@Default.LeftMessage;
    00034	        break;
    00035	      case 5: // 1 frag left
    00036	        if (RelatedPRI_1 == None)
    00037	          return "";
    00038	        return RelatedPRI_1.playername@Default.sOneFragLeft;
    00039	        break;
    00040	      case 6: // 1 minute left
    00041	        return Default.sOneMinuteLeft;
    00042	        break;
    00043	    }
    00044	    return default.class$" ERR::RECEIVED GetString with wrong or undefined Params "$switch;
    00045	}
    00046
    00047
    00048
    00049	defaultproperties
    00050	{
    00051	     WelcomeMessage="Entered the game"
    00052	     GlobalNameChange="changed name to"
    00053	     LeftMessage="left the game."
    00054	     sOverTimeMessage="Tie, Sudden Death !"
    00055	     sOneFragLeft=": One frag left"
    00056	     sOneMinuteLeft="One minute left"
    00057	     Lifetime=6
    00058	     DrawColor=(B=210,G=252,A=230)
    00059	}

End Source Code