ok im not to sure whats wrong here ive looked to see what the problem is but i coudnt find anything
the problem is that the hint icons do not work when you pick the flag up.
heres the code.
Code:
public static void createHintIcon(Client player, int t) {
Iterator<Client> iterator = gameRoom.keySet().iterator();
while (iterator.hasNext()) {
Client teamPlayer = (Client) iterator.next();
if (gameRoom.get(teamPlayer) == t) {
teamPlayer.getPA().createPlayerHints(10, player.playerId);
teamPlayer.sendMessage("creating hint icons on this player ");
}
}
}
yes it reaches the message
it works fine when the flag is dropped and here is the code for the flag when its dropped
Code:
public static void createFlagHintIcon(int x, int y) {
Iterator<Client> iterator = gameRoom.keySet().iterator();
while (iterator.hasNext()) {
Client teamPlayer = (Client) iterator.next();
teamPlayer.getPA().createObjectHints(x, y, 170, 2);
teamPlayer.sendMessage("creating hint icons that enemy dropped flag ");
}
}