This repository has been archived by the owner on Apr 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added exact arrow positioning feature
- Loading branch information
Showing
43 changed files
with
908 additions
and
217 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
package de.dreier.mytargets; | ||
|
||
import android.graphics.Color; | ||
|
||
public class Target { | ||
public static final int[] highlightColor = { | ||
0xFFFCEA0F, // Gelb | ||
0xFFE30513, // Rot | ||
0xFF1D70B7, //Blau | ||
0xFF050505, // Schwarz | ||
Color.WHITE, // Weiß | ||
0xFF1C1C1B // Mistake | ||
}; | ||
|
||
public static final int[] circleStrokeColor = { | ||
0xFFFCEA0F, // Gelb | ||
0xFFE30513, // Rot | ||
0xFF1D70B7, //Blau | ||
0xFF050505, // Schwarz | ||
0xFF1C1C1B, // Weiß wird schwarz dargestellt | ||
0xFF1C1C1B, // Mistake | ||
}; | ||
|
||
public static final int[] rectColor = { | ||
0xFFFCEA0F, // Gelb | ||
0xFFE30513, // Rot | ||
0xFF1D70B7, //Blau | ||
0xFF1C1C1B, // Schwarz | ||
Color.WHITE, // Weiß | ||
0xFF1C1C1B // Mistake | ||
}; | ||
|
||
public static final int[] grayColor = { | ||
0xFF7a7439, // Gelb | ||
0xFF7a2621, // Rot | ||
0xFF234466, //Blau | ||
0xFF1C1C1B, // Schwarz | ||
0xFF7d7a80 // Weiß | ||
}; | ||
|
||
public static final int[][] target_rounds = { | ||
{0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4}, //WA | ||
{0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4}, | ||
{0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4}, | ||
{0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4}, | ||
{0, 0, 0, 1, 1, 2}, // WA Spot | ||
{0, 0, 0, 1, 1, 2}, | ||
{0, 0, 0, 1, 1, 2}, | ||
{0, 0, 0, 1, 1, 2}, | ||
{0, 0, 3, 3, 3, 3}, // WA Field | ||
{4, 4, 3, 3, 3, 3}, //DFBV Spiegel | ||
{4, 4, 3} //DFBV Spiegel Spot | ||
}; | ||
|
||
public static final int[][] target_points = { | ||
{10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1}, //WA | ||
{10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1}, | ||
{10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1}, | ||
{10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1}, | ||
{10, 10, 9, 8, 7, 6}, // WA Spot | ||
{10, 10, 9, 8, 7, 6}, | ||
{10, 10, 9, 8, 7, 6}, | ||
{10, 10, 9, 8, 7, 6}, | ||
{5, 5, 4, 3, 2, 1}, // WA Field | ||
{5, 5, 4, 3, 2, 1}, //DFBV Spiegel | ||
{5, 5, 4} //DFBV Spiegel Spot | ||
}; | ||
|
||
public static String getStringByZone(int target, int zone) { | ||
final int[] points = target_points[target]; | ||
if (zone <= -1 || zone >= points.length) { | ||
return "M"; | ||
} else if (zone == 0 && target < 8) { | ||
return "X"; | ||
} else { | ||
return String.valueOf(points[zone]); | ||
} | ||
} | ||
} |
Oops, something went wrong.