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.communication.messages.gbinfomessages.IPlayer; 22 import cz.cuni.amis.utils.exception.PogamutException; 23 import cz.cuni.amis.utils.flag.ImmutableFlag; 24 import nl.tudelft.goal.ut2004.visualizer.map.MapColorGenerator.MapColor; 25 import nl.tudelft.goal.ut2004.visualizer.timeline.map.IRenderableUTAgent; 26 27 public class ProxyRenderablePlayer implements IRenderableUTAgent { 28 private final int glName; 29 private final IPlayer agent; 30 private final MapColor color; 31 32 public ProxyRenderablePlayer(IPlayer agent, MapColor color, int glName) { 33 this.glName = glName; 34 this.agent = agent; 35 this.color = color; 36 } 37 38 @Override 39 public void respawn() throws PogamutException { 40 throw new UnsupportedOperationException("Not yet implemented"); 41 } 42 43 @Override 44 public IAct getAct() { 45 throw new UnsupportedOperationException("Not yet implemented"); 46 } 47 48 @Override 49 public IWorldView getWorldView() { 50 throw new UnsupportedOperationException("Not yet implemented"); 51 } 52 53 @Override 54 public String getName() { 55 return agent.getName(); 56 } 57 58 @Override 59 public IAgentId getComponentId() { 60 throw new UnsupportedOperationException("Not yet implemented"); 61 } 62 63 @Override 64 public IAgentLogger getLogger() { 65 throw new UnsupportedOperationException("Not yet implemented"); 66 } 67 68 @Override 69 public ImmutableFlag<IAgentState> getState() { 70 throw new UnsupportedOperationException("Not yet implemented"); 71 } 72 73 @Override 74 public Folder getIntrospection() { 75 throw new UnsupportedOperationException("Not yet implemented"); 76 } 77 78 @Override 79 public void start() throws ComponentCantStartException { 80 throw new UnsupportedOperationException("Not yet implemented"); 81 } 82 83 @Override 84 public void startPaused() throws ComponentCantStartException { 85 throw new UnsupportedOperationException("Not yet implemented"); 86 87 } 88 89 @Override 90 public void pause() throws ComponentCantPauseException { 91 throw new UnsupportedOperationException("Not yet implemented"); 92 93 } 94 95 @Override 96 public void resume() throws ComponentCantResumeException { 97 throw new UnsupportedOperationException("Not yet implemented"); 98 99 } 100 101 @Override 102 public void stop() throws ComponentCantStopException { 103 throw new UnsupportedOperationException("Not yet implemented"); 104 105 } 106 107 @Override 108 public void kill() { 109 throw new UnsupportedOperationException("Not yet implemented"); 110 111 } 112 113 @Override 114 public IComponentBus getEventBus() { 115 throw new UnsupportedOperationException("Not yet implemented"); 116 } 117 118 @Override 119 public Location getLocation() { 120 return agent.getLocation(); 121 } 122 123 @Override 124 public Velocity getVelocity() { 125 return agent.getVelocity(); 126 } 127 128 @Override 129 public Rotation getRotation() { 130 return agent.getRotation(); 131 } 132 133 @Override 134 public Color getColor() { 135 return color.getColor(agent.getTeam()); 136 } 137 138 139 @Override 140 public List<String> getAssociatedInfo() { 141 return new ArrayList<String>(0); 142 } 143 144 @Override 145 public Object getDataSource() { 146 return agent; 147 } 148 149 @Override 150 public int getGLName() { 151 return glName; 152 } 153 154 }