View Javadoc

1   package nl.tudelft.goal.ut2004.visualizer.connection;
2   
3   import java.io.Serializable;
4   import java.util.logging.Level;
5   
6   import cz.cuni.amis.pogamut.base3d.worldview.object.Location;
7   import cz.cuni.amis.pogamut.base3d.worldview.object.Rotation;
8   
9   import nl.tudelft.goal.ut2004.util.Skin;
10  import nl.tudelft.goal.ut2004.util.Team;
11  
12  /**
13   * Command to add bots to the game. Supports the relevant options from
14   * {@link AddBotCommand}. AddBotCommand is not used directly because it is not
15   * serializable.
16   * 
17   * @author mpkorstanje
18   * 
19   */
20  public final class AddBotCommand implements Serializable {
21  
22  	/**
23  	 * 
24  	 */
25  	private static final long serialVersionUID = 201210241640L;
26  
27  	private String botName;
28  	private Level logLevel;
29  	private Boolean shouldLeadTarget;
30  	private Integer skill;
31  	private Skin skin;
32  	private Team team;
33  	private Rotation rotation;
34  	private Location location;
35  
36  	public String getBotName() {
37  		return botName;
38  	}
39  
40  	public void setBotName(String botName) {
41  		this.botName = botName;
42  	}
43  
44  	public Level getLogLevel() {
45  		return logLevel;
46  	}
47  
48  	public void setLogLevel(Level logLevel) {
49  		this.logLevel = logLevel;
50  	}
51  
52  	public Boolean getShouldLeadTarget() {
53  		return shouldLeadTarget;
54  	}
55  
56  	public void setShouldLeadTarget(Boolean shouldLeadTarget) {
57  		this.shouldLeadTarget = shouldLeadTarget;
58  	}
59  
60  	public Rotation getRotation() {
61  		return rotation;
62  	}
63  
64  	public void setRotation(Rotation rotation) {
65  		this.rotation = rotation;
66  	}
67  
68  	public Location getLocation() {
69  		return location;
70  	}
71  
72  	public void setLocation(Location location) {
73  		this.location = location;
74  	}
75  
76  	public Integer getSkill() {
77  		return skill;
78  	}
79  
80  	public void setSkill(Integer skill) {
81  		this.skill = skill;
82  	}
83  
84  	public Skin getSkin() {
85  		return skin;
86  	}
87  
88  	public void setSkin(Skin skin) {
89  		this.skin = skin;
90  	}
91  
92  	public Team getTeam() {
93  		return team;
94  	}
95  
96  	public void setTeam(Team team) {
97  		this.team = team;
98  	}
99  
100 	@Override
101 	public String toString() {
102 		return "AddBotCommand [botName=" + botName + ", logLevel=" + logLevel + ", shouldLeadTarget=" + shouldLeadTarget + ", skill="
103 				+ skill + ", skin=" + skin + ", team=" + team + ", rotation=" + rotation + ", location=" + location + "]";
104 	}
105 
106 }