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

Engine.Tyrion_Setup


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
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
//=====================================================================
// Tyrion_Setup
// Performs one-time initializations/setup for Tyrion AI
//=====================================================================

class Tyrion_Setup extends Actor
	native;

//=====================================================================
// Variables

var transient Object deadClasses;	// a pointer to the DeadClasses package; the outers of goal classes
									// get set to this when their regular outer is destroyed

//=====================================================================
// Functions

//---------------------------------------------------------------------
// Hook in Tyrion for the rook to call into at every tick

event doRookRelatedAIProcessing( float deltaSeconds, Pawn pawn );

//---------------------------------------------------------------------
// Hook in Tyrion for the Player to call into at every tick

function doPlayerRelatedAIProcessing( float deltaSeconds, Pawn pawn );

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

native function setAILOD( Pawn pawn, Tyrion_ResourceBase.AI_LOD_Levels newLODLevel );

//---------------------------------------------------------------------
// stop all movement actions

event stopActions( Pawn pawn );

//---------------------------------------------------------------------
// clear vision lists

native function shutDownVision( Pawn pawn );

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

native function makeSafeOuter( Object objOwner, Object obj );

//---------------------------------------------------------------------
// Shallow copy function
// Returns None if copy failed
// Note: shouldn't this be in Object.uc?

static function Object shallowCopy( Object source )
{
	local Object dest;

	dest = new(source.outer) source.class;

	if ( static.copyParameters( source, dest ) )
		return dest;
	else
		return None;
}

//---------------------------------------------------------------------
// Shallow copy goal function
// Goals need their own shallow copy because they need to be put into
// the sources package rather than the sources outer
// Returns None if copy failed

static function Object shallowCopyGoal( Object source )
{
	local Object dest;
	local Object destOuter;

	for (destOuter = source.Outer; destOuter.Outer != None; destOuter = destOuter.Outer)
		;

	dest = new(destOuter) source.class;

	if ( static.copyParameters( source, dest ) )
		return dest;
	else
		return None;
}

//---------------------------------------------------------------------
// Copy parameters from source to dest
// Note: shouldn't this be in Object.uc?

native static function bool copyParameters( Object source, Object dest);

//---------------------------------------------------------------------
// Sends a message to GetOutOfWaySensor when a pawn was bumped by a friendly
// (this function is overriden in Tyrion)

function sendGetOutOfWayMessage( Pawn bumpedPawn, Vector bumpDirection );

//---------------------------------------------------------------------
// Sends a message to painSensor of squad members when a member dies
// (this function is overriden in Tyrion)

function sendAllyDiedMessage( Pawn ally, Pawn deadPawn, Pawn InstigatedBy, class<DamageType> damageType, vector HitLocation );

//---------------------------------------------------------------------
// gets enemy list from the enemy sensor

function array<Pawn> getEnemyListFromSensor( Pawn ai );

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

event enemyListSanityCheck( Pawn ai );

//=====================================================================
// defaults

defaultproperties
{
	bHidden	= true
	DrawType = DT_None
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 16:01:32.000 - Creation time: st 23.5.2018 00:10:49.665 - Created with UnCodeX