1 package nl.tudelft.goal.ut2004.visualizer.map;
2
3 import java.awt.Color;
4 import java.util.ArrayList;
5 import java.util.List;
6
7 import cz.cuni.amis.introspection.Folder;
8 import cz.cuni.amis.pogamut.base.agent.IAgentId;
9 import cz.cuni.amis.pogamut.base.agent.state.level0.IAgentState;
10 import cz.cuni.amis.pogamut.base.communication.command.IAct;
11 import cz.cuni.amis.pogamut.base.communication.worldview.IWorldView;
12 import cz.cuni.amis.pogamut.base.component.bus.IComponentBus;
13 import cz.cuni.amis.pogamut.base.component.exception.ComponentCantPauseException;
14 import cz.cuni.amis.pogamut.base.component.exception.ComponentCantResumeException;
15 import cz.cuni.amis.pogamut.base.component.exception.ComponentCantStartException;
16 import cz.cuni.amis.pogamut.base.component.exception.ComponentCantStopException;
17 import cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger;
18 import cz.cuni.amis.pogamut.base3d.worldview.object.Location;
19 import cz.cuni.amis.pogamut.base3d.worldview.object.Rotation;
20 import cz.cuni.amis.pogamut.base3d.worldview.object.Velocity;
21 import cz.cuni.amis.pogamut.unreal.bot.IUnrealBot;
22 import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;
23 import cz.cuni.amis.pogamut.unreal.communication.messages.gbinfomessages.IPlayer;
24 import cz.cuni.amis.utils.exception.PogamutException;
25 import cz.cuni.amis.utils.flag.ImmutableFlag;
26 import nl.tudelft.goal.ut2004.visualizer.map.MapColorGenerator.MapColor;
27 import nl.tudelft.goal.ut2004.visualizer.timeline.map.DefaultFadeLine;
28 import nl.tudelft.goal.ut2004.visualizer.timeline.map.IFadeLine;
29 import nl.tudelft.goal.ut2004.visualizer.timeline.map.IRenderableUTAgent;
30
31 public class ProxyRenderablePlayer implements IRenderableUTAgent {
32 private final int glName;
33 private final IPlayer agent;
34 private final MapColor color;
35 private final static IFadeLine emptyFade = new DefaultFadeLine();
36
37 public ProxyRenderablePlayer(IPlayer agent, MapColor color, int glName) {
38 this.glName = glName;
39 this.agent = agent;
40 this.color = color;
41 }
42
43 @Override
44 public void respawn() throws PogamutException {
45 throw new UnsupportedOperationException("Not yet implemented");
46 }
47
48 @Override
49 public IAct getAct() {
50 throw new UnsupportedOperationException("Not yet implemented");
51 }
52
53 @Override
54 public IWorldView getWorldView() {
55 throw new UnsupportedOperationException("Not yet implemented");
56 }
57
58 @Override
59 public String getName() {
60 return agent.getName();
61 }
62
63 @Override
64 public IAgentId getComponentId() {
65 throw new UnsupportedOperationException("Not yet implemented");
66 }
67
68 @Override
69 public IAgentLogger getLogger() {
70 throw new UnsupportedOperationException("Not yet implemented");
71 }
72
73 @Override
74 public ImmutableFlag<IAgentState> getState() {
75 throw new UnsupportedOperationException("Not yet implemented");
76 }
77
78 @Override
79 public Folder getIntrospection() {
80 throw new UnsupportedOperationException("Not yet implemented");
81 }
82
83 @Override
84 public void start() throws ComponentCantStartException {
85 throw new UnsupportedOperationException("Not yet implemented");
86 }
87
88 @Override
89 public void startPaused() throws ComponentCantStartException {
90 throw new UnsupportedOperationException("Not yet implemented");
91
92 }
93
94 @Override
95 public void pause() throws ComponentCantPauseException {
96 throw new UnsupportedOperationException("Not yet implemented");
97
98 }
99
100 @Override
101 public void resume() throws ComponentCantResumeException {
102 throw new UnsupportedOperationException("Not yet implemented");
103
104 }
105
106 @Override
107 public void stop() throws ComponentCantStopException {
108 throw new UnsupportedOperationException("Not yet implemented");
109
110 }
111
112 @Override
113 public void kill() {
114 throw new UnsupportedOperationException("Not yet implemented");
115
116 }
117
118 @Override
119 public IComponentBus getEventBus() {
120 throw new UnsupportedOperationException("Not yet implemented");
121 }
122
123 @Override
124 public Location getLocation() {
125 return agent.getLocation();
126 }
127
128 @Override
129 public Velocity getVelocity() {
130 return agent.getVelocity();
131 }
132
133 @Override
134 public Rotation getRotation() {
135 return agent.getRotation();
136 }
137
138 @Override
139 public Color getColor() {
140 return color.getColor(agent.getTeam());
141 }
142
143 @Override
144 public IFadeLine getFadeLine() {
145 return emptyFade;
146 }
147
148 @Override
149 public List<String> getAssociatedInfo() {
150 return new ArrayList<String>(0);
151 }
152
153 @Override
154 public Object getDataSource() {
155 return agent;
156 }
157
158 @Override
159 public int getGLName() {
160 return glName;
161 }
162
163 }