コード例 #1
0
 public TimedMove(Move cpy, int time)
     : base(cpy)
 {
     this.time = time;
 }
コード例 #2
0
 public CbsConflict(int conflictingAgentAIndex, int conflictingAgentBIndex, Move agentAMove, Move agentBMove, int timeStep)
 {
     this.agentAIndex = conflictingAgentAIndex;
     this.agentBIndex = conflictingAgentBIndex;
     this.agentAmove  = agentAMove;
     this.agentBmove  = agentBMove;
     this.timeStep    = timeStep;
     if (agentAMove.x == agentBMove.x && agentAMove.y == agentBMove.y) // Same dest, from any direction
     {
         this.isVertexConflict = true;
     }
     else
     {
         this.isVertexConflict = false;
         Trace.Assert(Constants.ALLOW_HEAD_ON_COLLISION == false, "Creating an edge conflict when head-on collision are allowed");
     }
     this.willCostIncreaseForAgentA = WillCostIncrease.MAYBE;
     this.willCostIncreaseForAgentB = WillCostIncrease.MAYBE;
 }
コード例 #3
0
 /// <summary>
 /// Isn't used anywhere
 /// </summary>
 /// <param name="cpy"></param>
 /// <param name="time"></param>
 public void setup(Move cpy, int time)
 {
     base.setup(cpy);
     this.time = time;
 }