1 package nl.tudelft.goal.ut2004.visualizer.map; 2 3 import java.awt.Color; 4 5 import nl.tudelft.goal.ut2004.visualizer.timeline.map.IRenderableWorldObject; 6 import cz.cuni.amis.pogamut.base3d.worldview.object.Location; 7 import cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint; 8 import cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo; 9 import cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint; 10 11 public class RenderableWaypoint implements IRenderableWorldObject { 12 13 private final IUnrealWaypoint waypoint; 14 private final Color color; 15 private final int glName; 16 17 public RenderableWaypoint(IUnrealWaypoint waypoint, int glName) { 18 this.waypoint = waypoint; 19 this.glName = glName; 20 this.color = Color.BLUE; 21 } 22 23 @Override 24 public Color getColor() { 25 return color; 26 } 27 28 @Override 29 public Object getDataSource() { 30 return waypoint; 31 } 32 33 @Override 34 public int getGLName() { 35 return glName; 36 } 37 38 @Override 39 public Location getLocation() { 40 return waypoint.getLocation(); 41 } 42 43 }