private void _Done(IBehaviorCommand command) { var cmd = command as BehaviorCommand.Injury; if (cmd != null) { DoneEvent(cmd); } }
private void _Done(IBehaviorCommand command) { var move = command as BehaviorCommand.Move; if (move != null) { MoveEvent(move.Direction, move.Time); } }
private void _Done(IBehaviorCommand command) { var skill = command as Regulus.Project.SamebestKeys.BehaviorCommand.Skill; if (skill != null) { var abiliry = _Entity.FindAbility<IActorPropertyAbility>(); if (abiliry.HasSkill(skill.Id)) { SkillEvent(skill.Id); } } }
void IBehaviorCommandAbility.Invoke(IBehaviorCommand command) { if (_CommandEvent != null) _CommandEvent(command); }
private void _Done(IBehaviorCommand command) { var cmd = command as BehaviorCommand.Stop; if (cmd != null) { DoneEvent(); } }
public MovementDirectionEnum GetSelectedMovement(BeeEnvironmentBehaviorEnum selectedBehavior, Point? hunterLocationPoint = null, Point? targetLocationPoint = null) { IBehaviorCommand behaviorCommand = _movementBehaviorCommandInvoker.GetSelectedBehavioralMovement(selectedBehavior); MovementDirectionEnum selectedMovement = behaviorCommand.Execute(hunterLocationPoint, targetLocationPoint); return selectedMovement; }
private void _Injury(IBehaviorCommand command) { var injury = command as BehaviorCommand.Injury; if (injury != null) { var actor = _Entity.FindAbility<IActorPropertyAbility>(); CastStep result = actor.QueryCastStep(_Skill); if (result != CastStep.Effective) { DoneEvent(injury); } } }