Adventure Creator  1.55b
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2016
AC.ActionList Class Reference
Inheritance diagram for AC.ActionList:
AC.AC_Trigger AC.Cutscene AC.DialogueOption AC.Interaction AC.RuntimeActionList

Public Member Functions

void Initialise ()
 
virtual void Interact ()
 
void Interact (int i, bool addToSkipQueue)
 Runs the Actions from a set point. More...
 
void Skip ()
 
void Skip (int i)
 Runs the Actions instantly, from a set point. More...
 
bool AreActionsRunning ()
 Checks if any Actions are currently being run. More...
 
void ResetList ()
 
virtual void Kill ()
 
bool IsSkippable ()
 Checks if the ActionListAsset is skippable. This is safer than just reading 'isSkippable', because it also accounts for actionListType - since ActionLists that run in the background cannot be skipped More...
 
List< ActionGetActions ()
 Gets the List of Actions that this ActionList runs, regardless of source. More...
 
ActionParameter GetParameter (string label)
 Gets a parameter of a given name. More...
 
ActionParameter GetParameter (int _ID)
 Gets a parameter of a given ID number. More...
 
void Pause ()
 Pauses the ActionList once it has finished running it's current Action.
 
void Resume (int _startIndex, int[] _resumeIndices, string _parameterData)
 Resumes the ActionList. More...
 
string GetParameterData ()
 Gets the current ActionParameter values as a serializable string. More...
 

Static Public Member Functions

static AC.Action GetDefaultAction ()
 Gets the default Action set within ActionsManager. More...
 

Public Attributes

List< AC.Actionactions = new List<AC.Action>()
 
bool isSkippable = true
 
float triggerTime = 0f
 
bool autosaveAfter = false
 
ActionListType actionListType = ActionListType.PauseGameplay
 
Conversation conversation = null
 
ActionListAsset assetFile
 
ActionListSource source
 
bool unfreezePauseMenus = true
 
bool useParameters = false
 
List< ActionParameterparameters = new List<ActionParameter>()
 
int tagID
 
bool syncParamValues = true
 

Protected Member Functions

virtual void BeginActionList (int i, bool addToSkipQueue)
 
void ProcessAction (int i)
 
void CheckEndCutscene ()
 
void ReturnLastResultToSource (ActionEnd _lastResult, int i)
 
virtual void FinishPause ()
 

Protected Attributes

bool isSkipping = false
 
LayerMask LayerHotspot
 
LayerMask LayerOff
 
List< int > resumeIndices = new List<int>()
 

Detailed Description

An ActionList stores and handles the sequential triggering of Action objects. Strung together, Actions can be used to create cutscenes, effects and gameplay logic. This base class is never used itself - only subclasses are intended to be placed on GameObjects.

Member Function Documentation

bool AC.ActionList.AreActionsRunning ( )

Checks if any Actions are currently being run.

Returns
True if any Actions are currently being run
List<Action> AC.ActionList.GetActions ( )

Gets the List of Actions that this ActionList runs, regardless of source.

Returns
The List of Actions that this ActionList runs, regardless of source.
static AC.Action AC.ActionList.GetDefaultAction ( )
static

Gets the default Action set within ActionsManager.

Returns
The default Action set within ActionsManager
ActionParameter AC.ActionList.GetParameter ( string  label)

Gets a parameter of a given name.

Parameters
labelThe name of the parameter to get
Returns
The parameter with the given name
ActionParameter AC.ActionList.GetParameter ( int  _ID)

Gets a parameter of a given ID number.

Parameters
_IDThe ID of the parameter to get
Returns
The parameter with the given ID number
string AC.ActionList.GetParameterData ( )

Gets the current ActionParameter values as a serializable string.

Returns
The current ActionParameter values as a serializable string
void AC.ActionList.Initialise ( )

Clears the List of Actions and creates one instance of the default, as set within ActionsManager.

virtual void AC.ActionList.Interact ( )
virtual

Runs the Actions normally, from the beginning.

void AC.ActionList.Interact ( int  i,
bool  addToSkipQueue 
)

Runs the Actions from a set point.

Parameters
iThe index number of actions to start from
addToSkipQueueIf True, then the ActionList will be skipped when the user presses the 'EndCutscene' Input button
bool AC.ActionList.IsSkippable ( )

Checks if the ActionListAsset is skippable. This is safer than just reading 'isSkippable', because it also accounts for actionListType - since ActionLists that run in the background cannot be skipped

Returns
True if the ActionListAsset is skippable
virtual void AC.ActionList.Kill ( )
virtual

Stops the Actions from running and sets the gameState in StateHandler to the correct value.

Reimplemented in AC.RuntimeActionList.

void AC.ActionList.ResetList ( )

Stops the Actions from running.

void AC.ActionList.Resume ( int  _startIndex,
int[]  _resumeIndices,
string  _parameterData 
)

Resumes the ActionList.

Parameters
_startIndexThe Action index that the ActionList was originally started from.
_resumeIndicesAn array of Action indices to resume from
_parameterDataThe ActionParameter values when paused, as a serializable string
void AC.ActionList.Skip ( )

Runs the Actions instantly, from the beginning.

void AC.ActionList.Skip ( int  i)

Runs the Actions instantly, from a set point.

Parameters
iThe index number of actions to start from

Member Data Documentation

ActionListType AC.ActionList.actionListType = ActionListType.PauseGameplay

The effect that running the Actions has on the rest of the game (PauseGameplay, RunInBackground)

List<AC.Action> AC.ActionList.actions = new List<AC.Action>()

The Actions

ActionListAsset AC.ActionList.assetFile

The ActionListAsset file that stores the Actions, if source = ActionListSource.AssetFile

bool AC.ActionList.autosaveAfter = false

If True, the game will auto-save when the Actions have finished running

Conversation AC.ActionList.conversation = null

The Conversation to run when the Actions have finished running

bool AC.ActionList.isSkippable = true

If True, the Actions will be skipped when the user presses the 'EndCutscene' Input button

List<ActionParameter> AC.ActionList.parameters = new List<ActionParameter>()

A List of ActionParameter objects that can be used to override values within the Actions, if useParameters = True

ActionListSource AC.ActionList.source

Where the Actions are stored when not being run (InScene, AssetFile)

bool AC.ActionList.syncParamValues = true

If True, and source = ActionListSource.AssetFile, the asset file's parameter values will be shared amongst all linked ActionLists

int AC.ActionList.tagID

The ID of the associated SpeechTag

float AC.ActionList.triggerTime = 0f

The delay, in seconds, before the Actions are run when the ActionList is triggered

bool AC.ActionList.unfreezePauseMenus = true

If True, the game will un-freeze itself while the Actions run if the game was previously paused due to an enabled Menu

bool AC.ActionList.useParameters = false

If True, ActionParameters can be used to override values within the Action objects