Unverified Commit 98e35462 authored by AndreR's avatar AndreR Committed by NicolaiO
Browse files

Resolve "Support relative battery and kicker levels"

Closes #1571

See merge request main/Sumatra!1319

sumatra-commit: 16a59113b31914562d122eafe4beae6328d3de06
parent cc5cdb65
Pipeline #8589 failed with stage
in 1 minute and 3 seconds
/*
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
package edu.tigers.sumatra.bot;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
/**
* Dribbler state.
*/
@RequiredArgsConstructor
@Getter
public enum EDribblerState
{
COLD(0),
WARM(1),
HOT(2),
OVERHEATED(3),
;
private final int id;
/**
* Convert an id to an enum.
*
* @param id
* @return enum
*/
public static EDribblerState getDribblerStateConstant(final int id)
{
for (EDribblerState s : values())
{
if (s.getId() == id)
{
return s;
}
}
return COLD;
}
}
......@@ -87,7 +87,7 @@ public interface IBot
ETeamColor getColor();
double getDribblerTemp();
EDribblerState getDribblerState();
/**
......
Supports Markdown
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