Exemple #1
0
    void InitializeAStar()
    {
        pather_solids = new AStarPather(new MazeWalkerLambda((a, b) => {
            return(SolidTileIds.Contains(Gett(b)) ? int.MaxValue : 1 + GetStink(b));
        }), new twinrect(0, 0, 19, 17));

        stinkycells = new Dictionary <twin, float>();
    }
Exemple #2
0
 public void Setup(MazeMaster master, twin cell_pos, AStarPather pather)
 {
     this.pather = pather;
     base.Setup(master, cell_pos);
 }
Exemple #3
0
 public BaRobotBoyPather(outerboardxxi xxi)
 {
     this.xxi           = xxi;
     this.robotPather   = new AStarPather(this);
     this.plannedTowers = new HashSet <twin>();
 }