## XIIIMP
Class XIIIMPDuckMessage

source: C:\XIII\XIIIMP\Classes\XIIIMPDuckMessage.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--Engine.LocalMessage
                |
                +--XIII.XIIILocalMessage
                   |
                   +--XIIIMP.XIIIMPDuckMessage

Direct Known Subclasses:None

class XIIIMPDuckMessage
extends XIII.XIIILocalMessage

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

Variables
`string` | `HasX,XPoints,XPoint`
`HasTheDuck,LoseTheDuck,` | `KillTheKKK`

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

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class XIIIMPDuckMessage extends XIIILocalMessage;
    00005
    00006	var localized string HasTheDuck,LoseTheDuck, KillTheKKK;
    00007	var localized string HasX,XPoints,XPoint;
    00008
    00009	//_____________________________________________________________________________
    00010
    00011	static function string GetString( optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject )
    00012	{
    00013	    local string NbPoint;
    00014
    00015	    NbPoint = string(switch);
    00016
    00017	    if( switch == -1 )
    00018	    {
    00019	        return RelatedPRI_1.PlayerName@Default.LoseTheDuck;
    00020	    }
    00021	    else if( switch == 0 )
    00022	    {
    00023	        if( RelatedPRI_1.PlayerName == "" )
    00024	            return "";
    00025	        else
    00026	            return RelatedPRI_1.PlayerName@Default.HasTheDuck;
    00027	    }
    00028	    else if( switch == 1 )
    00029	        return RelatedPRI_1.PlayerName@Default.HasX@NbPoint@Default.XPoint;
    00030	    else if( switch == -2 )
    00031	    {
    00032	        if( RelatedPRI_1.PlayerName == "" )
    00033	            return "";
    00034	        else
    00035	            return RelatedPRI_1.PlayerName@Default.KillTheKKK;
    00036	    }
    00037	    else
    00038	        return RelatedPRI_1.PlayerName@Default.HasX@NbPoint@Default.XPoints;
    00039	}
    00040
    00041	//_____________________________________________________________________________
    00042
    00043
    00044
    00045	defaultproperties
    00046	{
    00047	     HasTheDuck="has the Bird !"
    00048	     LoseTheDuck="Lose The Bird !"
    00049	     KillTheKKK="Killed The Death ! Bonus + 30"
    00050	     HasX="has"
    00051	     XPoints="Points !"
    00052	     XPoint="Point !"
    00053	     DrawColor=(B=210,G=252,R=255,A=230)
    00054	}

End Source Code