Class PhoneBehavior
An action behavior that involves either a landline phone (which is expected to have the LandlinePhone), or a Tiny taking out their own mobile phone and using it (which happens if the Self category is attached to the action). An action that uses the phone behavior can have both object categories attached for multi-use.
public class PhoneBehavior : ActionBehavior
- Inheritance
-
PhoneBehavior
- Inherited Members
- Extension Methods
Constructors
PhoneBehavior(Action, bool, string)
public PhoneBehavior(Action action, bool sitDownMobile = false, string displayContent = null)
Parameters
Methods
CanMultitask(Action)
Return true on this method if this action can be multi-tasked along with the passed Action. A multi-tasking is an action that is currently active along with another action. By default, multi-tasking is disallowed for any action.
public override bool CanMultitask(Action other)
Parameters
other
ActionThe action to multi-task with
Returns
- bool
Whether this action can be multi-tasked
CreateFirstActions()
Creates a set of actions that should be executed before the main Action starts. This method is automatically called when using BehaviorAction in CreateFirstActions().
public override IEnumerable<Action> CreateFirstActions()
Returns
GetIconObject()
Returns this action behavior's icon object. This method is automatically called when using BehaviorAction in GetIconObject(). By default, this method returns the underlying ActionInfo's GetActionObject<T>(bool).
public override MapObject GetIconObject()
Returns
- MapObject
The icon object
Initialize()
Initializes this action behavior. This method is automatically called when using BehaviorAction in AndThenInitialize().
public override void Initialize()
OnCompleted(CompletionType)
Causes any activities that this action behavior executes to be marked as completed. This method is automatically called when using BehaviorAction in OnCompleted(CompletionType).
public override void OnCompleted(CompletionType completion)
Parameters
completion
CompletionType
Update(GameTime, TimeSpan, float)
Updates this action behavior every update frame. This method is automatically called when using BehaviorAction in AndThenUpdate(GameTime, TimeSpan, float).
public override void Update(GameTime time, TimeSpan passedInGame, float speedMultiplier)