## XIII
Class XIIIDialogMessage

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

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

Direct Known Subclasses:None

class XIIIDialogMessage
extends XIII.XIIILocalMessage

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

Variables
`sEnoughAmmo,` | `sCantClimb`

Function Summary
`Texture` | `GetIcon(optional int, optional PlayerReplicationInfo, optional PlayerReplicationInfo, optional Object)`
    //_____________________________________________________________________________
    // ::TODO:: Should return the icon for the character speaking
    static
`string` | `GetString(optional int, optional PlayerReplicationInfo, optional PlayerReplicationInfo, optional Object)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class XIIIDialogMessage extends XIIILocalMessage;
    00005
    00006	#exec OBJ LOAD FILE=XIIICine.utx PACKAGE=XIIICine
    00007
    00008	var localized string sEnoughAmmo, sCantClimb;
    00009
    00010	//_____________________________________________________________________________
    00011	static function string GetString( optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject )
    00012	{
    00013	    switch (Switch)
    00014	    {
    00015	      case 4: // too much ammo
    00016	        return default.sEnoughAmmo;
    00017	        break;
    00018	      case 5: // holding corpse & trying to climb ladder.
    00019	        return default.sCantClimb;
    00020	    }
    00021	    return default.class$" ERR::RECEIVED GetString with wrong or undefined Params";
    00022	}
    00023
    00024	/*
    00025	//_____________________________________________________________________________
    00026	// ::TODO:: Should return the icon for the character speaking
    00027	static function texture GetIcon( optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject )
    00028	{
    00029	    switch (switch)
    00030	    {
    00031	        Case 0: return texture'XIIICine.Icon_inconnu'; break;
    00032	        Case 1: return texture'XIIICine.Icon_HF'; break;
    00033	    }
    00034	    return texture'XIIICine.Icon_inconnu';
    00035	}
    00036	*/
    00037
    00038
    00039	defaultproperties
    00040	{
    00041	     sEnoughAmmo="I can't hold more ammo"
    00042	     sCantClimb="I must drop this guy to climb"
    00043	     Lifetime=5
    00044	     DrawColor=(B=10,G=10,R=10)
    00045	}

End Source Code