base class for any actor that has one active action at a time
https://adventure.softleitner.com/manual/acting
|
|
override void | AddAction (CharacterActionBase characterAction) |
| |
|
override void | RemoveAction (CharacterActionBase characterAction) |
| |
| override void | OnMessage (string parameter) |
| |
| override void | OnInput (bool parameter) |
| |
| override void | OnInput (int parameter) |
| |
| override void | OnInput (Vector2 parameter) |
| |
| virtual bool | StartAction (string name, bool jumpStart=false, bool force=false) |
| | attempts to start or queue up an action
|
| |
| virtual void | EndAction (string name) |
| | ends an action and removes it from the actors current actions usually called by actions and actors as they are in control of their progress
|
| |
| virtual void | AddAction (string name) |
| | adds a continuing action
depending on the actor an added action can be interrupted
by a regular action or just be kept running in parallel
|
| |
| virtual void | RemoveAction (string name) |
| | dicontinues an action added by AddAction(CharacterActionBase)
|
| |
| bool | StartAction (CharacterActionBase characterAction, bool jumpStart=false, bool force=false) |
| | attempts to start or queue up an action
|
| |
| void | EndAction (CharacterActionBase characterAction) |
| | ends an action and removes it from the actors current actions usually called by actions and actors as they are in control of their progress
|
| |
| void | AddAction (CharacterActionBase characterAction) |
| | adds a continuing action
depending on the actor an added action can be interrupted
by a regular action or just be kept running in parallel
|
| |
| void | RemoveAction (CharacterActionBase characterAction) |
| | dicontinues an action added by AddAction(CharacterActionBase)
|
| |
| virtual CharacterActionBase | GetAction (string name) |
| | retrieves an action that is known by its name
actions are usually known by being children of the actor
|
| |
|
| enum | OverruleCanStartMode { Forced
, Never
, Always
} |
| |
|
CharacterBase | Character |
| |
|
OverruleCanStartMode | OverruleCanStart |
| |
|
UnityEvent< CharacterActionBase > | ActionStarted |
| |
|
UnityEvent< CharacterActionBase > | ActionEnded |
| |
|
UnityEvent | ActionsChanged |
| |
|
virtual bool | canStart (CharacterActionBase action, bool forced) |
| |
|
virtual void | onActionStarted (CharacterActionBase characterAction) |
| |
|
virtual void | onActionEnded (CharacterActionBase characterAction) |
| |
|
virtual void | onActionsChanged () |
| |
|
Action | Idling |
| | fired after an event has ended an not other action has been started by the end of the frame
|
| |
◆ OnInput() [1/3]
| override void AdventureCore.SerialCharacterActor.OnInput |
( |
bool | parameter | ) |
|
|
inlinevirtual |
◆ OnInput() [2/3]
| override void AdventureCore.SerialCharacterActor.OnInput |
( |
int | parameter | ) |
|
|
inlinevirtual |
◆ OnInput() [3/3]
| override void AdventureCore.SerialCharacterActor.OnInput |
( |
Vector2 | parameter | ) |
|
|
inlinevirtual |
◆ OnMessage()
| override void AdventureCore.SerialCharacterActor.OnMessage |
( |
string | parameter | ) |
|
|
inlinevirtual |