Exemplo n.º 1
0
        public void Behavior()
        {
            LocalPlayer player = ObjectManager.Player;

            switch (SwitchLogic())
            {
            case Status.ALIVE:
                Pather.Traverse(Pather.GetNextHotspot());
                break;

            case Status.DEAD:
                player.RepopMe();
                break;

            case Status.GHOST:
                Pather.Traverse(player.CorpsePosition);
                player.RetrieveCorpse();
                break;

            case Status.MERCHANTING:
                ChoreBoy.PathToVendor();
                break;
            }
        }
Exemplo n.º 2
0
        public Status SwitchLogic()
        {
            LocalPlayer player = ObjectManager.Player;

            if (player.IsDead)
            {
                return(Status.DEAD);
            }
            else if (player.InGhostForm)
            {
                return(Status.GHOST);
            }
            else
            {
                if (ChoreBoy.NeedToMerchant() == true)
                {
                    return(Status.MERCHANTING);
                }
                else
                {
                    return(Status.ALIVE);
                }
            }
        }
Exemplo n.º 3
0
 public Controller(ChoreBoy choreBoy, ObjectManager objectManager, Pather pather)
 {
     ChoreBoy      = choreBoy;
     ObjectManager = objectManager;
     Pather        = pather;
 }