Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. // Errored Line:
  2. for (Player p : race.getPlayers()) {
  3.  
  4. // getPlayers() Method (In the Race constructor):
  5. public ArrayList<Player> getPlayers() {
  6.     return GameManager.raceData.get(this);
  7. }
  8.  
  9. // raceData Map (In the GameManager class):
  10. public static HashMap<Race, ArrayList<Player>> raceData = new HashMap<Race, ArrayList<Player>>();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement