Ejemplo n.º 1
0
 /// <summary>
 /// Set the actor's destination when this state is entered.
 /// </summary>
 public override void OnEnter()
 {
     MyActor.DestinationPosition =
         new MovementDestination <Point>(
             _movementDestination.GetAllAccessPoints()
             .Where(p => Owner.Environment[p].CanAccess)
             .ToList());
 }
Ejemplo n.º 2
0
 protected Designation(GameWorld owner, ICanAccess canAccess, bool repeatable)
     : base(owner)
 {
     _isReady     = false;
     IsRepetable  = repeatable;
     _isTaken     = false;
     IsComplete   = false;
     Owner        = owner;
     JobType      = "";
     AccessPoints = canAccess.GetAllAccessPoints().Select(p => owner.Environment[p]).ToList();
 }