Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.PlayerChatManager


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
//==============================================================================
//	Created on: 08/29/2003
//	PlayerChatManager serves as a proxy between GameInfo and PlayerController to intercept
//	and alter player chat.
//
//	All types of chat (text, speech, voice) must go through PlayerChatManager in order to reach the client.
//
//	Written by Ron Prestenback
//	© 2003, Epic Games, Inc.  All Rights Reserved
//
// TODO: Allow players to restrict speech based on type (taunt, order, etc.)
//==============================================================================
class PlayerChatManager extends Info
	native;

var PlayerController PlayerOwner;

event PostBeginPlay()
{
	Super.PostBeginPlay();

	if ( PlayerController(Owner) == None )
		Destroy();

	if ( bDeleteMe )
		return;

	PlayerOwner = PlayerController(Owner);
}

simulated function ReceiveBanInfo(string S);
simulated function TrackNewPlayer(int PlayerID, string PlayerHash, string PlayerAddress);
simulated function UnTrackPlayer(int PlayerID);

function bool AcceptText( PlayerReplicationInfo Sender, out string Msg, optional name Type ) { return true; }
function bool AcceptLocalized( Actor Sender, class<LocalMessage> Message, optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object Obj ) { return true; }
function bool AcceptSpeech(PlayerReplicationInfo Sender)               { return true; }
event bool AcceptVoice(PlayerReplicationInfo Sender)                   { return true; }
simulated function bool SetRestriction(string PlayerHash, byte Type)   { return true; }
simulated function bool SetRestrictionID(int PlayerID, byte Type)      { return true; }
simulated function bool AddRestriction(string PlayerHash, byte Type)   { return True; }
simulated function bool AddRestrictionID(int PlayerID, byte Type)      { return True; }
simulated function bool ClearRestriction(string PlayerHash, byte Type) { return true; }
simulated function bool ClearRestrictionID(int PlayerID, byte Type)    { return true; }
function bool IsBanned(PlayerReplicationInfo PRI)                      { return false; }
simulated function bool ClientIsBanned(string PlayerHash)              { return false; }
simulated function byte GetPlayerRestriction(int PlayerID)             { return 0;     }
simulated function int Count();

simulated function ChatDebug();
DefaultProperties
{
	RemoteRole=ROLE_SimulatedProxy
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:28:42.000 - Creation time: Do 14.8.2014 09:58:48.544 - Created with UnCodeX