Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# Tyrion.AI_SquadFollow

Extends
  AI_SquadAction
Modifiers
  implements IFollowFunction editinlinenew

    Core.Object
    |
    +-- Core.RefCount
       |
       +-- Engine.Tyrion_ActionBase
          |
          +-- Tyrion.ActionBase
             |
             +-- Tyrion.AI_RunnableAction
                |
                +-- Tyrion.AI_Action
                   |
                   +-- Tyrion.AI_SquadAction
                      |
                      +-- Tyrion.AI_SquadFollow

Constants Summary
MAX_SQUAD_SIZE | = | 9
MIN_LEADER_SPEED | = | 3

Variables Summary
int | aliveFollowers
AI_Goal | followGoals[MAX_SQUAD_SIZE]
int | i
int | lastUpdateOffset[MAX_SQUAD_SIZE]
Pawn | pawn
int | positionMap[MAX_SQUAD_SIZE]
InternalParameters
Pawn | target
Parameters
float | energyUsage
float | formationDiameter
Character.GroundMovementLevels | preferredGroundMovement
float | proximity
Name | targetName
float | terminalHeight
float | terminalVelocity

Inherited Variables from Tyrion.AI_Action
achievingGoal, childGoals, heuristicValue, nsChild, resourceUsage, satisfiesGoal, waitingForGoalsN

Functions Summary
|  | assignPawnsToPositions ()))
|  | classConstruct ()))
|  | cleanup ()))
| int | nFollowers ()))
| int | nPossibleFollowers ()))
| Vector | offset (Pawn leader, int positionIndex ))
| Vector | offsetInternal (Pawn leader, int positionIndex ))
|  | pawnDied (Pawn member ))
| float | proximityFunction ()))
| bool | updateOffset (Pawn follower, Pawn leader, int positionIndex ))
| bool | validDestination (Vector point ))
| bool | verifyAliveFollowers ()))

Inherited Functions from Tyrion.AI_SquadAction
classConstruct, findResource, getResourceClass, squad, squadResource

Inherited Functions from Tyrion.AI_Action
fail, getChildReference, getResource, goalAchievedCB, goalNotAchievedCB, initAction, instantFail, instantSucceed, interruptAction, interruptGoalIf, myAddRef, OnSensorMessage, removeAction, removeChildReference, resourceStolenCB, runAction, selectionHeuristic, setChildReference, succeed, waitForAllGoals, waitForAllGoalsConsidered, waitForAllGoalsInList, waitForAnyGoal, waitForGoal, waitForResourcesAvailable

States Summary

Running Source code
state Running

Constants Detail

#### MAX_SQUAD_SIZE Source code

const MAX_SQUAD_SIZE = 9;

#### MIN_LEADER_SPEED Source code

const MIN_LEADER_SPEED = 3;

Variables Detail

#### aliveFollowers Source code

var int aliveFollowers;

#### followGoals[MAX_SQUAD_SIZE] Source code

var AI_Goal followGoals[MAX_SQUAD_SIZE];

#### i Source code

var int i;

#### lastUpdateOffset[MAX_SQUAD_SIZE] Source code

var int lastUpdateOffset[MAX_SQUAD_SIZE];

#### pawn Source code

var Pawn pawn;

#### positionMap[MAX_SQUAD_SIZE] Source code

var int positionMap[MAX_SQUAD_SIZE];

### InternalParameters

#### target Source code

var(InternalParameters) editconst Pawn target;

### Parameters

#### energyUsage Source code

var(Parameters) float energyUsage;

#### formationDiameter Source code

var(Parameters) float formationDiameter;

> What's the approximate diameter of the formation?

#### preferredGroundMovement Source code

var(Parameters) Character.GroundMovementLevels preferredGroundMovement;

#### proximity Source code

var(Parameters) float proximity;

> How close to get to one's desired position while following

#### targetName Source code

var(Parameters) editinline Name targetName;

> A pawn to follow

#### terminalHeight Source code

var(Parameters) float terminalHeight;

#### terminalVelocity Source code

var(Parameters) float terminalVelocity;

Functions Detail

#### assignPawnsToPositions Source code

function assignPawnsToPositions ( ) )

#### classConstruct Source code

function classConstruct ( ) )

#### cleanup Source code

function cleanup ( ) )

#### nFollowers Source code

function int nFollowers ( ) )

#### nPossibleFollowers Source code

function int nPossibleFollowers ( ) )

#### offset Source code

function Vector offset ( Pawn leader, int positionIndex ) )

#### offsetInternal Source code

function Vector offsetInternal ( Pawn leader, int positionIndex ) )

#### pawnDied Source code

function pawnDied ( Pawn member ) )

#### proximityFunction Source code

function float proximityFunction ( ) )

#### updateOffset Source code

function bool updateOffset ( Pawn follower, Pawn leader, int positionIndex ) )

#### validDestination Source code

function bool validDestination ( Vector point ) )

#### verifyAliveFollowers Source code

function bool verifyAliveFollowers ( ) )

Defaultproperties

    defaultproperties
    {
    	satisfiesGoal = class'AI_SquadFollowGoal'
    }

Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

Creation time: st 23.5.2018 00:10:27.551 - Created with UnCodeX