예제 #1
0
파일: Moving.cs 프로젝트: icaca/boogiebot
 public EasyMover(PPather pather, Location target, bool GiveUpIfStuck, bool GiveUpIfUnsafe)
 {
     this.target = target;
     this.Me = BoogieCore.Player;
     this.world = pather.world;
     mover = PPather.mover;
     this.GiveUpIfStuck = GiveUpIfStuck;
     this.GiveUpIfUnsafe = GiveUpIfUnsafe;
     this.pather = pather;
 }
예제 #2
0
파일: Moving.cs 프로젝트: icaca/boogiebot
        GSpellTimer StuckTimeout = new GSpellTimer(333); // Check every 333ms

        #endregion Fields

        #region Constructors

        //Coordinate StuckLocation = null;
        public StuckDetecter(PPather pather, int stuckSensitivity, int abortSensitivity)
        {
            this.Me = BoogieCore.Player;
            this.stuckSensitivity = stuckSensitivity;
            this.abortSensitivity = abortSensitivity;
            this.mover = PPather.mover;
            firstStuckCheck = true;
        }
예제 #3
0
파일: Moving.cs 프로젝트: icaca/boogiebot
 public MoveAlonger(PPather pather, Path path)
 {
     this.Me = BoogieCore.Player;
     this.path = path;
     this.world = pather.world;
     mover = PPather.mover;
     sd = new StuckDetecter(pather, 1, 2);
     prev = null;
     current = path.GetFirst();
     next = path.GetSecond();
 }