Class GraphUpdateObject

Public

Represents a collection of settings used to update nodes in a specific region of a graph.

Public Methods

Apply (node)

Updates the specified node using this GUO's settings.

Public
GraphUpdateObject ()
Public
GraphUpdateObject (b)

Creates a new GUO with the specified bounds.

Public
RevertFromBackup ()

Reverts penalties and flags (which includes walkability) on every node which was updated using this GUO.

Public
WillUpdateNode (node)

Should be called on every node which is updated with this GUO before it is updated.

Public

Public Variables

addPenalty

Penalty to add to the nodes.

Public
bounds

The bounds to update nodes within.

Public
changedNodes

Nodes which were updated by this GraphUpdateObject.

Public
modifyTag

If true, all nodes' tag will be set to setTag.

Public
modifyWalkability

If true, all nodes' walkable variable will be set to setWalkability.

Public
nnConstraint

NNConstraint to use.

Public
resetPenaltyOnPhysics

Reset penalties to their initial values when updating grid graphs and updatePhysics is true.

Public
setTag

If modifyTag is true, all nodes' tag will be set to this value.

Public
setWalkability

If modifyWalkability is true, the nodes' walkable variable will be set to this value.

Public
shape

A shape can be specified if a bounds object does not give enough precision.

Public
stage

Info about if a graph update has been applied or not.

Public
trackChangedNodes

Track which nodes are changed and save backup data.

Public
updateErosion

Update Erosion for GridGraphs.

Public
updatePhysics

Use physics checks to update nodes.

Public

Private/Protected Members

STAGE_ABORTED
Internal Static
STAGE_APPLIED
Internal Static
STAGE_CREATED
Internal Static
STAGE_PENDING
Internal Static
backupData
Private
backupPositionData
Private
internalStage

Info about if a graph update has been applied or not.

Internal

Deprecated Members

requiresFloodFill

Controlls if a flood fill will be carried out after this GUO has been applied.

Public