Commit 3aeb1f80 authored by MarkG's avatar MarkG Committed by TIGERs GitLab
Browse files

Resolve "Refactor SupportBehaviors into roles"

Closes #1558

See merge request main/Sumatra!1309

sumatra-commit: 09ac3dda9f578a580833f4cc746ebd943219d3f3
parent 657f5807
Pipeline #16762 passed with stage
in 4 minutes and 5 seconds
......@@ -62,7 +62,7 @@ public class BotState extends State
}
public BotID getBotID()
public BotID getBotId()
{
return botID;
}
......
......@@ -56,6 +56,16 @@ public class State implements IMirrorable<State>, IExportable, IInterpolatable<S
}
/**
* @param pose the pose
* @return
*/
public static State of(final Pose pose)
{
return new State(pose, Vector3.zero());
}
public static State zero()
{
return State.of(Pose.zero(), Vector3f.zero());
......
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
package edu.tigers.sumatra.drawable;
......@@ -48,6 +48,12 @@ public class DrawableArrow extends ADrawable
}
public static DrawableArrow fromPositions(IVector2 source, IVector2 target)
{
return new DrawableArrow(source, target.subtractNew(source));
}
@Override
public void paintShape(final Graphics2D g, final IDrawableTool tool, final boolean invert)
{
......
......@@ -164,7 +164,7 @@ public class WorldInfoCollector extends AWorldPredictor
.filter(Optional::isPresent)
.map(Optional::get)
.collect(Collectors.toMap(
BotState::getBotID,
BotState::getBotId,
Function.identity()));
}
......
......@@ -42,7 +42,7 @@ public class DelayedBotState extends BotState
public static DelayedBotState fromBotState(BotState botState, double delay)
{
return new DelayedBotState(botState.getBotID(), botState, delay);
return new DelayedBotState(botState.getBotId(), botState, delay);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment