View Javadoc

1   package cz.cuni.amis.pogamut.udk.communication.translator.shared.events;
2   
3   import java.util.List;
4   
5   import cz.cuni.amis.pogamut.base.communication.translator.event.WorldEventIdentityWrapper;
6   import cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.Player;
7   
8   public class PlayerListObtained extends WorldEventIdentityWrapper {
9   
10  	private List<Player> players;
11  
12  	public PlayerListObtained(List<Player> list) {
13  		this.players = list;
14  	}
15  
16  	public List<Player> getPlayers() {
17  		return players;
18  	}
19  	
20  	public long getSimTime() {
21      	return 0;
22      }
23  	
24  	@Override
25  	public String toString() {
26  		return "PlayerListObtained[players.size() = " + players.size() + "]";
27  	}
28  	
29  	
30  }