public TimedMove(Move cpy, int time) : base(cpy) { this.time = time; }
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; }
/// <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; }